<!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.2722.900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>sure...&nbsp; i have done it before...&nbsp; i dont 
have the code but you will want to look into doing the following...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-new array to hold current&nbsp;values of selected 
indexs (HOLDER)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-select.onchange will evoke your function to 
check</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-onchange function:</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp; check&nbsp;length 
of&nbsp;&nbsp;HOLDER</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; if &gt; 3 then</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; loop select and reset values to unselect&nbsp;&nbsp;&nbsp; 
</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; loop HOLDER set select.options[HOLDER].selected to 
true</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; else</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; loop select and&nbsp;insert selected indexes into 
HOLDER</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></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Anyway, this is where I would start....&nbsp; I 
would recommend getting O'Reilly's Javascript - The Definitive 
Guide</FONT></DIV>
<DIV><BR><FONT face=Arial size=2>~ Terry<BR>757 581-5981<BR>AIM/Yahoo: 
lv2bounce</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>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "David Hannum" &lt;</FONT><A 
href="mailto:hannum@ohio.edu"><FONT face=Arial 
size=2>hannum@ohio.edu</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>To: &lt;</FONT><A 
href="mailto:javascript@LaTech.edu"><FONT face=Arial 
size=2>javascript@LaTech.edu</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Thursday, December 12, 2002 7:52 
AM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: [Javascript] Limit Choices in Multiple 
Select Box</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial 
size=2>&gt; I'm using a script that when a user selects an option in a 
multi-select box,<BR>&gt; it places it in another box.&nbsp; What I need to do 
is limit the number of items<BR>&gt; in the second box to three.&nbsp; Can this 
be done?<BR>&gt; <BR>&gt; Dave<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; 
===============================<BR>&gt; David R. Hannum<BR>&gt; Web 
Analyst/Programmer<BR>&gt; Ohio University Computer Services<BR>&gt; 
Administrative Systems<BR>&gt; (740) 597-2524<BR>&gt; <BR>&gt; "If your wife is 
having fun, and you're not . . .<BR>&gt; You're still having a lot more fun than 
if<BR>&gt; you're having fun, and she's not!"&nbsp; (Red Green)<BR>&gt; <BR>&gt; 
_______________________________________________<BR>&gt; Javascript mailing 
list<BR>&gt; </FONT><A href="mailto:Javascript@LaTech.edu"><FONT face=Arial 
size=2>Javascript@LaTech.edu</FONT></A><BR><FONT face=Arial size=2>&gt; 
</FONT><A href="https://lists.LaTech.edu/mailman/listinfo/javascript"><FONT 
face=Arial 
size=2>https://lists.LaTech.edu/mailman/listinfo/javascript</FONT></A><BR><FONT 
face=Arial size=2>&gt; <BR>&gt; </FONT></BODY></HTML>