<!--- =========== This script validates the form fields have been entered ========= --->
function validateForm() {
  var okSoFar=true;  //-- Changes to false when bad field found. 
  if (document.Form1.first_name.value=='' && okSoFar) {
    okSoFar=false;
    //alert ('Please enter your First Name');
    document.Form1.first_name.focus();
    }
  if (document.Form1.Last_Name.value=='' && okSoFar) {
    okSoFar=false;
    //alert ('Please enter your Last Name');
    document.Form1.Last_Name.focus() ;
    }
  if (document.Form1.company.value=='' && okSoFar) {
    okSoFar=false;
    //alert ('Please enter your Company');
    document.Form1.company.focus() ;
    }
  if (document.Form1.address1.value=='' && okSoFar) {
    okSoFar=false;
    //alert ('Please enter your Address');
    document.Form1.address1.focus();
    }
  if (document.Form1.city.value=='' && okSoFar) {
    okSoFar=false;
    //alert ('Please enter your City');
    document.Form1.city.focus(); 
    }
  if (document.Form1.zipcode.value=='' && okSoFar) {
    okSoFar=false;
    //alert ('Please enter your Zip Code');
    document.Form1.zipcode.focus(); 
    }
  if (document.Form1.userpassword.value=='' && okSoFar) {
    okSoFar=false;
    //alert ('Please enter your Password');
    document.Form1.userpassword.focus(); 
    }
  if (document.Form1.email.value=='' && okSoFar) {
    okSoFar=false;
    //alert ('Please enter your Email Address');
    document.Form1.email.focus();
    }
  if (okSoFar==true) {
    //document.Form1.submit();
    return true;}
  else {
    return false;}
}

<!--- =========== This function checks the No Preference checkbox ========= --->	
function NoPreferenceChecked(bNoPref)
{
	var FileLoop2;
	var vLength;
	
	//Set vLength to last position, aka NoPreference checkbox
	vLength = document.Form1.ReachWhen.length - 1;
	if (bNoPref == true)
	{
		// Uncheck all other Reach When checkboxes
		for (FileLoop2 = 0; FileLoop2 < vLength; FileLoop2++)
		{
			document.Form1.ReachWhen[FileLoop2].checked = false;
			//document.requestinfo.Control[FileLoop2].disabled = true;
		}
	}
	else
	{
		// Uncheck No Pref checkbox
		document.Form1.ReachWhen[vLength].checked = false;	
	}
}
<!--- =========== This function checks the Contact Us form ========= --->
function validateContact() {
  var okSoFar=true;  //-- Changes to false when bad field found. 
  if (document.Contact.FirstName.value=='' && okSoFar) {
    okSoFar=false;
    alert ('Please enter your First Name');
    document.Contact.FirstName.focus();
    }
  if (document.Contact.LastName.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Last Name')
    document.Contact.LastName.focus() 
    }
  if (document.Contact.Email.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Email Address')
    document.Contact.Email.focus() 
    }
  if (document.Contact.Phone.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Phone Number')
    document.Contact.Phone.focus() 
    }
  if (document.Contact.ReachWhen.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please select WHEN you would prefer to be contacted by NAPO-WI') 
    }
  if (document.Contact.ReachHow.value=='none' && okSoFar) {
    okSoFar=false
    alert ('Please select HOW you would prefer to be contacted by NAPO-WI') 
    }
  if (okSoFar==true) {
    document.Contact.submit()
    return true;}
  else {
    return false;}
}

