function quoteReplace(psString)
{


 if(psString !=''){
    var lsRegExp = /'/g;

    psString =  String(psString).replace(lsRegExp, "~~");

    return (psString)

 }else{
  
    return "";
 }
}





function checkForm(){

var fname = quoteReplace(document.form3.fname.value);
var lname = quoteReplace(document.form3.lname.value);
var coname = quoteReplace(document.form3.coname.value);
var position = quoteReplace(document.form3.position.value);
var email = quoteReplace(document.form3.email.value);




   if(fname == ''){
      alert("Please enter your First Name")
      return false
   }

   if(lname == ''){
      alert("Please enter your Last Name")
      return false
   }

   if(coname == ''){
      alert("Please enter the company you work for")
      return false
   }

   if(position == ''){
      alert("Please enter your Position at " + coname)
      return false
   }

   if(email == ''){
      alert("Please enter your Email Address")
      return false
   }

   if(email.indexOf('@') < 1){
      alert("Please enter a correct Email Address")
      return false
   }

   if(email.indexOf('.') < 1){
      alert("Please enter a correct Email Address")
      return false
   }


}	    
   




function GoState(){

secondWindow = open(document.form1.select.value, "stwin","width=700,height=500,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,directories=yes,status=yes");

return false
}
