function changeAll(divs) {
  	dropBoxes = divs;
  	dropBoxArray = dropBoxes.split(",")
  	for(i=0;i<dropBoxArray.length;i++){
  		document.getElementById(dropBoxArray[i]).style.color = "#FDF4F4";
  	}
  }

  function checkSendFriendForm(theform) {
    //reset all the validation warnings    
    changeAll("yourName_required,yourEmail_required,friendName_required,friendEmail_required");
  	pass = 1;
  	focusfield = "";
    //disable the submit button
    preventDoubleSubmit(document.getElementById('submitFormButt'),true)
  	if (isWhitespace(theform.yourName.value)) {
        document.getElementById('yourName_required').style.color = "#CC0000";
        pass = 0;
  		  if (focusfield == "") {focusfield = "yourName";}      
  	}
    if (isWhitespace(theform.yourEmail.value) || !isEmail(theform.yourEmail.value)) {
        document.getElementById('yourEmail_required').style.color = "#CC0000";
        pass = 0;
  		  if (focusfield == "") {focusfield = "yourEmail";}      
  	}
    if (isWhitespace(theform.friendName.value)) {
        document.getElementById('friendName_required').style.color = "#CC0000";
        pass = 0;
  		  if (focusfield == "") {focusfield = "friendName";}      
  	}
    if (isWhitespace(theform.friendEmail.value) || !isEmail(theform.friendEmail.value)) {
        document.getElementById('friendEmail_required').style.color = "#CC0000";
        pass = 0;
  		  if (focusfield == "") {focusfield = "friendEmail";}      
  	}    
  	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;
  	 }
   } 

