function jumptosite(site)
{
	if (site != "") {
		self.location=site;
	}
}


function addBookmark(title,url)
{
	if (window.sidebar)
	{
		window.sidebar.addPanel(title, url,"");
	}
	else if(document.all)
	{
		window.external.AddFavorite(url, title);
	}
}


function setCookie( name, value )
{
var today = new Date();

expires = 365 * 1000 * 60 * 60 * 24;

var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
";expires=" + expires_date.toGMTString();
window.location.reload(false);

}


function clearText(strText, objFormElement) {

if (objFormElement.value == strText) objFormElement.value = "";

}


function showhide(elementId)
{
	elementObj = document.getElementById(elementId);
	if (elementObj) {
		if (elementObj.style.display == "none") {
			elementObj.style.display = "";
		} else {
			elementObj.style.display = "none";
		}
	}
}

function visualise(id) {

	var x;
	if (self.innerHeight) // all except Explorer
	{
		x = self.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		x = document.documentElement.clientWidth;
	}
	else if (document.body) // other Explorers
	{
		x = document.body.clientWidth;
	}

	var y;
	if (self.pageYOffset) // all except Explorer
	{
		y = self.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.scrollTop)
		// Explorer 6 Strict
	{
		y = document.documentElement.scrollTop;
	}
	else if (document.body) // all other Explorers
	{
		y = document.body.scrollTop;
	}

	objID = document.getElementById(id);
	intWidth=objID.style.width.replace(/px/g, "");
	objID.style.left = Math.floor((x-intWidth)/2)+"px";
	objID.style.top= (y+100)+"px";
	objID.style.display = "block";


}

function goToAddress() {

	address = document.getElementById("gta_series").value;
	address += "." + document.getElementById("gta_address").value;
	window.location.href = "infomap.asp?address="+address;

}