function Validate(theForm){
  var invalChars=/[\/\\\?\"\[\]:@<>]/;
  
  if (theForm.companyName){
	  if (theForm.companyName.value == "" || theForm.companyName.value.search(invalChars)!=-1 || theForm.companyName.value.length<2){
		alert("Please enter your Company Name without any special characters or html markup.");
		theForm.query.select();
		return (false);
	  }
  }
  if (theForm.siteTitle){
	  if (theForm.siteTitle.value == "" || theForm.siteTitle.value.search(invalChars)!=-1 || theForm.siteTitle.value.length<2){
		alert("Please enter your Site Title without any special characters or html markup.");
		theForm.siteTitle.select();
		return (false);
	  }
  }
  if (theForm.siteDescription){
	  if (theForm.siteDescription.value == "" || theForm.siteDescription.value.search(invalChars)!=-1 || theForm.siteDescription.value.length<2){
		alert("Please enter your Site Description without any special characters or html markup.");
		theForm.siteDescription.select();
		return (false);
	  }
  }
  if (theForm.siteURL){
	  if (theForm.siteURL.value == "" || theForm.siteURL.value.length<2 || theForm.siteURL.value.length>120){
		alert("Please enter a valid URL.");
		theForm.query.select();
		return (false);
	  }
  }
  if (theForm.linksPage){
	  if (theForm.linksPage.value == "" || theForm.linksPage.value.length<2 || theForm.linksPage.value.length>120){
		alert("Please enter a valid URL for your Links Page.");
		theForm.linksPage.select();
		return (false);
	  }
  }
  if (theForm.contactName){
	  if (theForm.contactName.value == "" || theForm.contactName.value.search(invalChars)!=-1 || theForm.contactName.value.length<2){
		alert("Please enter your Contact Name without any special characters or html markup.");
		theForm.contactName.select();
		return (false);
	  }
  }
  if (theForm.comments){
	  if (theForm.comments.value.search(invalChars)!=-1 || theForm.comments.value.length>180){
		alert("Please enter your Comments without any special characters or html markup, 180 charachters max.");
		theForm.contactName.select();
		return (false);
	  }
  }


if (theForm.contactEmail){
	  if (theForm.contactEmail.value == ""){
		alert("Please enter a valid email address.");
		theForm.contactEmail.select();
		return (false);
	  }
  }

  if (theForm.contactEmail){
  	return (emailCheck(theForm.contactEmail.value)); 								//validate using routines in validemail.js
  }
  return (true);
}

