 function validated(string) {
    for (var i=0, output='', valid=" @.,*;?!-_#):/~($123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; i<string.length; i++)
       if (valid.indexOf(string.charAt(i)) != -1)
          output += string.charAt(i)
    return output;
} 
 function formvalidate() {
  if (document.contact.name.value == "") { 
   alert ("Please type in your name.")
   document.contact.name.focus()
   return false
  }
  txt=document.contact.email.value;
  if (txt == "") { 
   alert ("Please type in your e-mail address")
   document.contact.email.focus()
   return false
  }
  if (txt.indexOf("@")<3){
   alert("You must type in a valid e-mail address to proceed.  Please make sure you have included the '@' in your e-mail address.")
	document.contact.email.focus()
	return false
   }
   if (document.contact.subject.value == "") { 
   alert ("Please select the topic of your message from the drop-down menu.")
   document.contact.subject.focus()
   return false
  }
   if (document.contact.comment.value == "") { 
   alert ("Please type a message in the box provided before proceeding.")
   document.contact.comment.focus()
   return false
  }
   if (document.contact.comment.value == "* Please enter comments here.") { 
   alert ("Please type your OWN message in the box provided.  You cannot use the default message displayed on this page!")
   document.contact.comment.focus()
   return false
  }
 }