	function sendRequest() {



		new Ajax.Request("email_form_process.php", {

			   method: 'post',

			   postBody: "name="+$F("name")+"&email="+$F("email")+"&phone1="+$F("phone1")+"&subject="+$F("subject")+"&message="+$F("message"),

			   onComplete: showResponse


		});

	}





	function showResponse(req)

	{

	   

	   var res=/message has been sent/;

	  

	   if(req.responseText.match(res))

	   {

		//$('errors').style.color="#253E85";
		document.location.href="thankyou.php";

	   }else{

		$('errors').style.color="#C00000";
		$('errors').innerHTML=  req.responseText;
	   }

	   

	   

	}