// Open new window with event-specified parameters
function newWindow(filePath,winName,winProperties){var newWin=window.open(filePath,winName,winProperties);newWin.focus()}
// Open standard window with predefined parameters
function newWinStandard(filePath){newWindow(filePath,'standard','width=550,height=550,scrollbars=yes,resizable=yes')}
// Adds/removes an "over" class to the class attribute of the element identified by the elId argument
function swapStyle(elId){
//	var elObj = document.getElementById(elId);
//	if(elObj)elObj.className.indexOf(' over') != -1 ? elObj.className = elObj.className.substring(0, elObj.className.length - 5): elObj.className = elObj.className + " over";
}
// Adds/removes a "hide" class to the class attribute of the element identified by the elId argument
function setVisible(elId){
	var idNum = elId.substring(9);
	var isChecked = eval("document.inputform.type" + idNum)[2].checked;
	if(document.getElementById){
		var elObj = document.getElementById(elId);
		if(elObj){
			if(isChecked){
				if(elObj.className.indexOf(' hide') != -1)elObj.className = elObj.className.substring(0, elObj.className.length - 5);
			}else{
				if(elObj.className.indexOf(' hide') == -1)elObj.className = elObj.className + ' hide';
			}
		}
	}
	document.inputform["file" + idNum].disabled = !isChecked;
}
