function fstcheck()

temp=form.XXXX.value; for (nIndex=0; nIndex<temp.length; nIndex++)      
{      
cCheck = temp.charAt(nIndex);      
if (!(IsDigit(cCheck)))      
{      
alert("Please input integer in the required number box");      
form.XXXX.focus();      
return false;
}
}
}
function IsDigit(cCheck)      
{      
return (('0'<=cCheck) && (cCheck<='9'));      
}