Code Snips
Web Portfolio
Resume
News Finder
Katrina News
Usenet Info
EnronOffline
 
Alex Pages
Web Cam
Old Photos
Yahoo Pool
24 Predictions
Bellaire West
Our Cats
NASA & Mars
SSX High Score
Dunder-Mifflin
Office Space
 
Contact Page
 
Back ...   

IsNumeric() Function for JS

If your database is expecting a numeric value, this function will validate its numericness.  I have a couple of functions that checks for numbers. This one allows you to modify the alert() message specifically for a field.

function IsNumeric(inputVal,sErrorMsg) {
     if (isNaN(parseFloat(inputVal))) {
          alert(sErrorMsg)
          return false;
     }
     return true
}



Find the latest information on the Enron Trial at EnronOffline, the once-a-day wrap up.