function checkrequired(which)
{	
	var cancelhit=false;
	var pass=true;
	var p;
	if (document.images && cancelhit == false)
	{
		for (i=0;i<which.length;i++)
		{
			var tempobj=which.elements[i];
			//--------------

		
		


		if (tempobj.name=="email_address")
		{ 		var email=tempobj.value;	
					if (tempobj.value=="" || tempobj.value=="Email Address" )
				{


					
					

					alert("Please enter your email address");
					tempobj.focus();
					pass=false;
					break;
				}


			var email=tempobj.value;
			

			}

			//--------------


			
			
			//--------------
			if (tempobj.name=="confirm_email")
			{    
				
				if (tempobj.value!=email)
				{

					
					

					alert("Your email address does not match");
					tempobj.focus();
					pass=false;
					break;
				
					
				}
			}
			
			//--------------


		
			

			//--------------
			if (tempobj.name=="first_name")
			{    
				
				if (tempobj.value=="" || tempobj.value=="First Name") 
				{
					
					

					alert("Please enter your First Name");
					tempobj.focus();
					pass=false;
					break;
				
					
				}
			}
			//--------------
			if (tempobj.name=="last_name")
			{    
				
				if (tempobj.value=="" || tempobj.value=="Last Name") 
				{
					
					

					alert("Please enter your Last Name");
					tempobj.focus();
					pass=false;
					break;
				
					
				}
			}


			//--------------
			if (tempobj.name=="phone")
			{    
				
				if (tempobj.value=="" || tempobj.value=="Phone Number" || tempobj.value=="(Pho)ne -Number") 
				{

					

					alert("Please enter your Phone Number");

					tempobj.focus();
					pass=false;
					break;
				
					
				}
				p=tempobj.value
				
				if (p.length<13) {

					


					alert("Please correct your Phone Number");

					tempobj.focus();
					pass=false;
					break;

							}
			}

			//--------------
			if (tempobj.name=="best_time")
			{    
				
				if (tempobj.value=="") 
				{
					

					
					alert("Please select a Best time to call you");
					tempobj.focus();
					pass=false;
					break;
				
				}
			}

			//--------------







		}
	}
	
	if (!pass) { return false; }
	else { return true; }
}



