function verify(){
var status = true;  
var p = document.getElementById("mes");
p.style.backgroundColor = '#3366FF';
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
document.consult.name.className="";	
document.consult.email.className="";
document.consult.phone.className="";	

	 if(/[^a-z ']/i.test(document.consult.name.value)||document.consult.name.value==""){
          document.consult.name.className="er";
		 status=false;
		 p.innerHTML="&nbsp;Please fill in a valid name!&nbsp;&nbsp;&nbsp;";
		 return status;
	 }

	 if(document.consult.email.value==""&&document.consult.phone.value==""){
	 		   document.consult.email.className="er";
			   document.consult.phone.className="er";
		       status=false;
			   p.innerHTML="&nbsp;Please fill in your phone number or your email!&nbsp;&nbsp;&nbsp;";
			   return status;
	 }
	 
     if (document.consult.email.value.search(emailRegEx) == -1 && document.consult.email.value!=""){
			   document.consult.email.className="er";
		       status=false;
			   p.innerHTML="&nbsp;Please fill in a valid email address!&nbsp;&nbsp;&nbsp;";
			   return status;
	 }
	 
	 if(/[^0-9 -]/i.test(document.consult.phone.value)&&document.consult.phone.value!="")
	 {
			   document.consult.phone.className="er";
		       status=false;
			   p.innerHTML="&nbsp;Please fill in a valid phone number!&nbsp;&nbsp;&nbsp;";
		       return status;
	 }
	 else	document.consult.phone.className="";
	 
     return status;
}

function dsDoChange() 
	{	
		var subsBox = document.forms['consult'].details;
		var Metroid = document.forms['consult'].referred.value;
		
		if (Metroid == "Select One..."){
			subsBox.length = 0;
		
			subsBox[subsBox.length] = new Option("-", "-");

		}
		
		if (Metroid == "Search Engine"){
			subsBox.length = 0;
		
			subsBox[subsBox.length] = new Option("Google", "Google");
		
			subsBox[subsBox.length] = new Option("Yahoo", "Yahoo");
		
			subsBox[subsBox.length] = new Option("MSN", "MSN");
		
			subsBox[subsBox.length] = new Option("AOL", "AOL");
		
			subsBox[subsBox.length] = new Option("Altavista", "Altavista");
		
			subsBox[subsBox.length] = new Option("I will type the search engine name in comment box", "I will type the search engine name in comment box");

		}
		
		
		if (Metroid == "Referral"){
			subsBox.length = 0;
		
			subsBox[subsBox.length] = new Option("I will type the individuals name in comment box", "I will type the individuals name in comment box");
		
			subsBox[subsBox.length] = new Option("I will type the companies name in comment box", "I will type the companies name in comment box");
		
			subsBox[subsBox.length] = new Option("I do not wish to disclose this information", "I do not wish to disclose this information");

		}
		
		if (Metroid == "Website"){
			subsBox.length = 0;
		
			subsBox[subsBox.length] = new Option("I found this site on facebook", "I found this site on facebook");
		
			subsBox[subsBox.length] = new Option("I found a website you created for a client", "I found a website you created for a client");

		}
		
		if (Metroid == "Direct Mail"){
			subsBox.length = 0;
			subsBox[subsBox.length] = new Option("-", "-");
		}
		

	}
