
function ManageTabPanelDisplay() {
//
// Between the parenthesis, list the id's of the div's that 
//     will be affected when tabs are clicked. List in any 
//     order. Put the id's in single quotes (apostrophes) 
//     and separate them with a comma -- all one line.
//

var idlist = new Array('tab1focus','tab2focus','tab3focus','tab4focus','tab1ready','tab2ready','tab3ready','tab4ready','content1','content2','content3','content4');




// check if the user is in data capture mode .. if so the tabs should not work
	if (startCapture == true) {
		if (confirm("Cancel the data capture process?  You will lose all your changes")) {
			startCapture == false;
			clearAllValues();
		}
		else {
			return;
		}
	}


	// to support moderation activities ... if the user is clicking OFF the admin tab
	// then switch all the map layers back on 
	// if admin is the tab that is being moved off, it will be displayed as a block 
	if (document.getElementById("content3").style.display == "block") {				
		switchAllLayersOn();
	}


		if(arguments.length < 1) { 
			return; 
		}
		for(var i = 0; i < idlist.length; i++) {
		   var block = false;
		   for(var ii = 0; ii < arguments.length; ii++) {
		      if(idlist[i] == arguments[ii]) {
			 block = true;
			 break;
			 }
		   }
		   if(block) { 
			if (idlist[i].substring(0,4) == "cont") {
				document.getElementById(idlist[i]).style.display = "block";
			}
			else {
				document.getElementById(idlist[i]).style.display = "inline";
			}
		   }
		   else { 
			document.getElementById(idlist[i]).style.display = "none"; 
		   }
		} // for var i
		
		
	
			
	
}






