
function SwitchDisplay(el) {
	if (el.style.display == "none") {el.style.display = "" }
	else {el.style.display = "none"}			
	

	}

function SwitchTab(strPrefix, intCount, intCurrentIndex, strOnOff, strVisibleStyle) {		
	// strOnOff "on" > turn on current, hide others
	// strOnOff "off" > turn off current, show others

	if (strOnOff == "off") {state1 = strVisibleStyle ; state2 = "none"}
	else {state1 = "none" ; state2 = strVisibleStyle} 		
	
	for(i=1; i<=intCount; i++) {
		el = document.getElementById(strPrefix + i) ;
		if (i == intCurrentIndex) {
			if (el.style.display == state2) 
				{el.style.display = state1  }
			else 
				{el.style.display = state2	}				
			}
		else {el.style.display = state1}
		}
	}		
	
function SetInputValue(strInputId,intValue) {
	document.forms(0)(strInputId).value = intValue ;
	}
	
