function checkIt() {
var obj = document.form_1;
if ((obj.user_name.value) && (obj.password.value)) {
 return true;
} else {
 alert("Please fill in both the Login and Password fields.");
 return false;
}
}

function errorCheck() {
if (location.search) {
  var str = location.search.substring(1);
  if (str == "error") {
  document.getElementById("error").style.height = "20px";
  document.getElementById("error").style.visibility = "visible";
  }
}
}