$(document).ready(function() {
	$("input, textarea").focus(function() {
		$(this).removeClass("error");
		var inputValue = $(this).val();
		$(this).val("");
		$(this).blur(function() {
			var newValue = $(this).val()
			if(newValue == ""){
				$(this).val(inputValue);
			}else{
				$(this).val(newValue);
			}
		});
	});
});
