function send_email(){

	var name 		= document.getElementById("name").value;
	var email 		= document.getElementById("email").value;
	var email_body 	= document.getElementById("emailtext").value;
	
	new Ajax.Request('/wp-content/themes/vesuite/system/contact-proc.php', {
												method: 'get',
												parameters: {name: name, email: email, email_body: email_body},
												onSuccess: function(transport)	{
																					
																					new Effect.Fade('contact-us-container', {
																																duration: 0.3,
																																beforeStart: function(){}, 
																																afterFinish: function(){
																																							if(transport.responseText == "success")
																																								document.getElementById("contact-us-container").innerHTML = "<div>Your message has been sent. Thanks.</div>";	
																																							else if(transport.responseText == "email_fail")
																																								document.getElementById("error-response").innerHTML = "There was a server error. Your message could not sent at this time.";
																																							else if(transport.responseText == "address_fail")
																																								document.getElementById("error-response").innerHTML = "The email address you provided is not valid. Please try again.";
																																							else if(transport.responseText == "spam_fail")
																																								document.getElementById("error-response").innerHTML = "The email message provided was evaluated to be most likely spam and was not delivered. If you feel this is an error, please contact us via phone or mail.";
																																																																
																																							new Effect.Appear('contact-us-container', {
																																																	duration: 0.3,
																																																	beforeStart: function(){},
																																																	afterFinish: function(){}
																																															 });
																																						}
																															}); 
																				},
												onFailure: function(){
													document.getElementById("error-response").innerHTML = "There was a server error. Your message could not sent at this time.";
												}
											});
}
