<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>That's probably it and I overlooked it. When you 
work with ASP a bit, you tend to forget little things like that until an error 
pops up.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Chris Tifer</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=geoff@cpe1.com href="mailto:geoff@cpe1.com">Geoff Corriere</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 02, 2003 11:51 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] If else 
  statement help</DIV>
  <DIV><BR></DIV>I believe you just have a syntax error. Instead of:<BR><BR>
  <BLOCKQUOTE><?fontfamily><?param Verdana>if (theForm.rn.value.length == 4) 
    || (theForm.rn.value.length == 5) || (theForm.rn.value.length == 8) <BR><?/fontfamily></BLOCKQUOTE><BR>You need<BR><BR>if( <?fontfamily><?param Verdana>(theForm.rn.value.length == 4) || 
  (theForm.rn.value.length == 5) || (theForm.rn.value.length == 8) 
  )<BR><BR>parenthesis are need to be around ALL the values you are checking. 
  The if statement by itself is<BR>if( something )<BR>your something is, of 
  course<?/fontfamily><BR><?fontfamily><?param Verdana>(theForm.rn.value.length 
  == 4) || (theForm.rn.value.length == 5) || (theForm.rn.value.length == 
  8)<BR><BR>Geoff<?/fontfamily>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Javascript mailing 
  list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE></BODY></HTML>