Ask and ye shall receive....
function formSubmit{
if (document.frmFoo.foobaritem.value == "")
{ document.frmFoo.foobaritem.focus() ;
document.frmFoo.foobaritem.select();
alert ("Please enter a foobar Number.") ;
return false
}
}
and in the <FORM onSubmit="return formSubmit()">
Add ifs as needed :-)
Ron