$(document).ready( myOnLoad );

function myOnLoad(){
	$("input[@type='text']").focus(function(){
		if($(this).val() == $(this).attr('defaultValue'))
			if(("-"+$(this).val()).indexOf("*")<0) $(this).val('');
			else $(this).select();
		$('input[@type=text]').blur(function() {
			if($(this).val() == '') $(this).val($(this).attr('defaultValue'));
 		});
  }); 
}

