<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function moveOver()
{
var boxLength = document.form.cygy.length;
var selectedItem = document.form.xzgy.selectedIndex;
var selectedText = document.form.xzgy.options[selectedItem].text;
var selectedValue = document.form.xzgy.options[selectedItem].value;
var i;
var isNew = true;
if (boxLength != 0) {
for (i = 0; i < boxLength; i++) {
thisitem = document.form.cygy.options[i].text;
if (thisitem == selectedText) {
isNew = false;
break;
}
}
}
if (isNew) {
newoption = new Option(selectedText, selectedValue, false, false);
document.form.cygy.options[boxLength] = newoption;
}
document.form.xzgy.selectedIndex=-1;
}
function removeMe() {
var boxLength = document.form.cygy.length;
arrSelected = new Array();
var count = 0;
for (i = 0; i < boxLength; i++) {
if (document.form.cygy.options[i].selected) {
arrSelected[count] = document.form.cygy.options[i].value;
}
count++;
}
var x;
for (i = 0; i < boxLength; i++) {
for (x = 0; x < arrSelected.length; x++) {
if (document.form.cygy.options[i].value == arrSelected[x]) {
document.form.cygy.options[i] = null;
}
}
boxLength = document.form.cygy.length;
}
}
function saveMe() {
var strValues = "";
var boxLength = document.form.cygy.length;
var count = 0;
if (boxLength != 0) {
for (i = 0; i < boxLength; i++) {
if (count == 0) {
strValues = document.form.cygy.options[i].value;
}
else {
strValues = strValues + "," + document.form.cygy.options[i].value;
}
count++;
}
}