//Sexy Form Click in/out Clearing - Thank you Chris Hinkley.
//Just add class="prompted" to any field.
//Requires jQuery
$(document).ready(function() {
	var defaultValues = [];
	$('input.prompted, textarea.prompted').each(function( intIndex ){
		defaultValues[ $(this).attr('id') ] = $(this).val();
		$(this).addClass('promptText');
	});
	$('input.prompted, textarea.prompted').focus(function(){
		if ( $(this).hasClass('promptText') )
		{
			$(this).val('');
			$(this).removeClass('promptText');
		}
	});
	$('input.prompted, textarea.prompted').blur(function(){
		if ( $(this).val() == '' )
		{
			$(this).addClass('promptText');
			$(this).val( defaultValues[ $(this).attr('id') ] );
		}  
	});
});
