<!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.2462.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>(1) Does the error message give you a line 
number?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>(2) What are you trying to accomplish with return 
varOutput ?&nbsp; If you want to display the variable, use 
alert(varOutput).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-Peter</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=shaun@evolutioninteractive.co.uk 
  href="mailto:shaun@evolutioninteractive.co.uk">Shaun Chatterton</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:javascript@LaTech.edu">dsaf</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 19, 2001 10:20 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] silly 
question</DIV>
  <DIV><BR></DIV>Can anyone tell me what is wrong with the following snippet of 
  code<BR>It is designed to allow the user to choose which url the contents of 
  his<BR>form is sent to for processing.<BR><BR>I keep getting errors suggesting 
  I have a ";" missing, but I haven't a clue<BR>where it's supposed to 
  be.<BR><BR>Any help greatly 
  appreciated.<BR><BR>&lt;HTML&gt;<BR>&lt;HEAD&gt;<BR>&lt;SCRIPT 
  Language=JavaScript&gt;<BR><BR>function whereto(option) {<BR>If (option == 
  "output1"){varOutput = "<A href="http://www.ibm.com">www.ibm.com</A>";}<BR>If 
  (option == "output2"){varOutput = "<A 
  href="http://www.zeppotron.com">www.zeppotron.com</A>";}<BR>return 
  varOutput;<BR>}<BR><BR><BR>&lt;/SCRIPT&gt;<BR>&lt;/HEAD&gt;<BR>&lt;BODY&gt;<BR>&lt;FORM 
  METHOD="post" ACTION= varOutput &gt;<BR>&lt;INPUT TYPE="text" 
  name="field"&gt;<BR>&lt;/FORM&gt;<BR>&lt;A HREF="#" 
  onClick="whereto('output1');"&gt;Click here to send field 
  to<BR>IBM&lt;/A&gt;<BR>&lt;BR&gt;&lt;BR&gt;<BR>&lt;A HREF="#" 
  onClick="whereto('output2');"&gt;Click here to send field to 
  the<BR>Guardian&lt;/A&gt;<BR>&lt;/BODY&gt;<BR>&lt;/HTML&gt;<BR><BR>Shaun 
  Chatterton<BR>Evolution Interactive<BR>Tel 0113 394 
  4220<BR><BR>_______________________________________________<BR>Javascript 
  mailing list<BR><A 
  href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A><BR><A 
  href="http://www.LaTech.edu/mailman/listinfo/javascript">http://www.LaTech.edu/mailman/listinfo/javascript</A><BR></BLOCKQUOTE></BODY></HTML>