function valbutton(thisform){

 var myindex=document.forms[0].To.selectedIndex;
    if (myindex==0)
      {alert("Please select WHO YOU WISH TO CONTACT and any other items marked 'REQUIRED'.");
      document.forms[0].To.focus();return (false);}

    if (thisform.Sender.value == "")
      {alert("Please enter your NAME and any other items marked 'REQUIRED'.");
      thisform.Sender.focus();return (false);}


    if (thisform.ContactEmail.value == "")
      {alert("Please enter your CONTACT EMAIL and any other items marked 'REQUIRED'.");
      thisform.ContactEmail.focus();return (false);}

thisform.submit(); // this line submits the form after validation
}
