Telnet,
<script>
function check(min,max)
{
var arr = [];
min = min/100|0; max = max/100|0;
for (var i=0; i<10; i++) {arr[i]= i >= min && i <= max}
return arr
}
document.write(check(20,60))
document.write('<br>')
document.write(check(90,120))
</script>