JS - confirmbox inside a function
<p>I have a Javascript who works well, because yesterday i get here some very good solutions.
I want to know if i can extended this Javascript with another Query.
The query now, gives an alert when the number is bigger then 199. It works well.</p>

<p>But now i want to know, if i can get confirmbox inside for the same inputbox, when i write a number bigger then 100?
Here an example
I write the number 110 and i does get an confirm box with an Information(bla bla), and when i click Yes this number stays in the inputbox.
But when i write 200 or bigger then i does get the alert that this number is to big.
Here the code, what i get yesterday, whenn the number is bigger then 199:</p>

<pre><code>    &lt;!DOCTYPE html&gt;
    &lt;html lang="en"&gt;
        &lt;head&gt;
        &lt;meta charset="utf-8"&gt;
        &lt;title&gt;Page&lt;/title&gt;
    &lt;script type="text/javascript"&gt;
    function minMax() {
       var min = 0;
       var mid = 99;
       var max = 199;
       var num = parseInt(document.getElementById('value_one').value);
       if (num &gt; mid &amp;&amp; num &lt; max) {
           var r = confirm(num + ' n\'is greater than ' + mid+ '. Press Yes to retain it.');
           if (r == false) document.getElementById('value_one').value = "";
           return false;
       }
       if (min &gt; num || max &lt; num) {
           alert(num + ' n\'is not between ' + min + ' and ' + max);
           return false;
       }       
    &lt;/script&gt;
        &lt;/head&gt;
        &lt;body&gt;
        &lt;form&gt;
            Value: &lt;input type='text' id="value_one"  onBlur="minMax();"&gt;
        &lt;/form&gt;
    &lt;/body&gt;
    &lt;/html&gt;
</code></pre>

<p>Is it possible and if somebody has an idea?</p>

<p>Thanks in advanced and thanks for your help yesterday.</p>

<p>Cheers</p>
