function addselect()
{
str=frm.text.value;
if (str!="")
{
var temp=new Option(frm.text.value);
temp.text=frm.text.value;
frm.select.options[frm.select.options.length]=temp;
frm.text.value='';
}
}
function delstr()
{
count=frm.select.selectedIndex;
max=frm.select.length-1;
for(i=count;i<max;i++)
frm.select.options[i]=frm.select.options[i+1];
}
</script>