Hi,

I've got a function writen in javascript. I can't figure out why it doesn't work with Netscape but works in IE. Does anyone know why?

Thanks../Kenny

function totalcheck() {

var max = 8;
var sum = 0;
var adults = frmResInfo.S1202_NumberAdults.selectedIndex + 1; //plus 1 cus the array is offset by 1
var children = frmResInfo.S1202_NumberChildren.selectedIndex - 0;
sum = adults + children;

if (sum > max) {
alert("The number of adults plus the number of children cannot exceed 8.");
frmResInfo.S1202_NumberAdults.selectedIndex = 0;
frmResInfo.S1202_NumberChildren.selectedIndex = 0;
}
}