JavaScript Newbie. I love this script! But please help.

What am I doing wrong? The script stops working when I remove the checkboxes and related code from the sample at ...

http://javascript.internet.com/forms...validator.html

I'm removing the checkboxes from the sample form and from the following ...

CHUCK OF CODE I'M REMOVING FROM SCRIPT
var preCheck = (!f.infohtml.checked && !f.infocss.checked && !f.infojs.checked) ? errormsg[0] : null;
return validateForm(f, preCheck, 'required', alerttype);
END - CHUCK OF CODE I'M REMOVING FROM SCRIPT

CHUCK OF CODE I'M REMOVING FROM BODY
<tr>
<td colspan="2">HTMLinput type="checkbox" name="infohtml" value="true" class="checkbox"> CSSinput type="checkbox" name="infocss" value="true" class="checkbox"> javascriptinput type="checkbox" name="infojs" value="true" class="checkbox"></td>
</tr>
<tr>
END - CHUCK OF CODE I'M REMOVING FROM BODY

CODE FROM SCRIPT WITH MY FORM FIELDS
<script language="JavaScript" type="text/javascript">

function configureValidation(f,alerttype){
f.firstname.isAlphaNumeric = true;
f.lastname.isAlphaNumeric = true;
f.email.isEmail = true;
f.password1.isLengthBetween = [4,8];
f.password2.isMatch = f.password1.value;
var preCheck = (!f.infohtml.checked && !f.infocss.checked && !f.infojs.checked) ? errormsg[0] : null;
return validateForm(f, preCheck, 'required', alerttype);
}
</script>
END - CODE FROM SCRIPT WITH MY FORM FIELDS

CODE FROM BODY WITH MY FORM FIELDS
<fieldset>
<legend>Set Up Free Account</legend>
<div>
<form action="#" method="post" onSubmit="return configureValidation(this,2)" onReset="confirm(errormsg[99])">
<table class="formtable">
<tr>
<td width="40%" align="right">First Name/td>
<td width="60%"><input class="checkit" type="text" id="First name" name="firstname" value="" class="text"></td>
</tr>
<tr>
<td width="40%" align="right">Last Name/td>
<td width="60%"><input class="checkit" type="text" id="Last name" name="lastname" value="" class="text"></td>
</tr>
<tr>
<td width="40%" align="right">Email/td>
<td width="60%"><input class="checkit" type="text" id="Email" name="email" value="" class="text"></td>
</tr>
<tr>
<td width="40%" align="right">Password/td>
<td width="60%"><input class="checkit" onKeyPress="checkCapsLock( event )" id="Password" type="password" name="password1" value="" class="text"></td>
</tr>
<tr>
<td width="40%" align="right">Re-Enter/td>
<td width="60%"><input class="checkit" onKeyPress="checkCapsLock( event )" id="Password" type="password" name="password2" value="" class="text"></td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="infohtml" value="true" class="hidden">

<input type="hidden" name="infocss" value="true" class="hidden">

<input type="hidden" name="infojs" value="true" class="hidden"></td>
</tr>
<tr>
<td></td>
<td>
<input name="setupgogo" type="hidden" value="yes">
<input type="submit" name="submit" value="Submit" class="button"></td>
</tr>

</table>

<div>
</div>
</form>
</fieldset>
END - CODE FROM BODY WITH MY FORM FIELDS