		// const variables
		var maxTitleLength = 45;
		var loadingCount = 0;
		var searchTimer = null;
		var lastSearchCode = 0;
		var lastQueryValue = "";
		
		function SetStatus(isLoading)
		{
			if (isLoading)
				loadingCount++;
			else
				loadingCount--;

			if (loadingCount > 0)
				ShowDiv("radarImage");
			else
			{
				loadingCount = 0;
				HideDiv("radarImage");
			}
		}		
		function GetElementText(id)
		{
			if (document.layers) return document.layers[id].innerHTML;
			else return document.getElementById(id).innerHTML;
		}
		function SetElementText(id, text)
		{
			if (document.layers) document.layers[id].innerHTML = text;
			else document.getElementById(id).innerHTML = text;
			//enableTooltips(id);
		}
		function GetQueryParam(name)		
		{
			var url = document.location + '';
			q = url.split('?');
			if (q[1]) 
			{
				//Get all Name/Value pairs from the QueryString
				var pairs = q[1].split('&');
				for (i=0;i<pairs.length;i++) 
				{
					//Get the Name from given Name/Value pair
					var keyval = pairs[i].split('=');

					if (keyval[0] == name) 
					{
						//Get the Value from given Name/Value pair and set to the return ID
						return keyval[1];
					}			
				}		
			}
			return "";
		}
		function RemoveHTML(strText)
		{
			var regEx = /<[^>]*>/g;
			return strText.replace(regEx, "");
		}
		function ClearInnerHtml(id)
		{
			SetElementText(id, "");
		}		
		function ReverseDisplay(divid)
		{
			if (document.layers)
			{
				if (document.layers[divid].display == "")
					document.layers[divid].display = "none";
				else
					document.layers[divid].display = "";
			}
			else 
			{
				if (document.getElementById(divid).style.display == "") 
					document.getElementById(divid).style.display = "none";
				else
					document.getElementById(divid).style.display = "";
			}
		}
		function ShowDiv2(divid)
		{
			if (document.layers) document.layers[divid].display="";
			else document.getElementById(divid).style.display="";
		}
		function HideDiv2(divid)
		{
			if (document.layers) document.layers[divid].display="none";
			else document.getElementById(divid).style.display="none";
		}
		function ShowDiv(divid)
		{
			if (document.layers) document.layers[divid].visibility="show";
			else document.getElementById(divid).style.visibility="visible";
		}
		function HideDiv(divid)
		{
			if (document.layers) document.layers[divid].visibility="hide";
			else document.getElementById(divid).style.visibility="hidden";
		}
		function Trim(sString)
		{
			while (sString.substring(0,1) == ' ')
			{
				sString = sString.substring(1, sString.length);
			}
			while (sString.substring(sString.length-1, sString.length) == ' ')
			{
				sString = sString.substring(0,sString.length-1);
			}
			return sString;
		}

		/*************************************************************************************************/
		/*************************************************************************************************/
		
		function FirstBinding()
		{
			// refresh news tickers every few seconds
		}
		function BindControls() 
		{
		}		
		function GetSoftwareInformation(id)
		{
					  
			IndexPage.GetSoftwareInformation(GetSoftwareInformation_CallBack);			
			alert("1");
		}
		function GetSoftwareInformation_CallBack(res)
		{
			alert("ASD");
			if (res.error != null)
			{
				return;
			}
			
			SetElementText("MainContent", res.value.Data);
		}		
		
