<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="MSHTML 5.00.3105.105" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<P><FONT class=nf>I am having truoble with the forms.<BR><BR>My problem is as 
follows:<BR><BR>I want to have forms in html that change dynamically as the user 
enters selections. For example in a drop down menu I have text. and encode. If 
the user chooses fonts I want the page to refresh and ask for the fonts, 
coordinates and text to be sent. However if the user chooses image the page 
should ask for name of image and position etc. Within each of the selection I 
have the transfer and accept menu which change the form again according to what 
was selected. <BR><BR>My problem is as follows:<BR><BR>The refreshing part is 
working fine. I am getting the correct form changes. However if trasfer "source" 
is selected together with any accpet value I cannot enter anything in the Source 
ID field even though it shows in the form. <BR><BR>I am attaching both the html 
code and javascript:<BR><BR><BR>Please help. 
Thanks<BR><BR>"font.js"<BR>========================================<BR>var 
transfer=0;<BR>var accept=0;<BR><BR>function showSection(aValue)<BR>{<BR><BR>var 
fontDiv;<BR>var encodeDiv;<BR>var OffDiv;<BR>var SourceDiv;<BR>var 
DestinationDiv; <BR>var FixedDiv;<BR>var HostDiv;<BR>var barDiv;<BR><BR>fontDiv 
= document.getElementById('font');<BR>encodeDiv = 
document.getElementById('encode');<BR><BR>OffDiv = 
document.getElementById('Off');<BR>SourceDiv = 
document.getElementById('Source');<BR>DestinationDiv = 
document.getElementById('Destination');<BR>FixedDiv = 
document.getElementById('Fixed');<BR>HostDiv = 
document.getElementById('Host');<BR><BR>if (aValue == 
'font')<BR>{<BR>fontDiv.style.visibility = 
'visible';<BR>encodeDiv.style.visibility = 'hidden';<BR>OffDiv.style.visibility 
= 'visible';<BR>DestinationDiv.style.visibility = 'hidden';<BR><BR>if 
(transfer=='Destination')<BR>{<BR>DestinationDiv.style.visibility = 
'visible';<BR>OffDiv.style.visibility = 'hidden';<BR>}<BR>if 
(transfer=='Source')<BR>{<BR><BR><BR>SourceDiv.style.visibility = 
'visible';<BR><BR>}<BR><BR>if (transfer=='Off')<BR>{<BR><BR>if 
(accept=="Fixed")<BR>FixedDiv.style.visibility = 'visible'; <BR>if 
(accept=="Host")<BR>HostDiv.style.visibility = 'visible'; <BR>}<BR>if 
((transfer==0)||(accept==0) &amp;&amp; 
(transfer!='Destination'))<BR>FixedDiv.style.visibility = 'visible'; 
<BR>}<BR><BR><BR>if (aValue == 'encode')<BR>{<BR>fontDiv.style.visibility = 
'hidden';<BR>encodeDiv.style.visibility = 'visible';<BR>OffDiv.style.visibility 
= 'hidden';<BR>SourceDiv.style.visibility = 
'hidden';<BR>DestinationDiv.style.visibility = 
'hidden'<BR>FixedDiv.style.visibility = 'hidden';<BR>HostDiv.style.visibility = 
'hidden'; <BR>barDiv.style.visibility = 
'hidden';<BR><BR><BR>}<BR><BR>}<BR><BR>function showTransfer(aValue)<BR>{<BR>var 
OffDiv;<BR>var SourceDiv;<BR>var DestinationDiv;<BR>var FixedDiv;<BR>var 
HostDiv;<BR><BR>OffDiv = document.getElementById('Off');<BR>SourceDiv = 
document.getElementById('Source');<BR>DestinationDiv = 
document.getElementById('Destination');<BR>FixedDiv = 
document.getElementById('Fixed');<BR>HostDiv = 
document.getElementById('Host');<BR><BR>identify_transfer(aValue); <BR>if 
(aValue == 'Off')<BR>{<BR>OffDiv.style.visibility = 
'visible';<BR>SourceDiv.style.visibility = 
'hidden';<BR>DestinationDiv.style.visibility = 
'hidden';<BR><BR>if((accept=="Fixed")||(accept==0))<BR>FixedDiv.style.visibility 
= 'visible';<BR><BR>}<BR>if (aValue == 'Source')<BR>{<BR>OffDiv.style.visibility 
= 'visible';<BR>SourceDiv.style.visibility = 
'visible';<BR>DestinationDiv.style.visibility = 
'hidden';<BR>FixedDiv.style.visibility = 
'hidden';<BR><BR>if((accept=="Fixed")||(accept==0))<BR>FixedDiv.style.visibility 
= 'visible';<BR>}<BR><BR>if (aValue == 
'Destination')<BR>{<BR>OffDiv.style.visibility = 
'hidden';<BR>SourceDiv.style.visibility = 
'hidden';<BR>DestinationDiv.style.visibility = 
'visible';<BR>FixedDiv.style.visibility = 'hidden';<BR>HostDiv.style.visibility 
= 'hidden';<BR>}<BR>}<BR><BR><BR>function showAccept(aValue)<BR>{<BR>var 
FixedDiv,HostDiv;<BR>FixedDiv = document.getElementById('Fixed');<BR>HostDiv = 
document.getElementById('Host');<BR><BR>identify_accept(aValue);<BR><BR>if 
(aValue == 'Fixed')<BR>{<BR>FixedDiv.style.visibility = 
'visible';<BR>HostDiv.style.visibility = 'hidden'; <BR>}<BR><BR>if (aValue == 
'Host')<BR>{<BR>FixedDiv.style.visibility = 
'hidden';<BR>HostDiv.style.visibility = 'visible'; <BR>}<BR>} 
<BR><BR><BR><BR>function 
identify_transfer(value)<BR>{<BR>transfer=value;<BR>}<BR><BR><BR>function 
identify_accept(value)<BR>{<BR>accept=value;<BR>}<BR><BR>=========================================<BR>"index.html"<BR>=========================================<BR>&lt;HTML&gt; 
<BR>&lt;HEAD&gt; <BR>&lt;TITLE&gt;This is on 
Linux!!!&lt;/TITLE&gt;<BR>&lt;SCRIPT LANGUAGE="JavaScript" 
src="font.js"&gt;<BR>&lt;/SCRIPT&gt; <BR><BR><BR><BR>&lt;/HEAD&gt; 
<BR>&lt;BODY&gt; <BR>&lt;FORM NAME="form1" 
ACTION="http://200.123.101.203/Javelin/javascript/server.cgi"<BR>METHOD="GET"&gt; 
<BR>Edit Layout:<BR><BR>&lt;SELECT NAME="card_tools" 
<BR>ONCHANGE="showSection(this.value);" &gt; <BR>&lt;OPTION 
VALUE="font"&gt;Font&lt;/OPTION&gt; <BR>&lt;OPTION 
VALUE="encode"&gt;Encode&lt;/OPTION&gt; <BR>&lt;/SELECT&gt; 
<BR>&lt;BR&gt;<BR><BR><BR>&lt;DIV ID="font" <BR>STYLE="position: absolute; 
visibility: visible"&gt; <BR>Font name:<BR><BR>&lt;SELECT 
NAME="font_type"&gt;<BR>&lt;option&gt;SWS060R<BR>&lt;option&gt; SWS080R 
<BR>&lt;option&gt; SWS100R<BR>&lt;option&gt; SWS140R <BR>&lt;option&gt; SWS180R 
<BR>&lt;option&gt; SWS240R &lt;/SELECT&gt;<BR>&lt;BR&gt;<BR>X 
coordinate:<BR>&lt;INPUT NAME="X" TYPE="TEXT" SIZE="3"&gt;<BR>&lt;BR&gt; <BR>Y 
coordinate:<BR><BR>&lt;INPUT NAME="Y" TYPE="TEXT" 
SIZE="3"&gt;<BR>&lt;BR&gt;<BR>Justify:<BR>&lt;SELECT 
NAME="justify"&gt;<BR>&lt;option&gt; Left<BR>&lt;option&gt; Centre 
<BR>&lt;option&gt; 
Right&lt;/SELECT&gt;<BR>&lt;BR&gt;<BR><BR>Rotation:<BR>&lt;SELECT 
NAME="rotation"&gt;<BR>&lt;option&gt; Horizontal<BR>&lt;option&gt; 
Vertical<BR>&lt;option&gt; Reverse Horizontal<BR>&lt;option&gt; Reverse Vertical 
&lt;/SELECT&gt;<BR>&lt;BR&gt;<BR><BR>Transfer:<BR>&lt;SELECT NAME="transfer" 
<BR>ONCHANGE="showTransfer(this.value);" &gt; <BR>&lt;OPTION 
VALUE="Off"&gt;Off&lt;/OPTION&gt; <BR>&lt;OPTION 
VALUE="Source"&gt;Source&lt;/OPTION&gt;<BR>&lt;OPTION 
VALUE="Destination"&gt;Destination&lt;/OPTION&gt;<BR>&lt;/SELECT&gt; 
<BR>&lt;BR&gt;<BR><BR><BR>&lt;DIV ID="Off" <BR>STYLE="visibility: visible"&gt; 
<BR><BR>Accept:<BR>&lt;SELECT 
NAME="accept"<BR>ONCHANGE="showAccept(this.value);"&gt;<BR>&lt;OPTION 
VALUE="Fixed"&gt;Fixed&lt;/OPTION&gt;<BR>&lt;OPTION 
VALUE="Host"&gt;Host&lt;/OPTION&gt; <BR>&lt;/SELECT&gt;<BR><BR>&lt;/DIV&gt; 
<BR><BR>&lt;DIV ID="Source" <BR>STYLE="position: absolute; visibility: 
hidden"&gt; <BR>&lt;BR&gt;<BR>Source ID:<BR>&lt;INPUT NAME="source_id" 
TYPE="TEXT" SIZE="20"&gt; <BR><BR>&lt;/DIV&gt; <BR><BR>&lt;DIV ID="Destination" 
<BR>STYLE="position: absolute; visibility: hidden"&gt; <BR><BR>Destination 
ID:&lt;INPUT NAME="destination_id" TYPE="TEXT" SIZE="20"&gt; 
<BR><BR>&lt;/DIV&gt;<BR><BR><BR>&lt;DIV ID="Fixed" <BR>STYLE="position: 
absolute; visibility: visible"&gt; 
<BR>&lt;BR&gt;<BR>&lt;BR&gt;<BR>&lt;BR&gt;<BR>Fixed Text:<BR><BR>&lt;INPUT 
NAME="fixed" TYPE="TEXT" SIZE="20"&gt;<BR><BR>&lt;/DIV&gt; <BR><BR>&lt;DIV 
ID="Host" <BR>STYLE="position: absolute; visibility: hidden"&gt; 
<BR>&lt;BR&gt;<BR>&lt;BR&gt;<BR>&lt;BR&gt;<BR>Maximum 
Characters:<BR><BR>&lt;INPUT NAME="host" TYPE="TEXT" 
SIZE="20"&gt;<BR><BR>&lt;/DIV&gt; <BR>&lt;/DIV&gt; <BR><BR>&lt;DIV ID="encode" 
<BR>STYLE="position: absolute; visibility: hidden"&gt; <BR><BR><BR>Field 
Name:<BR>&lt;SELECT NAME="encode_name"&gt;<BR>&lt;OPTION&gt; 
IATA<BR>&lt;OPTION&gt; ABA<BR>&lt;OPTION&gt; MINTS 
&lt;/SELECT&gt;<BR>&lt;BR&gt;<BR><BR>Strarting Position: <BR>&lt;INPUT 
NAME="Positon" TYPE="TEXT" 
SIZE="3"&gt;<BR>&lt;BR&gt;<BR><BR>&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;INPUT 
TYPE="SUBMIT"&gt;<BR>&lt;/DIV&gt; 
<BR>&lt;/FORM&gt;<BR>&lt;/BODY&gt;<BR>&lt;/HTML&gt;</FONT></P>
<P><FONT class=nf><BR>---</FONT></P>
<P><FONT class=nf>Checked by AVG anti-virus system (<A 
href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.504 / 
Virus Database: 302 - Release Date: 
7/24/03</FONT></P></FONT></DIV></BODY></HTML>