jQuery(document).ready(function() {
	jQuery('input[alt],textarea[alt]')
		.blur(function() {
			if (jQuery(this).val()=='') {
				jQuery(this).val($(this).attr('alt'));
				jQuery(this).css('color', '#999999');
			}
		})
		.focus(function() {
			if (jQuery(this).val()==jQuery(this).attr('alt')) {
				jQuery(this).val('');
			}

			jQuery(this).css('color', 'black');
		})
		.each(function() {
			if (jQuery(this).val()=='' || jQuery(this).val()==jQuery(this).attr('alt')) {
				jQuery(this).val(jQuery(this).attr('alt'));
				jQuery(this).css('color', '#999999');
			}
		});

	jQuery('form').submit(function() {
		jQuery('input[alt],textarea[alt]').each(function() {
			if (jQuery(this).val()==jQuery(this).attr('alt')) {
				jQuery(this).val('');
			}
		});
	});
});
