function check_numeric (x) { if (x.value == "") return true; if (parseInt(x.value) != x.value) { x.value=""; x.focus(); return false; } return true; } /* end of function */