<!--

//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 && LoginForm.SiteCode.value!='' && LoginForm.UserName.value!='' && LoginForm.Password.value!='')
		{
			bLoggingIn=true;
			LoginForm.TheAction.value='LOGIN';
			//LoginForm.BusyIMG.src=busy_img.src;
			signinspan.style.display='none';
			signinspan2.style.display='inline';
			//signinspan2.style.visibility='visible';
			LoginForm.submit();
		}
		else
		if (LoginForm.SiteCode.value=='')
		{
			alert('You must supply a Site Code');
			LoginForm.SiteCode.focus();
		}
		else
		if (LoginForm.UserName.value=='')
		{
			alert('You must supply a User Name');
			LoginForm.UserName.focus();
		}
		else
		if (LoginForm.Password.value=='')
		{
			alert('You must supply a Password');
			LoginForm.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 (LoginForm.SiteCode.value!='' && LoginForm.UserName.value!='')
		{
			LoginForm.TheAction.value='FORGOT';
			LoginForm.submit();
		}
		else
		if (LoginForm.SiteCode.value=='')
		{
			alert('You must supply a Site Code');
			LoginForm.SiteCode.focus();
		}
		else
		if (LoginForm.UserName.value=='')
		{
			alert('You must supply a User Name');
			LoginForm.UserName.focus();
		}
	}
	catch(excetpion)
	{
	}	
}
-->