function toggleRows(divPrefix, tableId, rowId) { 
	var div = document.getElementById(divPrefix + rowId);
	div.innerHTML = (div.innerHTML == '-') ? '+' : '-';
	
	var rows = document.getElementById(tableId).rows;
	for (var x = 0; x < rows.length; x++) {
		var row = rows[x];
		
		if (row.id.indexOf(rowId) == 0) {
			if (row.style.display == 'none') {
				row.style.display = '';					
			} else {
				row.style.display = 'none';
			}
		}
	}
} 

function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //modified
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

var curSelectedDiv = null;

function showHide(menuId){
    //This function assumes that it will only be 
    //used for 1st tier navigation menu items

    var switch_id = document.getElementById(menuId);

    if(switch_id == null && menuId != null)
        switch_id = menuId;

    if(document.getElementById){
        if(switch_id.className != 'show'){
            switch_id.className = 'show';
            if(curSelectedDiv != null && curSelectedDiv != switch_id){
                curSelectedDiv.className = 'hide';
            }
            curSelectedDiv = switch_id;
        }
        else{
            switch_id.className = 'hide';
        }
    }
}
  