function validateRegForm(){
  var okSoFar=true  //-- Changes to false when bad field found. 
  if (document.NewMember.FirstName.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your First Name')
    document.NewMember.FirstName.focus() 
    }
  if (document.NewMember.LastName.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Last Name')
    document.NewMember.LastName.focus() 
    }
  if (document.NewMember.Company.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Business Name')
    document.NewMember.Company.focus() 
    }
  if (document.NewMember.Address.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Address')
    document.NewMember.Address.focus() 
    }
  if (document.NewMember.City.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your City')
    document.NewMember.City.focus() 
    }
  if (document.NewMember.State.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please select your State')
    document.NewMember.State.focus() 
    }
  if (document.NewMember.Zip.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Zip Code')
    document.NewMember.Zip.focus() 
    }
  if (document.NewMember.Country.value=='None' && okSoFar) {
    okSoFar=false
    alert ('Please select your Country')
    document.NewMember.Country.focus() 
    }
  if (document.NewMember.Phone.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Phone Number')
    document.NewMember.Phone.focus() 
    }
  if (document.NewMember.Email.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Email Address')
    document.NewMember.Email.focus() 
    }
  if (document.NewMember.password.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Password')
    document.NewMember.password.focus() 
    }
  if (!document.getElementById('DisclaimerAgree').checked && okSoFar) {
    okSoFar=false;
    alert ('You must agree to the Disclaimer in order to continue.');
    document.getElementById('DisclaimerAgree').focus(); 
    }
  if (okSoFar==true) {
    document.NewMember.submit()
    return true;}
  else {
    return false;}
}

function validateNewsForm(){
  var okSoFar=true  //-- Changes to false when bad field found. 
  if (document.NewNews.FirstName.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your First Name')
    document.NewNews.FirstName.focus() 
    }
  if (document.NewNews.LastName.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Last Name')
    document.NewNews.LastName.focus() 
    }
  if (document.NewNews.Address.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Address')
    document.NewNews.Address.focus() 
    }
  if (document.NewNews.City.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your City')
    document.NewNews.City.focus() 
    }
  if (document.NewNews.State.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please select your State')
    document.NewNews.State.focus() 
    }
  if (document.NewNews.Zip.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Zip Code')
    document.NewNews.Zip.focus() 
    }
  if (document.NewNews.Country.value=='None' && okSoFar) {
    okSoFar=false
    alert ('Please select your Country')
    document.NewNews.Country.focus() 
    }
  if (document.NewNews.Phone.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Phone Number')
    document.NewNews.Phone.focus() 
    }
  if (document.NewNews.Email.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Email Address')
    document.NewNews.Email.focus() 
    }
  if (document.NewNews.password.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Password')
    document.NewNews.password.focus() 
    }
  if (okSoFar==true) {
    document.NewNews.submit()
    return true;}
  else {
    return false;}
}

function validateAssForm(){
  var okSoFar=true  //-- Changes to false when bad field found. 
  if (document.NewAssociate.FirstName.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your First Name')
    document.NewAssociate.FirstName.focus() 
    }
  if (document.NewAssociate.LastName.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Last Name')
    document.NewAssociate.LastName.focus() 
    }
  if (document.NewAssociate.Company.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Company')
    document.NewAssociate.Company.focus() 
    }
  if (document.NewAssociate.Address.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Address')
    document.NewAssociate.Address.focus() 
    }
  if (document.NewAssociate.City.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your City')
    document.NewAssociate.City.focus() 
    }
  if (document.NewAssociate.State.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please select your State')
    document.NewAssociate.State.focus() 
    }
  if (document.NewAssociate.Zip.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Zip Code')
    document.NewAssociate.Zip.focus() 
    }
  if (document.NewAssociate.Country.value=='None' && okSoFar) {
    okSoFar=false
    alert ('Please select your Country')
    document.NewAssociate.Country.focus() 
    }
  if (document.NewAssociate.Phone.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Phone Number')
    document.NewAssociate.Phone.focus() 
    }
  if (document.NewAssociate.Email.value=='' && okSoFar) {
    okSoFar=false
    alert ('Please enter your Email Address')
    document.NewAssociate.Email.focus() 
    }
  if (okSoFar==true) {
    document.NewAssociate.submit()
    return true;}
  else {
    return false;}
}

function validateUserSelect() {
  var okSoFar=true
	if (document.form2.Members.value=='Please Select' && okSoFar) {
    	okSoFar=false
	    alert ('Please select a user')
    	document.form2.Members.focus() 
    }
	 if (okSoFar==true) {
   		 document.form2.submit()
   		 return true;}
 	else {
    	 return false;}
}