<script language=javascript>
function removeit2()
{
var list = document.all.added2;
var indexB = list.options.selectedIndex;
var lengthcount=0;
for (index=list.options.length-1;index>=0;index--)
{
if( index >= 0 && list.options[index].selected==true )
{
if (index==list.length-1)
{
list.length=list.length-1;
}
else
{
for( x = index; x < list.length-1; x++ )
{
current = list.options[ x ];
next = list.options[ x + 1 ];
current.text = next.text;
current.value = next.value;
}
list.length=list.length-1;
}
}
}
}
function removeall2()
{
var list = document.all.added2;
list.length=0
}
function addit2()
{
var num=0;
var flag=1;
var index=0;
for (i=0;i<document.all.tobeadd2.options.length; i++)
{ if (document.all.tobeadd2.options[i].selected==true)
{
for(j=0;j<document.all.added2.length;j++)
{
if(document.all.tobeadd2.options[i].value==document.all.added2.options[j].value)
{
flag=0;
break;
}
}
if(flag)
{
document.all.added2.length++;
document.all.added2.options[document.all.added2.length-1]=new Option( document.all.tobeadd2.options[i].text ,document.all.tobeadd2.options[i].value);
}
flag=1;
}
}
}
function addall2()
{
flag=1;
for (i=0;i<document.all.tobeadd2.options.length; i++)
{
for(j=0;j<document.all.added2.length;j++)
{
if(document.all.tobeadd2.options[i].value==document.all.added2.options[j].value)
{
flag=0;
break;
}
}
if(flag)
{