$(document).ready(function () {
	$('input, textarea').each(function () {
		if ($(this).val() == '') {
			$(this).val($(this).attr('name'));
		}
	}).focus(function () {
		$(this).removeClass('inputerror');
		if ($(this).val() == $(this).attr('name')) {
			$(this).val('');
		}
	}).blur(function () {
		if ($(this).val() == '') {
			$(this).val($(this).attr('name'));
		}
	});
});
