price range problem
<p>I am developing an application which deals with commission based on price range<br/></p>

<p>I have 2 text-boxes (input type="text"), one for lower-limit, and another for upper-limit</p>

<p>Everytime someone adds new price range, I need to validate that it is available before hand or not, and whether it will fall in any of the previous price range</p>

<p>Example for Valid Ranges:<br><br>
1-10<br>
11-20<br>
21-30<br>
31-40<br></p>

<p>what should not be allowed are:<br><br>
(considering following range is available with us<br>
1-10<br>
11-20<br>
21-30<br>
31-40<br>
)<br><br>
following should not be allowed<br>
0-5<br>
2-8<br>
0-15<br>
5-12<br></p>

<p><br><br>
Help appriciated.</p>
