function validate_key(txt){
 if(txt.value == ""){
  txt.className = "errorTxt";
 }
 else{
  txt.className = "";
 }
}

function validate_key_email(txt){
 var emailRE = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
 if (!emailRE.test(txt.value)){
  txt.className = "errorTxt";
 }
 else{
  txt.className = "";
 }
}
