function sendRequest() {
	new Ajax.Request("../script/form.php", {
		   method: 'post',
		   postBody: "name="+$F("name")+"&email="+$F("email")+"&phone="+$F("phone")+"&comment="+$F("comment"),
		   onComplete: showResponse
	});
}

function showResponse(req)
{  
   var res=/message was received/; 
  
   if(req.responseText.match(res))
   {
   	closeForm();    
		$('thank_you').style.display = 'block';
		$('thank_you').fade({ duration: 5.0 });
		textClicked=false;
		$('comment').value=""; 
		$('name').value=""; 
		$('email').value=""; 
		$('phone').value=""; 		 
		clearText('comment');
		clearText('phone');
		clearText('name');
		clearText('email');
   }else{
   	alert(req.responseText);
   }  
}
