$(document).ready(function(){	
	
	$("#senderName").contactForm(defaultName);
	$("#senderPhone").contactForm(defaultPhone);
	$("#senderEmail").contactForm(DefaultEmail);
	$("#senderMsg").contactForm(DefaultMessage);
});

$.fn.contactForm = function(defaultValue)
{
	$(this).focus(function(){
		$(this).addClass("focus");;
	});
	
	$(this).blur(function(){
		$(this).removeClass("focus");
		if ($(this).val()=="")
			$(this).val(defaultValue);
	});
	
	$(this).hover(function(){
		if ($(this).val()==defaultValue)
		$(this).val("");
	},
	function(){
		if (!$(this).is(".focus"))
		if ($(this).val()=="")
			$(this).val(defaultValue);
	});
}
