<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Paul,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I was able to implement your first suggestion, but I am not clear on how to implement the method that avoids inline scripting. Here is my simplified test page that isn't working. Any Ideas on what I might be missing?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Terry</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;html&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;head&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;style&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">.sel </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">    </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">{padding-top: 3px; padding-bottom:3px; padding-left: 10px; padding-right: 10px; margin: 0; color: white; background: #3875D7;}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">.selpub</SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">  </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">{padding-top: 3px; padding-bottom:3px; padding-left: 10px; padding-right: 10px; margin: 0; color: white; background: #3875D7;}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">.selpri</SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">  </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">{padding-top: 3px; padding-bottom:3px; padding-left: 10px; padding-right: 10px; margin: 0; color: white; background: #3875D7;}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">.nor </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">    </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">{padding-top: 3px; padding-bottom:3px; padding-left: 10px; padding-right: 10px; margin: 0;}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">.norpub</SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">  </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">{padding-top: 3px; padding-bottom:3px; padding-left: 10px; padding-right: 10px; margin: 0; color: black;}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">.norpri</SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">  </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">{padding-top: 3px; padding-bottom:3px; padding-left: 10px; padding-right: 10px; margin: 0; color: #777777;}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;/style&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;script language="JavaScript"&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;!--</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">function changestate(evt)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">{</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New">  </FONT><FONT class="Apple-style-span" face="Courier New">// cancel event-bubbling</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New">   </FONT><FONT class="Apple-style-span" face="Courier New">if (evt) { event = evt; }</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New">   </FONT><FONT class="Apple-style-span" face="Courier New">event.cancelBubble = true;</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier New; min-height: 16px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 14px/normal Courier New; min-height: 16px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New">   </FONT><FONT class="Apple-style-span" face="Courier New">// change class</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">   </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">if (this.className.search('nor') == -1)</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">    </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">{</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">      </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">this.className=this.className.replace('sel','nor');</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">    </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">   </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">else</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">    </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">{</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">      </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">this.className=this.className.replace('nor','sel');</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">    </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Courier New; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New">function Initialize()</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New">{</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New">    </FONT><FONT class="Apple-style-span" face="Courier New">div.onclick = changestate;</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New">}</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Courier New; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Courier New; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Courier New; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Courier New; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">//--&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;/script&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Courier New; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Courier New; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Courier New; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;/head&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;body onload="Initialize()"&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;div class="nor" id=".TEMP"&gt;.TEMP&lt;/div&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;div class="nor" id="images"&gt;images&lt;/div&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;div class="nor" id="skel"&gt;skel&lt;/div&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;div class="nor" id="users"&gt;users&lt;/div&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;div class="norpri" id="archive.pak"&gt;archive.pak&lt;/div&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;div class="norpub" id="authenticate.html"&gt;authenticate.html&lt;/div&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;/body&gt;</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;/html&gt;</SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks for any help.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Terry</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><DIV><DIV>On Oct 22, 2005, at 2:53 AM, Paul Novitski wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">At 05:08 PM 10/21/2005, Terry Riegel wrote:</DIV> <BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The only reason I need to getElementById is to set the background</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">color to indicate the link is selected. Is there a way to set an</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">attribute without looking up the id? I am looking for ways to speed</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">up my pages, some have hundred's of ID's.</DIV> <BR></BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Terry,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">You can pass references to the objects themselves instead of their ids:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>&lt;tag onclick="doSomething(this);"&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">...</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>function doSomething(argObject)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>{</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">                </SPAN>argObject.className = "selected";</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>}</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">If you prefer to avoid inline scripting, as I do, you can accomplish the same thing this way:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>function Initialize()</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>{</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">                </SPAN>...</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">                </SPAN>oObject.onclick = doSomething;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>}</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>function doSomething(evt)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>{</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">                </SPAN>// cancel event-bubbling</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">                        </SPAN>if (evt) { event = evt; }</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">                </SPAN>event.cancelBubble = true;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">                </SPAN>// change class</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">                </SPAN>this.className = "selected";</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">        </SPAN>}</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Peter-Paul Koch has some good tutorials on event processing in javascript at <A href="http://www.quirksmode.org">http://www.quirksmode.org</A>/</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Regards,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Paul<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Javascript mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</A></DIV> <BR class="Apple-interchange-newline"></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>