﻿var submitcount=0;
	function validate() {
if (document.getElementById("withdrawal").first_name.value=="") {
window.alert("First Name can not be blank"); submitcount=0; return false; }

if (document.getElementById("withdrawal").last_name.value=="") {
window.alert("Last Name can not be blank"); submitcount=0;return false; }
if (document.getElementById("withdrawal").address.value=="") {
window.alert("Address can not be blank"); submitcount=0;return false; }
if (document.getElementById("withdrawal").city.value=="") {
window.alert("City can not be blank"); submitcount=0;return false; }
if (document.getElementById("withdrawal").state.value=="") {
window.alert("State or Province can not be blank"); submitcount=0;return false; }
if (document.getElementById("withdrawal").country.value=="") {
window.alert("Please list your country"); submitcount=0;return false; }

if (document.getElementById("withdrawal").phone.value=="") {
window.alert("Phone can not be blank"); submitcount=0;return false; }
if (document.getElementById("withdrawal").email.value=="") {
window.alert("Email can not be blank"); submitcount=0;return false;} 
if (document.getElementById("withdrawal").birth_month.value=="") {
window.alert("You didn't select your birth month"); submitcount=0;return false;}
if (document.getElementById("withdrawal").birth_day.value=="") {
window.alert("You didn't select your birthday"); submitcount=0;return false; }
if (document.getElementById("withdrawal").birth_year.value=="") {
window.alert("You didn't select your birthyear"); submitcount=0;return false; }


if (document.getElementById("withdrawal").race_name.value=="") {
window.alert("You didn't select a race"); submitcount=0;return false; }
if (document.getElementById("withdrawal").signature.checked==false) {
window.alert("You must agree to the terms by checking the box at the bottom of the form"); submitcount=0;return false; }

 if (submitcount == 0)  {
      submitcount++;
      return true;
      }
   else {
      alert("This form is being processed.  This could take a minute.");
      return false;
      }
      
}
