function check(thisForm){
  var email =thisForm.email;
  var message =thisForm.message;
  var fields = new Array(email,message);   
  //don't need to change the following lines 
  var error = false;
  var focusObj = null;
  var color1 = "#FFCC00";
  var color2 = "#FFFFFF";  
  for(i=0;i<fields.length;i++){
  	fields[i].style.background=color2;
	if(fields[i].value==""){
		fields[i].style.background=color1;
		if(!error)
			focusObj = fields[i];
		error=true;		
	}
  }  
  if(error){
  	focusObj.focus();
    alert("Please enter the required info in the highlight field(s).");
    return false;
  }
  else{  
    	if (email.value.indexOf('@',1)== -1 || email.value.indexOf('.',2)==-1){
			alert("invalid email address");
			email.style.background=color1;
			email.focus();
			return false;
		}
		thisForm.Submit.disabled=true;
    	return true;
  }  
}