<SCRIPT language=Javascript>
function toright()
{
if ( document.frm )
{
var index=document.frm.region_list.selectedIndex;
if ( index>=0 )
if ( document.frm.region_list.options[index].value!='' )
{
document.frm.quarters.options[document.frm.quarters.length]=new Option ( document.frm.region_list.options[index].text,document.frm.region_list.options[index].value );
document.frm.region_list.options[index].selected=false;
}
}
}
function delright()
{
if ( document.frm )
{
var index=document.frm.quarters.selectedIndex;
var length=document.frm.quarters.length;
if ( index>=0 )
{
for ( i=index;i<(length-1);i++ ) { document.frm.quarters.options=new Option (document.frm.quarters.options[i+1].text,document.frm.quarters.options[i+1].value); }
document.frm.quarters.length--;
}
}
}
</SCRIPT>
<FORM name="frm" action="s.html" method=post>
<SELECT ondblclick=javascript:delright() multiple size=8 name="quarters" style="width:150px;">
</SELECT>
<INPUT class=btn18 onclick=javascript:toright() type=button value="<">
<INPUT class=btn18 onclick=javascript:delright() type=button value=">">
<SELECT ondblclick=javascript:toright() size=11 name=region_list style="width:150px;">
<option value="1">1</value>
<option value="2">2</value>
<option value="3">3</value>
<option value="4">4</value>
<option value="5">5</value>
<option value="6">6</value>
</SELECT>
<input type="submit" name="Submit" value="Submit">
</form>