<!--

//pre-load some images
var busy_img=new Image();
var img1=new Image();
var img2=new Image();

busy_img.src='images/mousebusy2.gif';
img1.src='images/tab/tab_heading_login.gif';
img2.src='images/tab/tab_heading_login_hover.gif';

var bLoggingIn=false;

function submit_login()
{
	try
	{
		if (!bLoggingIn && document.getElementById("SiteCode").value!='' && document.getElementById("UserName").value!='' && document.getElementById("Password").value!='')
		{
			bLoggingIn=true;
			document.getElementById("TheAction").value='LOGIN';
			//document.getElementById("BusyIMG").src=busy_img.src;
			document.getElementById("signinspan").style.display='none';
			document.getElementById("signinspan2").style.display='inline';
			//document.getElementById("signinspan2").style.visibility='visible';
			document.getElementById("LoginForm").submit();
		}
		else
		if (document.getElementById("SiteCode").value=='')
		{
			alert('You must supply a Site Code');
			document.getElementById("SiteCode").focus();
		}
		else
		if (document.getElementById("UserName").value=='')
		{
			alert('You must supply a User Name');
			document.getElementById("UserName").focus();
		}
		else
		if (document.getElementById("Password").value=='')
		{
			alert('You must supply a Password');
			document.getElementById("Password").focus();
		}
	}
	catch(exception)
	{
		//alert(exception.description);
	}
}

var window_System_Help;
	
function loadhelppage(helpid)
{
	try
	{
		try
		{
			window_System_Help.close();
		}
		catch(exception)
		{
		}
		if (typeof(helpid)=='undefined') {helpid='';}
		window_System_Help=window.open('help/help.asp?helpid=PAGE_SYSTEM_LOGIN_HELP','HelpWin','fullscreen=no,height=400,width=400,location=no,menubar=no,resizable=yes,scrollbars=yes,titlebar=yes,toolbar=no');
	}
	catch(exception)
	{
	}
}

function forgotten_password()
{
	try
	{
		if (document.getElementById("SiteCode").value!='' && document.getElementById("UserName").value!='')
		{
			document.getElementById("TheAction").value='FORGOT';
			document.getElementById("LoginForm").submit();
		}
		else
		if (document.getElementById("SiteCode").value=='')
		{
			alert('You must supply a Site Code');
			document.getElementById("SiteCode").focus();
		}
		else
		if (document.getElementById("UserName").value=='')
		{
			alert('You must supply a User Name');
			document.getElementById("UserName").focus();
		}
	}
	catch(excetpion)
	{
	}	
}
-->