function toggleImage(image, id, state) {

if (state == 'over') {
        var obj = document.getElementById(id);
        obj.src = image;
}
else {
        var obj = document.getElementById(id);
        obj.src = image;
    }
}
			
		function clearViewState()
		{
			var viewState;
			for(i=0;i<document.forms.length;i++)
			{
				viewState = document.forms[i].__VIEWSTATE;
				if(viewState!=null)
				{
					viewState.name = "__VIEWSTATE_Disabled";
					viewState.value = "";
				}
			}
		}
		
		function SendPressSubscribeRequest(action,url)
		{
			var obj = document.forms['aspnetForm'];
			obj.action = url;
 			obj.elements['wpySubscribeAction'].value = action;
			clearViewState();
			obj.submit();
		}
		
		function SendShareSubscribeRequest(action,url)
		{
			var obj = document.forms['aspnetForm'];
			obj.action = url;
 			obj.elements['wpyaction'].value = action;
			clearViewState();
			obj.submit();
		}
		
		function SendCalendarRequest(action,url)
		{
			var obj = document.forms['aspnetForm'];
			obj.action = url;
			obj.elements['wpyaction'].value = action;
			clearViewState();
			obj.submit();
		}
	
		function PressSubscribe(url)
		{
			SendPressSubscribeRequest('begin',url);
		}
		function PressUnsubscribe(url)
		{
			SendPressSubscribeRequest('end',url);
		}
	
		function NewWin(URL,WinName) 
		{ 
			Name=window.open(URL,WinName,'height=400,width=540,left=180,top=40,resizable=yes,menubar=no,toolbar=no,location=no,scrollbars=yes');
		}


