var defaultText = '';
$(function(){
	$('input[type="text"]').bind({
		focus : getFocus,
		blur : getBlur
	});

	$('textarea').bind({
		focus : getFocus,
		blur : getBlur
	});
});

function getFocus(){
	defaultText = $(this).val();
	$(this).attr('value','');
}

function getBlur(){
	if($(this).val() == '') {
		$(this).attr('value',defaultText);
	}
}

function send() {
	var data = $('#contactForm').serialize();
	$.post("/contact/submit", { data:data },
	function(data){
		alert("Your contact request has been sent.");
		console.log(data);
	});
}