function validate_elist_438974419()
{
  error="";
  if (!document.getElementById('elistaddress438974419').value.match(/^[-!#$%&'*+./0-9=?A-Z^_`a-z{|}]+@[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~.]+?.+[a-zA-Z]{2,4}$/i))
  {
    error = true;
    alert("Oops, invalid email address!");
  }
  if (error == true) return false;
  return true;
}

/* Place labels inside text fields */

var nameField  = document.getElementById('elistname');
var emailField = document.getElementById('elistaddress438974419');

nameField.onfocus = function() {
  if(this.value == "Name") {
    this.value = "";
    this.style.color = "#000";
  }
};
nameField.onblur = function() {
  if(this.value == "") {
    this.value = "Name";
    this.style.color = "#999";
  }
};
emailField.onfocus = function() {
  if(this.value == "Email") {
    this.value = "";
    this.style.color = "#000";
  }
};
emailField.onblur = function() {
  if(this.value == "") {
    this.value = "Email";
    this.style.color = "#999";
  }
};
