<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>The first error is the onclick in the 
href</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>the next error is in the formfield:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>You are closing the write parenthesis to early, you 
have 2 of them!</FONT></DIV>
<DIV><FONT face=Arial size=2>example: </FONT></DIV>
<DIV><FONT face=Arial size=2>val.document.write('&lt;td class="c2"&gt;' + 
window.document.forms[0].first.value) + '&lt;/td&gt;&lt;/tr&gt;');</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
2!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>function validate(){<BR>&nbsp;var val = 
window.open("","","width=300,height=250,scrollbars,menubar");</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;val.document.write('&lt;!DOCTYPE html PUBLIC 
"-//W3C//DTD XHTML 1.0 Strict//EN" "<A 
href='http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n'>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;\n</A> 
&lt;html xmlns="<A 
href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>" 
xml:lang="en" lang="en"&gt;\n &lt;head&gt; &lt;title&gt;Form 
Validation&lt;/title&gt;');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;val.document.write('&lt;style 
type="text/css"&gt;\n body{font-family: arial, helvetica, sans-serif; 
background-color:#cccccc; text-align:center;} td{padding:5px;} 
td.c1{text-align:right;} td.c2{text-align:left;} 
&lt;/style&gt;&lt;/head&gt;');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;val.document.write('&lt;body&gt;')</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;val.document.write('&lt;table&gt;&lt;tr&gt;&lt;td 
colspan="2"&gt;Please validate form 
contents:&lt;/td&gt;&lt;/tr&gt;')</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;val.document.write('&lt;tr&gt;&lt;td 
class="c1"&gt;First Name:&lt;/td&gt;');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;val.document.write('&lt;td class="c2"&gt;' + 
window.document.forms[0].first.value) + '&lt;/td&gt;&lt;/tr&gt;');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;val.document.write('&lt;tr&gt;&lt;td 
class="c1"&gt;Last Name:&lt;/td&gt;');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;val.document.write('&lt;td class="c2"&gt;' + 
window.document.forms[0].last.value) + '&lt;/td&gt;&lt;/tr&gt;');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;val.document.write('&lt;tr&gt;&lt;td 
class="c1"&gt;Email:&lt;/td&gt;');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;val.document.write('&lt;td class="c2"&gt;' + 
window.document.forms[0].email.value) + '&lt;/td&gt;&lt;/tr&gt;');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;val.document.write('&lt;tr&gt;&lt;td 
colspan="2"&gt;&lt;form&gt;');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;val.document.write('&lt;input type="button" 
value="Information Correct: Submit" onclick="opener.cgiSubmit(); opener.close(); 
window.close();" /&gt; &lt;input type="button" value="Revise Form" 
onclick="window.close();" /&gt;&lt;/td&gt;');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;val.document.write('&lt;/form&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;');<BR>&nbsp;val.document.write('&lt;/body&gt;&lt;/html&gt;');</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;val.document.close();<BR>}</FONT></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=christ@saeweb.com href="mailto:christ@saeweb.com">Chris Tifer</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> Friday, February 20, 2004 3:53 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] Form 
  validation</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>Seeing as that's a string, I wouldn't think that 
  would be a problem. Try escaping it to test if that would help (although I 
  never considered - to be a special character although I guess it could be 
  considered so since it's the expression used for subtraction.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I normally use underscores instead of dashes when 
  naming files so never ran into something like this.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Chris Tifer</FONT></DIV>
  <DIV>&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=allard-schripsema@procergs.rs.gov.br 
    href="mailto:allard-schripsema@procergs.rs.gov.br">allard schripsema</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> Friday, February 20, 2004 1:48 
    PM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] Form 
    validation</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=Arial size=2>this is the line that generates the 
    error</FONT></DIV>
    <DIV><FONT face=Arial size=2>&lt;a href="#" 
    onclick="window.open('p-js-fval.htm','p-js-fval','top=10,left=200,width=500,height=350,resizable,scrollbars');"&gt;Form 
    Validation&lt;/a&gt;<BR></FONT></DIV>
    <DIV><FONT face=Arial size=2>If you change 'p-js-fval.htm','p-js-fval' to 
    names without the "-" it works .</FONT></DIV>
    <DIV><FONT face=Arial size=2>Anybody knows why?</FONT></DIV>
    <DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT>
    <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=ismark@ismdesigns.com href="mailto:ismark@ismdesigns.com">Ira S. 
      Mark</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
      href="mailto:javascript@LaTech.edu">JavaScript list post</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, February 20, 2004 3:32 
      PM</DIV>
      <DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] Form 
      validation</DIV>
      <DIV><BR></DIV><BR>List: I have my script debugged successfully (debugger 
      moz1.6win) but the functions are not calling. The coding seems pretty 
      straight forward, form validation, viewer to review entries on separate 
      window. I would be grateful if someone could take a look.<BR><BR><A 
      class=moz-txt-link-freetext 
      href="http://www.ismdesigns.com/test/portfolio/p-js.htm">http://www.ismdesigns.com/test/portfolio/p-js.htm</A> 
      &gt;Form Validation. Neither of the input buttons on p-js-fval.htm 
      works,&nbsp; "Submit" or "Clear".<BR><BR>Thanks, Ira<BR>
      <P>
      <HR>

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

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

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