jQuery(document).ready(function(){
	
	// Clear text input boxes
	formFocus();

});

/**
 * Clears the input fields on focus
 */
function formFocus(){
	jQuery('input').each(function(){
		var default_value = jQuery(this).val();
		jQuery(this).focus(function(){
			if(jQuery(this).val() == default_value) jQuery(this).val('');
			jQuery(this).blur(function(){
				if((jQuery(this).val() == default_value) || (jQuery(this).val().length == 0)) jQuery(this).val(default_value);
			});
		});
	});
}