<!-- Hiding the code
// this function toggles the display of the element id's 
// passed in as a pipe '|' delineated string (e.g., eleId1|eliD2|...)
// to 'whichEl'.  'textBoxHiddenEl' is used to save state info of
// the menu visibility of the first 'whichEl' element, which gets posted 
// back to the server (as an invisible control).
function menuToggle(whichEl,textBoxHiddenEl, fixedMenuTextBox){
	if( document.getElementById ) { //if IE 5.5 or NN6 DOM complient
	menuStateEl = document.getElementById(textBoxHiddenEl);	
	
	if(menuStateEl.value != "fixed")
	{
		tog = whichEl.split("|"); 	    
		for( x=0; x<tog.length; x++ ) {
			myEl = document.getElementById(tog[x]); 
			// toggle the display property
			myEl.style.display = (myEl.style.display == "none" ) ? "" : "none";
			if( x==0 && textBoxHiddenEl != null) { // if the first element
				
				menuStateEl.value = myEl.style.display; // save it to the control
			}
		}
	}
	}
}

// this function sets a control to a disabled state
function disableControl(whichEl)
{
	if( document.getElementById ) { //if IE 5.5 or NN6 DOM complient
		// get the element passed in
		myEl = document.getElementById(whichEl); 		
		// toggle the display property
		myEl.disabled = true;
	}	
}

// this functions sets a given control to an enabled state
function enableControl(whichEl)
{
	if( document.getElementById ) { //if IE 5.5 or NN6 DOM complient
		// get the element passed in
		myEl = document.getElementById(whichEl); 
		// set to the disabled state
		myEl.disabled = false;
	}	
}

function browseLocationsPopUp(url) 
{	
	var top;
	var left;
	 
	top = (window.screen.height - 800)/2;
	left = (window.screen.width - 1000)/2;
	var settings = "height = 800, width = 1000, resizable = yes, location=no, menubar=no, titlebar=no, top = " + top + " left = " + left;
	
	window.open(url, null, settings);
}

function confirmDelete(whichEl, msg)
{
	if( confirm( msg ) ) {
		myEl = document.getElementById(whichEl);
		myEl.click();
		//window.location = url;
	}
}

function confirmClear(whichEl, msg)
{
	if( confirm( msg ) ) {
		myEl = document.getElementById(whichEl);
		myEl.click();
	}
}

function confirmPublish(whichEl, msg)
{
	if( confirm( msg ) ) {
		myEl = document.getElementById(whichEl);
		myEl.click();
	}
}
//done hiding -->
