jQuery(function(){
	jQuery("#submit").click(function(){ submitContactForm(); });
});


function submitContactForm()
{
	jQuery.post('http://www.greenshieldwindows.com/contact/', {
		'contact': 'true',
		'firstname': jQuery("#contact-firstname").val(),
		'lastname': jQuery("#contact-lastname").val(),
		'email': jQuery("#contact-email").val(),
		'phone': jQuery("#contact-phone").val(),
		'comments': jQuery("#contact-comments").val()
	}, function(data){
		if(data == true)
			jQuery("#body form").html('<h3>Questions or Comments</h3><p>Thank you for your email! We\'ll get back to you shortly!</p>');
		else
			alert(data);
	});
}
