function isReady(form) {

  // verify there is something in the name field
  if(form.senderName.value == "") {
    alert("You need to insert your name.");
    form.senderName.focus();
    return false;
  }

// check the email field
// this will not catch all misformed email addresses, but will get most of them

  // setup the variables
  var field = form.senderEmail; // email field
  var str = field.value; // email string
  var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/;
  var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid

  // test input against regular expressions
  if (  !reg2.test(str) | reg1.test(str) ) {
  alert("\"" + str + "\" is an invalid e-mail!"); // this is also optional
  field.focus();
  field.select();
  return false;

}
  
  // make sure there is something in the message field
  if(form.message.value == "") {
    alert("I thought you wanted to send a message.\nPlease enter something in the message box.");
    form.message.focus();
    return false;
  }
  return true;
}