$(function(){
	$('input[type="text"], textarea, input[type="password"]').each(function(index) {
		var valor_previous = $(this).val();
		$(this).focusin(function() {
			var self = $(this);
			var valor = self.val();
			if(valor == valor_previous){
				self.val("");
			}

		}).focusout(function() {
			var valor = $(this).val();
			if(valor == ''){
				$(this).val(valor_previous);
			}
		});
	});
	
});
