Hi All,
I am having problems with validation in JQuery Window.
Can anyone help me!!!
I am pasting the code here
Help needed immediately

Thnx in advance!!!!


// validate signup form on keyup and submit
$("#frmsignup").validate({

rules: {
email: {
required: true,
email: true
},
reemail: {
required: true,
email: true
},
pass: {
required: true,
minlength: 5
},
repass: {
required: true,
minlength: 5,
equalTo: "#password"
},
name: "required",
lname: "required",
terms: "required"
},
messages: {
email: "Please enter a valid email address",
reemail: "Please enter a valid email address",
pass: {
required: "Please provide a password",
minlength: "Your password must be at least 5 characters long"
},
repass: {
required: "Please provide a password",
minlength: "Your password must be at least 5 characters long",
equalTo: "Please enter the same password as above"
},
name: "Please enter your firstname",
lname: "Please enter your lastname",
terms: "Please accept our policy"
},
});







<form name="frmsignup" id="frmsignup" method="get" action="">
<tr>
<td height="24" colspan="0" class="signintext"><img src="images/arrow4.gif" width="7" height="11" align="absmiddle"> Sign Up form</td>
</tr>
<tr>
<td width="139" height="31" align="right">Email ID<span class="style2">*</span> : &nbsp; </td>
<td width="227"><input name="email" type="text" class="required" id="email" value="" size="30" maxlength="50"></td>
</tr>
<tr>
<td width="139" height="31" align="right">Re-enter Email ID<span class="style2">*</span> : &nbsp; </td>
<td width="227"><input name="reemail" type="text" class="pagetext" id="reemail" value="" size="30" maxlength="50"></td>
</tr>
<tr>
<td height="24" align="right">Password<span class="style2">*</span> : &nbsp;</td>
<td><input name="pass" type="password" class="pagetext" id="pass" value="" size="30" maxlength="50"></td>
</tr>
<tr>
<td width="139" height="31" align="right">Re-enterPassword<span class="style2">*</span> : &nbsp; </td>
<td width="227"><input name="repass" type="password" class="pagetext" id="repass" value="" size="30" maxlength="50"></td>
</tr>
<tr>
<td width="139" height="31" align="right">Your name<span class="style2">*</span> : &nbsp; </td>
<td width="227"><input name="name" type="text" class="pagetext" id="name" size="30" maxlength="50" value="<?=$name?>"></td>
</tr>
<tr>
<td width="139" height="31" align="right">Last name<span class="style2">*</span> : &nbsp; </td>
<td width="227"><input name="lname" type="text" class="pagetext" id="lname" size="30" maxlength="50" value="<?=$name?>"></td>
</tr>
<tr align="center">
<td height="31" colspan="2"><input name="terms" type="checkbox" id="terms" value="1" <?=($terms=="1")?"checked":"";?>>
<span class="signinlinks"><a href="#" onClick="JavaScript:window.open('terms.html','terms','height=450,width=600,scrollbars=yes, resizable=no')" >Accept terms &amp; conditions</a></span> <span class="pagetext style1">*</span></td>
</tr>
<tr>
<td height="36" align="right">&nbsp;</td>
<td><input name="imageField" type="submit" src="images/button_submit.gif" width="60" height="20" border="0"></td>
</tr>
</form>