
function resetFields() {
	var fieldName = new Array()
	
	fieldName['Phone'] = 'Phone Number';
	
	$("#text-form input").each(function(){
		currField = $(this).attr('name'); 
		$(this).val(fieldName[currField]);
	});
	
	$("#text-form select option[value='']").attr("selected", "selected");
	
}


$("input, textarea").focus(
 function()
 {
  // only select if the text has not changed
  if(this.value == this.defaultValue)
  {
   this.select();
  }
 }
)

