[ Nebojsa11 @ 03.07.2007. 00:53 ] @
Pozdrav svima...

Da li je neko vec primetio da Firefox ima bugova u vezi JavaScript-a?

Recimo, ovaj JavaScript radi korektno u IE i u Operi, a u FF ne radi...

function ValidateForm2(){
var dt=document.form2.strMonth.options[form2.strMonth.selectedIndex].value + "/" + document.form2.strDay.options[form2.strDay.selectedIndex].value + "/" + document.form2.strYear.options[form2.strYear.selectedIndex].value;
if (!isDate(dt)){
return false;
}
dt=document.form2.strMonth1.options[form2.strMonth1.selectedIndex].value + "/" + document.form2.strDay1.options[form2.strDay1.selectedIndex].value + "/" + document.form2.strYear1.options[form2.strYear1.selectedIndex].value;
if (!isDate(dt)){
return false;
}
}

Ova funkcija u FF uvek vraca vrednost true i ako unesem 31.02.2007. IE i Opera rade korektno.
[ bzero @ 03.07.2007. 09:25 ] @
Meni se pre cini da ovaj kod ima bugova. Koliko vidim tvoja funkcija nikad ne vraca true.

Osim toga stavljaj kod u code tagove kod pisanja poruke, mnogo je preglednije.
[ Nebojsa11 @ 08.07.2007. 17:36 ] @
Resio sam problem...

Pre je bilo

document.form2.strMonth.options[form2.strMonth.selectedIndex].value

a treba

document.form2.strMonth.options[document.form2.strMonth.selectedIndex].value