function IsNumeric(sText)
{
   var ValidChars = "0123456789.";
   var IsNumber=true;
   var Char;

 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
   
   }


/* Displays verification dialogue and if user agrees then 
   forces link to given URL*/
function VerifyLink(AText,TargetURL)
 {      
   if (confirm(AText))
   { 	   
       window.top.location=TargetURL;
   }
 }



/* puts focus to given control */
function OnLoginFormEnter(CtrlName)
{     
  if (event.keyCode==13)
  {    
    el=document.getElementById(CtrlName);
    if (el)      
     {
        el.focus();           
     }
  }    
}

