using isNaN to evaluate input
<p>I am using isNaN to evaluate input in text box my function is like this</p>

<pre><code>function IsNumeric(n) {
    return !isNaN(n);
} 
</code></pre>

<p>it's working fine with numeric but not on negative values nor decimal values like 1.2,</p>

<p>but I will not accept negative or decimal values like 1.2</p>

<p>how can I do that?</p>

<p>Thanks</p>
