/***********************************************************************
*
* Script to show popup window
*
************************************************************************/

var newwindow;
function openNewWindow(url)
{
	newwindow=window.open(url,'name','height=620,width=420,left=50,top=100,toolbar=no,menubar=no.location=no');
	if (window.focus) {newwindow.focus()}
}

/***********************************************************************
*
* Scripts to show and hide layers
*
************************************************************************/

function HideContent(d)
{
	if(d.length < 1)
	{
		return;
	}
	document.getElementById(d).style.display = "none";
}

function ShowContent(d)
{
	if(d.length < 1)
	{
		return;
	}
	document.getElementById(d).style.display = "block";
}

function ReverseContentDisplay(d)
{
	if(d.length < 1)
	{
		return;
	}
	if(document.getElementById(d).style.display == "none")
	{
		document.getElementById(d).style.display = "block";
	}
	else
	{
		document.getElementById(d).style.display = "none";
	}
}

/***********************************************************************
*
* Scripts for jump menus (such as country select drop-down menu)
*
************************************************************************/

function MM_jumpMenu(targ,selObj,restore)
{
	//v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}
