All pastes #991004 Raw Edit

Unbenannt

public javascript v1 · immutable
#991004 ·published 2008-04-20 17:24 UTC
rendered paste body
function checkFields() {    if (IsNumeric(document.EDIT.Price.value)) { alert ( "Not Numeric" );return false; }            return true;    }function IsNumeric(strString) {    /* Remove dots and commas */    var foo = strString;    foo = NewToolCost.replace(/,/g, "");    foo = NewToolCost.replace(/./g, "");            /* check if string is numeric */    if isNaN(foo) {        alert(foo);        return false;    } else {        return true;    }    }