jQuery(document).ready(function(){
	function placeholder(){
		jQuery("input[type=text]").each(function(){
			var phvalue = jQuery(this).attr("placeholder");
			var defVal=jQuery(this).attr("value");
			if (defVal == '') {
				jQuery(this).val(phvalue);
			}
		});
	}
	placeholder();
	jQuery("input[type=text]").focusin(function(){
		var phvalue = jQuery(this).attr("placeholder");
		if (phvalue == jQuery(this).val()) {
		jQuery(this).val("");
		}
	});
	jQuery("input[type=text]").focusout(function(){
		var phvalue = jQuery(this).attr("placeholder");
		if (jQuery(this).val() == "") {
			jQuery(this).val(phvalue);
		}
	});
});

