// clears form field content on focus then re-instates if focus is lost

$.fn.clearField = function()
{
	var inputValue;
	
	$(this).focus(function()
	{
		inputValue = this.value;
			
		this.value = ''; //remove value for typing
	});
	
	$(this).blur(function()
	{
		if(this.value == '')
		{
			this.value = inputValue; //replace value if nothing entered
		}
	});
	
	return this;
}


$(document).ready(function()
{
	$('textarea').clearField();
});