$(document).ready(function(){
	// set all input.text default value according to alt attribute
    $("#quick-quote input[type=text]").each(function(){
		$(this).val($(this).attr("placeholder"));
    });
 
	// clear input.text on focus, if still in default
	$("#quick-quote input[type=text]").focus(function() {

  	if($(this).val()==$(this).attr("placeholder")) {
    	$(this).val("");
  	}
	});

	// if field is empty afterward, add text again
	$("#quick-quote input[type=text]").blur(function() {
  	if($(this).val()=="") {
    	$(this).val($(this).attr("placeholder"));
  	}
	});
});
