<br>Julien, thanks for the script.<br><br>I tried it but nothing happened.<br>I trying to find out what the problems are. I hope anybody could help.<br><br>Thanks.<br><br><br><b><i>Julien-Samuel Lacroix <jlacroix@mapgears.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hello,<br>Your funciton should look like:<br><br> function becomeAerial()<br> {<br> for(i=0;document.forms[0].elements['legendlayername[]'][i];i++)<br> {<br> <br>if(document.forms[0].elements['legendlayername[]'][i].value=="Aerial")<br> {<br> <br>document.forms[0].elements['legendlayername[]'][i].checked=true;<br> }<br> }<br> document.forms[0].submit();<br> }<br><br>Note that:<br>- the forms take an 's'<br>- the access to form elements with '[]' in the names is special.<br>- in the if() statement, the value should be equal (==) to "Aerial" not <br>different
(!=).<br><br>Julien<br></blockquote><br><p>
                <hr size=1> Yahoo! Mail<br>
<a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=38867/*http://photomail.mail.yahoo.com">Use Photomail</a> to share photos without annoying attachments.