> if ((theForm.elements[i].checked == false) && (doneRadio == false))
> {
> error = true;
> alert(theForm.elements[i].name);
> }
> else
> {
> if (theForm.elements[i].checked == true)
> {
> doneRadio = true;
> }
> }
>

Just a small JavaScript primer - don't forget about ! and the
fact that anything in an if() tries to evaluate to true, so all the ==
false,
== true are unneccessary unless you need it for readability.

So:

if(!theForm.elements[i].checked) // means == false
or

if(theForm.elements[i].checked) // means == true

Just throwing that useless tidbit out for you, or anyone else who's wanted
to learn more about JavaScript.

Chris Tifer
http://www.emailajoke.com


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to