//This function takes the value that is currently inside the given text field and
//makes it the default. Such that clicking into the field clears it, clicking out restores
//the default value. Clicking in or out should do nothing to a field that has had user
//entry.
//This function is reponsible for assigning all values and handlers to the specified field.
function enableDefaultValue(field_id){
	
	var field_obj = $('#'+field_id);
	
	//Use the current value as the default text
	var default_text = field_obj.val();
	
	//Set an attr on the field to save this data
	field_obj.attr("default_value",default_text);
	
	//Assign handlers
	field_obj.blur(function(){

		var current_text = $(this).val();
		var default_text = $(this).attr("default_value");
		
		//only restore the stock text if the field is empty
		if(current_text.length<4){
			$(this).val(default_text);
		}//end if
			
	});
	
	field_obj.focus(function(){
		var current_text = $(this).val();
		var default_text = $(this).attr("default_value");
			
		//only clear the contents of the review textarea if the stock text is present.
		if(current_text == default_text){
			$(this).val("");
		}//end if
	});
	
}//end function
