function switchid(id, divArray){	
	hideallids(divArray);
	showdiv(divArray[id]);
}

function hideallids(divArray){
	for (var i=0;i<divArray.length;i++){
		if (document.getElementById)
			if(isObject(document.getElementById(divArray[i]))) hidediv(divArray[i]);
		else
			if (document.layers)
				if(isObject(document.getElementById(eval("document."+divArray[i])))) hidediv(divArray[i]);
			else
				if(isObject(document.getElementById(eval("document.all."+divArray[i])))) hidediv(divArray[i]);
	}		  
}

function showallids(divArray){
	for (var i=0;i<divArray.length;i++){
		if (document.getElementById)
			if(isObject(document.getElementById(divArray[i]))) showdiv(divArray[i]);
		else
			if (document.layers)
				if(isObject(document.getElementById(eval("document."+divArray[i])))) showdiv(divArray[i]);
			else
				if(isObject(document.getElementById(eval("document.all."+divArray[i])))) showdiv(divArray[i]);
	}		  
}

function hidediv(id) {
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
