What do I have to do here to make it both IE and Netscape compatible?
function Blank_TextField_Validator()
{
// Check the value of the element named EMPNUM
// from the form named Main
if (Main.EMPNUM.value == ""
{
// If null display and alert box
alert("Please enter Employee Number."
;
// Place the cursor on the field for revision
Main.EMPNUM.focus();
// return false to stop further processing
return (false);
}
//CHECKS TO MAKE SURE VALUES ARE NUMBERS ONLY
var input = Main.EMPNUM.value
if (isNaN(input)) {
alert("Entries must be numbers only."
;
Main.EMPNUM.focus();
return false;
}
// set var radio_choice to false
var radio_choice = false;
// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < Main.main_menu.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (Main.main_menu[counter].checked)
radio_choice = true;
}
if (!radio_choice)
{
// If there were no selections made display an alert box
alert("Please make button selection."
return (false);
}
return (true);
function Blank_TextField_Validator()
{
// Check the value of the element named EMPNUM
// from the form named Main
if (Main.EMPNUM.value == ""
{
// If null display and alert box
alert("Please enter Employee Number."
// Place the cursor on the field for revision
Main.EMPNUM.focus();
// return false to stop further processing
return (false);
}
//CHECKS TO MAKE SURE VALUES ARE NUMBERS ONLY
var input = Main.EMPNUM.value
if (isNaN(input)) {
alert("Entries must be numbers only."
Main.EMPNUM.focus();
return false;
}
// set var radio_choice to false
var radio_choice = false;
// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < Main.main_menu.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (Main.main_menu[counter].checked)
radio_choice = true;
}
if (!radio_choice)
{
// If there were no selections made display an alert box
alert("Please make button selection."
return (false);
}
return (true);