function checkContactForm(theForm){
  if ( (theForm.fm_name.value == "") || (theForm.fm_name.value == "Your name") ) {
    alert("Please enter your name.");
    theForm.fm_name.focus();
    return (false);
  }
  if ( (theForm.fm_email.value == "") || (theForm.fm_email.value == "Your email address") ) {
    alert("Please enter your email address.");
    theForm.fm_email.focus();
    return (false);
  }
  if ( (theForm.fm_email.value.length < 4) ||  (theForm.fm_email.value.indexOf("@")< 1) ) {
    alert("Please enter a valid email address.");
    theForm.fm_email.focus();
    return (false);
  }
  if ( (theForm.fm_subject.value == "") || (theForm.fm_subject.value  == "Message subject") ) {
    alert("You did not enter a subject.");
    theForm.fm_subject.focus();
    return (false);
  }
  if ( (theForm.fm_verify.value == "") || (theForm.fm_verify.value  == "Security code") ) {
    alert("Please type the security code as shown.");
    theForm.fm_verify.focus();
    return (false);
  }  
  if ( (theForm.fm_message.value == "") || (theForm.fm_message.value == "Your message") ) {
    alert("You did not enter a message text.");
    theForm.fm_message.focus();
    return (false);
  }  
  return (true);
}

function checkSearchForm(theForm){
  if ( (theForm.search_exp.value == "") || (theForm.search_exp.value == "Search for...") ) {
    alert("Please enter a search term.");
    theForm.search_exp.focus();
    return (false);
  }
  return (true);
}
