
function changeLoc(loc) {
	window.location.href = loc;
}

function confirmDel() {
	yes = confirm("Are you sure you wish to delete this?");
	if (yes) {
		event.returnValue = true;
	} else {
		event.returnValue = false;
	}
}

function confirmDelLoc(loc) {
	yes = confirm("Are you sure you wish to delete this?");
	if (yes) {
		window.location.href = loc;
	}
}

function addOpt(fldId,fldText,fldVal) {
	var newElem = document.createElement("OPTION");
	newElem.text = fldText;
	newElem.value = fldVal;
	optCount = "document.frm." + fldId + ".options.length";
	optCount = eval(optCount);
	opt = "document.frm." + fldId + ".options[" + eval(optCount) + "] = new Option('" + fldText + "','" + fldVal + "')";
	eval(opt);
	optCount = "document.frm." + fldId + ".options.length";
	optCount = eval(optCount) - 1;
	opt = "document.frm." + fldId + ".options[" + optCount + "].selected = true";
	eval(opt);
}

function checkReqxxx(fieldList) {
	var fieldList = fieldList.split("-");
	qCount = 0;
	qMissed = 0;
	qMissedStr = "";
	while (qCount < 20) {
		if (fieldList[qCount]) {
			aLen = "document.frm." + fieldList[qCount] + ".length";
			aLen = eval(aLen);
			qaCount = 0;
			qaChecked = 0;
			while (qaCount < aLen) {
				qa = "document.frm." + fieldList[qCount] + "[" + qaCount + "].checked";
				if (eval(qa)) {
					qaChecked = 1;
				}
				qaCount = qaCount + 1;
			}
			if (qaChecked == 0) {
				qMissed = qMissed + 1;
				qMissedStr = qMissedStr + " - " + fieldList[qCount];
			}
		}
		qCount = qCount + 1;
	}
	if (qMissed > 0) {
		alert('You must enter the following information ' + qMissedStr);
		//return false;
		document.getElementById('frm').submit();
	} else {
		document.getElementById('frm').submit();
	}
}

function checkReq(fieldList) {
	var fieldList = fieldList.split("-");
	document.getElementById('frm').submit();
}


 
