function changeAll(divs) {
  	dropBoxes = divs;
  	dropBoxArray = dropBoxes.split(",")
  	for(i=0;i<dropBoxArray.length;i++){
  		document.getElementById(dropBoxArray[i]).style.color = "#FDF4F4";
  	}
 } 

  function checkContactForm(theform) {
    //reset all the validation warnings    
    changeAll("firstName_required,lastName_required,contactPhone_required,contactEmail_required,contactComments_required");  //Captcha_required removed
  	pass = 1;
  	focusfield = "";
    removeSpaces(theform.contactPhone);
    //disable the submit button
    preventDoubleSubmit(document.getElementById('submitFormButt'),true)
  	if (isWhitespace(theform.firstName.value)) {
      document.getElementById('firstName_required').style.color = "#CC0000";
      pass = 0;
  		if (focusfield == "") {focusfield = "firstName";}      
  	}
  	if (isWhitespace(theform.lastName.value)) {
      document.getElementById('lastName_required').style.color = "#CC0000";
  		pass = 0;
  		if (focusfield == "") { focusfield = "lastName";}
  	}
    if (isWhitespace(theform.contactPhone.value) || !isNumeric(theform.contactPhone.value)) {
      document.getElementById('contactPhone_required').style.color = "#CC0000";
  		pass = 0;
  		if (focusfield == "") { focusfield = "contactPhone";}
  	}
    if (isWhitespace(theform.contactEmail.value) || !isEmail(theform.contactEmail.value)) {
      document.getElementById('contactEmail_required').style.color = "#CC0000";
  		pass = 0;
  		if (focusfield == "") { focusfield = "contactEmail";}
  	}
	/*
	 if (isWhitespace(theform.captcha.value)) {
      document.getElementById('Captcha_required').style.color = "#CC0000";
  		pass = 0;
  		if (focusfield == "") { focusfield = "captcha";}
  	}
	*/
	
    if (isWhitespace(theform.contactComments.value)) {
      document.getElementById('contactComments_required').style.color = "#CC0000";
  		pass = 0;
  		if (focusfield == "") { focusfield = "contactComments";}
  	}    
  	if (pass == 0) { 
  			alert("FORM ERROR!\nPlease complete the fields as indicated.");			
  		  if (focusfield != "") {
  			  focusfield = "theform." + focusfield + ".focus();";
  			  eval(focusfield);
  			}
        //re-enable the submit button
        preventDoubleSubmit(document.getElementById('submitFormButt'),false);
  		  return false;
  	 }
   } 
