$( document ).ready( function()
{
	commentFormFocus = function() { if( $( this ).val() == commentFormDefaults[ this.id ] ) $( this ).val(''); }
	commentFormBlur = function() { if( !$( this ).val() ) $( this ).val( commentFormDefaults[ this.id ] ); }
	
	var commentFormDefaults = {
		author: 'Name*',
		email: 'Email*',
		url: 'Website',
		comment: 'Comment'
	}
	
	for( i in commentFormDefaults )
		$( '#'+ i ).val( commentFormDefaults[ i ] )
			.focus( commentFormFocus ).blur( commentFormBlur );
	
	$( '#commentform' ).submit( function()
	{
		for( i in commentFormDefaults )
			if( $( '#'+ i ).val() == commentFormDefaults[ i ] )
				$( '#'+ i ).val('')
	});
});
