// JavaScript Document

// handles double-clicking the submission
bolLoginClicked = false;
						
function validateLoginForm (objForm)
{
	var strError = "";
	var objFocus = null;
	
	if ( !objForm.LoginID.value )
	{
		strError += " - Missing Login ID\t\n";
		if (objFocus == null) objFocus = objForm.LoginID;
	}
	
	if ( !objForm.Password.value )
	{
		strError += " - Missing Password ID\t\n";
		if (objFocus == null) objFocus = objForm.Password;
	}
	
	if ( strError )
	{
		window.alert("Your submission has the following error(s):\t\n\n" + strError + "\nPlease correct and resubmit.\t");
		objFocus.focus();
		return false;
	}
	
	if ( bolLoginClicked )
		return false;
	else
		bolLoginClicked = true;
		
	return true;

}