$(function() {

	$("input[placeholder], textarea[placeholder]").focus(function() {
		if ($(this).hasClass("placeholder")) {
			$(this).val("").removeClass("placeholder");
		}
	}).blur(function() {
		if ($(this).val() == null) {
			$(this).val($(this).attr("placeholder")).addClass("placeholder");
		}
	}).val(function() { return $(this).attr("placeholder"); }).addClass("placeholder");
	
	$("select[placeholder]").each(function() {
		$(this).prepend($("<option>", {text: $(this).attr("placeholder"), selected: "selected", disabled: "true"}));
	}).addClass("placeholder");

});
