function sendRequest() {
	new Ajax.Request("../script/form.php", {
		   method: 'post',
		   postBody: "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 });
   }else{
   	alert(req.responseText);
   }  
}
