function directmailValidate (theForm) {
  if (theForm.email.value == "") {
    alert("Please enter your \"E-mail\" Address.");
    theForm.sender_email.focus();
    return (false);
  }
  if (theForm.email.value == false) {
    alert("Please enter a legitimate e-mail address.");
    theForm.sender_email.focus();
    return (false);
  }
  var cem = theForm.email.value;
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(cem)) {
  } else {
     alert('ERROR! The e-mail address you supplied appears to be invalid\n\n Please enter a legitimate e-mail address in format: someone@somewhere.tld');
     theForm.sender_email.focus();
     return false;
  }
  if (theForm.sender_name.value == "") {
    alert("Please enter your name so we know who to contact.");
    theForm.sender_name.focus();
    return (false);
  }
  if (theForm.sender_name.value == false) {
    alert("Please enter at least 1 character in the \"Name\" field.");
    theForm.sender_name.focus();
    return (false);
  }
  if (theForm.main_message.value == "") {
    alert("Please enter a value for the \"Message Text\" field.");
    theForm.main_message.focus();
    return (false);
  }
  if (theForm.main_message.value.length > 512) {
    alert("Please enter at most 512 characters in the \"Message Text\" field.");
    theForm.main_message.focus();
    return (false);
  }
  return (true);
}
var foc ='';
//
function colon (tobj) { 
        var tobj = document.all[tobj]
        if (tobj.type == "submit" || tobj.type == "reset" || tobj.type == "button") {
            tobj.style.backgroundColor = "#A1A1A1";
        } else {
            tobj.style.color = "#A1A1A1"; 
        }
}
//
function coloff (tobj) {
        var tobj = document.all[tobj]
        if (tobj.type == "submit" || tobj.type == "reset" || tobj.type == "button") { 
	    if (foc != tobj.id) {
                tobj.style.backgroundColor = "#288885";
            }
        } else {
            if (foc != tobj.id) {
                tobj.style.color = "#288885";
            }
        }
}
