The code your saying is incorrect is the exact code im using from my university prescribed textbook, so im following as it shows ??
How would i stop the form from submitting if there is validation errors? By the way i followed what u said and used this and now all validations are working..
var booValid = true;
var strErrorMsg = "";
if ((!formtag.gender.checked) && (!formtag.gender.checked))
strErrorMsg += "Must select Female or Male\n";