
function swap(thisDiv, state) {

	if (state == 'block') {
		state = 'none';
	}
	else {
		state = 'block';
	}
	if (document.all) { //IS IE 4 or 5 (or 6 beta)
		eval( "document.all." + thisDiv + ".style.display = state");
	}
	if (document.layers) { //IS NETSCAPE 4 or below
		document.layers[thisDiv].display = state;
	}
	if (document.getElementById && !document.all) {
		 document.getElementById(thisDiv).style.display = state;
	}
}

function vanish(blockDivAr) {
	var state = 'none';
	for (var i=blockDivAr.length-1; i>=0; --i){
		if (document.all) { //IS IE 4 or 5 (or 6 beta)
			eval( "document.all." + blockDivAr[i] + ".style.display = state");
		}
		if (document.layers) { //IS NETSCAPE 4 or below
			document.layers[blockDivAr[i]].display = state;
		}
		if (document.getElementById && !document.all) {
			document.getElementById(blockDivAr[i]).style.display = state;
		}
	}
}

