<!-- //Begin to hide script contents from old browsers.
//alert('hello')
// menu items and gifs
var imgw=130;
var imgh=20;
var imgbtn_home = new Image(imgw, imgh);
var imgbtn_home_hl = new Image(imgw, imgh);
var imgbtn_samples = new Image(imgw, imgh);
var imgbtn_samples_hl = new Image(imgw, imgh);
var imgbtn_login = new Image(imgw, imgh);
var imgbtn_login_hl = new Image(imgw, imgh);
var imgbtn_contact = new Image(imgw, imgh);
var imgbtn_contact_hl = new Image(imgw, imgh);

imgbtn_home.src = "images/btn_home_noshadow.gif";
imgbtn_home_hl.src="images/btn_home_pkshadow.gif";
imgbtn_samples.src = "images/btn_samples_noshadow.gif";
imgbtn_samples_hl.src="images/btn_samples_pkshadow.gif";
imgbtn_login.src = "images/btn_login_noshadow.gif";
imgbtn_login_hl.src="images/btn_login_pkshadow.gif";
imgbtn_contact.src = "images/btn_contact_noshadow.gif";
imgbtn_contact_hl.src="images/btn_contact_pkshadow.gif";

function doMenuClick(menuitem)
{
	//alert("menuclick: "+menuitem);
	window.location=menuitem;
}

function doMenu(menuname)
{
	//alert(menuname);
	var item=document.getElementById('btn_'+menuname);
	item.src=eval('imgbtn_'+menuname+'_hl.src');
	return true;
}
function doMenuOut(menuname)
{
	var item=document.getElementById('btn_'+menuname);
	item.src=eval('imgbtn_'+menuname+'.src');
	return true;
}

function doGlobalLoad(sender)
{
	sender.setformfocus();
	if (window.doLocalLoad)
	{
		doLocalLoad();
	}
	if (window.opener && !window.opener.closed)
	{
		if (document.getElementById("closebtn"))
		{
			document.getElementById("closebtn").style.display='block';
		}
		if (document.getElementById("returnbtn"))
		{
			document.getElementById("returnbtn").style.display='none';
		}
	}
	else
	{
		if (document.getElementById("returnbtn"))
		{
			document.getElementById("returnbtn").style.display='block';
		}
		if (document.getElementById("closebtn"))
		{
			document.getElementById("closebtn").style.display='none';
		}
	}
}
function setformfocus()
{
	//if (document.forms.length>0) document.forms[0].elements[0].focus();
	var username=document.getElementById('username');
	if (username)
	{
		username.focus();
	}
}

function confirm_delete(str)
{
	if (str)
	{
		str=' '+str;
	}
	var result=confirm('Are you Sure you want to delete'+str+'?');
	return result;
}

//-->
