$(document).ready(function () {
	$("input").focus(function(){
		$("input").each(function(){
			if($(this).attr("value") == ""){
				$(this).attr("value", $(this).attr("alt"));
			}
		});
	
		if(($(this).attr("alt") != "") && (($(this).attr("value") == $(this).attr("alt")) || $(this).attr("vaciado") == undefined)){
			$(this).attr("value", "");
			$(this).attr("vaciado", "1");
		}
	});
	
	$("input").change(function(){
		if($(this).attr("value") == ""){
			$(this).attr("value", $(this).attr("alt"));
		}
	});
});

