function SetFocus(frmObj)
{
	var obj = (eval("document." + "forms[0]." + frmObj))
	obj.focus();
}

function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }

/* 	LTrim - Trims whitespace from left of a string*/
function LTrim(str){	
	var whitespace = new String(" \t\n\r");	
	var s = new String(str);	
		if (whitespace.indexOf(s.charAt(0)) != -1) 	
			{		
				var j=0, i = s.length;		
				while (j < i && whitespace.indexOf(s.charAt(j)) != -1)		
			{	j++;		
		}		
		s = s.substring(j, i);	
		}	
	return s;
}