<!--

var submitcount=0;

function Form1_Validator(login) {

//var alertsay = ""; // define for long lines
// alertsay is not necessary for your code,
// but I need to break my lines in multiple lines
// so the code won't extend off the edge of the page

// check if username field is blank
if (login.loginname.value == "") {
	alert("You must enter a \"User Name\".");
	login.loginname.focus();
	return (false);
	}

// check to see if password field is blank
if (login.password.value == "") {
	alert("You must enter a \"Password\".");
	login.password.focus();
	return (false);
	}

else {  
	document.getElementById('mySubmit').value='Signing In...';  document.getElementById('mySubmit').disabled=true;  login.submit();  
		}  
		return false; // Return false prevents it from submitting in the event of error 
 
/*else
   {
   if (submitcount == 0)
      {
      submitcount++;
	  return true;
      }
   else
      {
      alert("Please wait, your request is being processed.");
      return false;
      }
   }*/
   	
}

//-->



	  