function light_on(obj,color) {
	obj.style.backgroundColor=color;
}
function light_off(obj) {
	obj.style.backgroundColor="transparent";
}

function win1(win) {
	window.open(win,"Window1","menubar=yes,width=800,height=600, toolbar=yes, scrollbars = yes");
}

function openImage(imgUrl, imgHeight, imgWidth) {
	window.open(imgUrl, 'Image', 'directories=no,height='+imgHeight+',width='+imgWidth+',location=no,menubar=no,toolbar=no,scrollbars=no');
}

function displayObject(obj, expectedValue, hiddenObjId) {
	txt = obj.options[obj.selectedIndex].value;
	document.getElementById(hiddenObjId).style.display = 'none';

	if (txt.match(expectedValue)) {
		document.getElementById(hiddenObjId).style.display = 'block';
	}
}

function displayObject2(obj, hiddenObjId) {
	if (document.getElementById(hiddenObjId).disabled == true) {
		document.getElementById(hiddenObjId).disabled = false;
	} else {
		document.getElementById(hiddenObjId).disabled = true;
		document.getElementById(hiddenObjId).value = '';
	}
}