function trim(sString){
		while (sString.substring(0,1) == ' '){
			sString = sString.substring(1, sString.length);
		}
		while (sString.substring(sString.length-1, sString.length) == ' '){
			sString = sString.substring(0,sString.length-1);
		}
		return sString;
		}

function clearText(thefield){
		if (thefield.defaultValue==thefield.value)
		thefield.value = ""
		} 
		
function checkForBlank(thefield){
		if (trim(thefield.value)=="")
		thefield.value = thefield.defaultValue
		}
		
function dropdownClick(){ /** do nothing */ }	

function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function addCommas(nStr){		nStr += '';		x = nStr.split('.');		x1 = x[0];		x2 = x.length > 1 ? '.' + x[1] : '';		var rgx = /(\d+)(\d{3})/;		while (rgx.test(x1)) {			x1 = x1.replace(rgx, '$1' + ',' + '$2');		}		return x1 + x2;}