			function Register(ServiceCode)
			{
				document.AltForm.SessionId.value=document.Form1.SessionId.value;
				document.AltForm.ServiceCode.value=ServiceCode;
				if (document.Form1.SessionId.value == '0')
					document.AltForm.action= SecuredSiteURL + "RegisterNewClient.aspx";
				else
					document.AltForm.action= SecuredSiteURL + "ClientServices.aspx";
				document.AltForm.submit();
			}
			function RefreshSession()
			{
				if (document.Form1.SessionId.value != 0)
					window.frames['frame1'].location.href = "Refresh.aspx?SessionId=" + document.Form1.SessionId.value;
			}
			
			function ShowMessage(num)
			{
				window.open("Message.aspx?MessageId=" + num, "_blank", "width=500,height=450,menubar=no,resizable=no,status=no,scrollbars=yes,toolbar=no")
			}
			
			function LoadPage(SubmitAsp, ServiceCode, Target, SessionId, Secure)
			{
				document.AltForm.SessionId.value = SessionId;
				if (Secure == 1)
					document.AltForm.action = SecuredSiteURL + SubmitAsp;
				else
					document.AltForm.action = UnSecuredSiteURL + SubmitAsp;
				document.AltForm.ServiceCode.value = ServiceCode;
				document.AltForm.target = Target;
				document.AltForm.submit();
			}
			function ChangeProduct(sDetails)
			{
				var sDetailsArray;
				
				sDetailsArray = sDetails.split("|");
				if (sDetailsArray.length != 4) return;
				LoadPage(sDetailsArray[0], sDetailsArray[2], sDetailsArray[1], document.Form1.SessionId.value, sDetailsArray[3] == "1"? 1: 0);
			}
			
			function GotoPage(NextPage)
			{
				document.AltForm.SessionId.value = document.Form1.SessionId.value;
				document.AltForm.ServiceCode.value = '';
				document.AltForm.action = NextPage;
				document.AltForm.target = "_self";
				document.AltForm.submit();
			}
			
			function DoNewsSearch()
			{
				javascript:Redirect('News.aspx?page=RSR&keywords='+document.Form1.keywords.value);
				//javascript:Redirect('/news/searchresults?page=RSR&keywords='+document.Form1.keywords.value);
			}
			
			function DoSearch()
			{
				if (window.event && window.event.keyCode == 13)
				{
					DoNewsSearch();
					return false;
				}
				else
					return true;
			}
			
			function Marketing(ServiceCode)
			{
				LoadPage("Marketing" + ServiceCode + ".aspx", ServiceCode, "_self", document.Form1.SessionId.value);
			}