function checkuserlogin() {
 
  cusername = document.userlogin.username.value;
  cpassword = document.userlogin.password.value;

  
 returnval = true;
 hideAllErrors();
 if (cusername == "") {
 returnval = false;
 document.getElementById("usernameError").style.display = "inline";
  } 
 if (cpassword == "") {
 returnval = false;
 document.getElementById("passwordError").style.display = "inline";
  }
 return returnval;
}
 
function hideAllErrors() {
document.getElementById("usernameError").style.display = "none";
document.getElementById("passwordError").style.display = "none";
}

function checkuserlogin2() {
 
  cusername = document.userlogin2.username.value;
  cpassword = document.userlogin2.password.value;

  
 returnval = true;
 hideAllErrors2();
 if (cusername == "") {
 returnval = false;
 document.getElementById("username2Error").style.display = "inline";
  } 
 if (cpassword == "") {
 returnval = false;
 document.getElementById("password2Error").style.display = "inline";
  }
 return returnval;
}
 
function hideAllErrors2() {
document.getElementById("username2Error").style.display = "none";
document.getElementById("password2Error").style.display = "none";
}

