function CheckFields(pform) {
 if ( pform.name.value   == "" ||
       pform.email.value  == "" ) {
     alert( "Data in essential fields missing.\nPlease ensure that all fields are filled in." );
     return false;
  }
else if ( pform.email.value.length <= 6 ||
      pform.email.value.indexOf ('@', 0) == -1 ||
      pform.email.value.indexOf ('.', 0) == -1){
      alert("'' " + pform.email.value + " '', is not valid Email Address.");
      return false;
 }
  else {
	 alert ("'Thank you for your registration submission.'" +pform.name.value + " '' \nPlease wait a moment while your data is sent to our server")
	 pform.action="mailto:timm@creativerhythmschool.com";
     location.href="thanks.htm";
     return true;
  }
}