<!--


function cancelForm(strFormName) {
	document.forms[strFormName].elements["action"].value = "cancel";
	document.forms[strFormName].submit()
}

function addOpt(strFormName, strSelectName){

	booItemFound = false
	lngTmpI = document.forms[strFormName].elements[strSelectName + "Source"].selectedIndex;
	if (lngTmpI > -1){
		lngTmpOptionI = document.forms[strFormName].elements[strSelectName + "Source"].options[lngTmpI].value
		lngTmpOptionText = document.forms[strFormName].elements[strSelectName + "Source"].options[lngTmpI].text
		if (lngTmpOptionI > 0){
			lngTmpOptionLength = document.forms[strFormName].elements[strSelectName + "Destination"].options.length - 1
		
			for (i=0; i<lngTmpOptionLength+1; i++){
				if (lngTmpOptionI == document.forms[strFormName].elements[strSelectName + "Destination"].options[i].value){
					booItemFound = true
				}
			}			
			if (booItemFound == false){
				strLastOption = document.forms[strFormName].elements[strSelectName + "Destination"].options[lngTmpOptionLength]
				document.forms[strFormName].elements[strSelectName + "Destination"].options[lngTmpOptionLength] = new Option(lngTmpOptionText, lngTmpOptionI)
				document.forms[strFormName].elements[strSelectName + "Destination"].options[lngTmpOptionLength + 1] = strLastOption
			}
		}
	}
	setValuesInForm(strFormName, strSelectName)
}

function removeOpt(strFormName, strSelectName){
	lngTmpI = document.forms[strFormName].elements[strSelectName + "Destination"].selectedIndex;
	if (lngTmpI > -1){
		lngTmpOptionI = document.forms[strFormName].elements[strSelectName + "Destination"].options[lngTmpI].value
		if (lngTmpOptionI > 0){
			document.forms[strFormName].elements[strSelectName + "Destination"].options[lngTmpI] = null
		}
	}
	setValuesInForm(strFormName, strSelectName)
}

function setValuesInForm(strFormName, strSelectName){
	strTmpOptions = ""
	lngTmpOptionLength = document.forms[strFormName].elements[strSelectName + "Destination"].options.length
		
	for (i=0; i<lngTmpOptionLength; i++){
		lngTmpOptionI = document.forms[strFormName].elements[strSelectName + "Destination"].options[i].value
		if (lngTmpOptionI > 0){
			strTmpOptions = strTmpOptions + lngTmpOptionI + "|"
		}
	}
	if (strTmpOptions.length > 1){
		strTmpOptions = strTmpOptions.substring(0, strTmpOptions.length - 1)
	}
	document.forms[strFormName].elements["_" + strSelectName].value = strTmpOptions
}


function setDateFromCalendar(strFormName, strField, dateSupplied){
	document.forms[strFormName].elements[strField].value = dateSupplied;
}

-->

