source: admin/WebConsole/jscripts/util.js @ 5d05b06

Last change on this file since 5d05b06 was 3ec149c, checked in by alonso <alonso@…>, 15 years ago

git-svn-id: https://opengnsys.es/svn/trunk@1314 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 327 bytes
Line 
1function IsNumeric(sText)
2{
3   var ValidChars = "0123456789.";
4   var IsNumber=true;
5   var Char;
6
7 
8   for (i = 0; i < sText.length && IsNumber == true; i++)
9      {
10      Char = sText.charAt(i);
11      if (ValidChars.indexOf(Char) == -1)
12         {
13         IsNumber = false;
14         }
15      }
16   return IsNumber;
17   
18}
19
Note: See TracBrowser for help on using the repository browser.