function checkForm(){

var errorCheck=0
  if (document.login.txtUsername.value == "")
  {
    alert("Please enter a username.");
    document.login.txtUsername.focus();
errorCheck+=1;
  }

 else
    if (document.login.txtPassword.value == "")
  {
    alert("Please enter a password.");
    document.login.txtPassword.focus();
errorCheck+=1;
  }

  if(errorCheck==0){
document.login.submit();
}


}


function checkPilotForm(){

var errorCheck=0
  if (document.pilotLogin.username.value == "")
  {
    alert("Please enter a username.");
    document.pilotLogin.username.focus();
errorCheck+=1;
  }

 else
    if (document.pilotLogin.password.value == "")
  {
    alert("Please enter a password.");
    document.pilotLogin.password.focus();
errorCheck+=1;
  }

  if(errorCheck==0){
document.pilotLogin.submit();
}


}