if (inputValue(frm.inp)==null || inputValue(frm.inp)=="") { setWindowElementFocus(frm.inp); showJSMessage(1); return false; } if (inputValue(frm.inp)!=null && inputValue(frm.inp)!="" && (parseInt(frm.inp.value) < parseInt('')parseInt(frm.inp.value) > parseInt(''))) { setWindowElementFocus(frm.inp) showJSMessage(9); return false; }