////// MENU START:  BELOW SCRIPT CONTROLS THE MENU BEHAVIOR AND GENERAL PAGE LAYOUT //////
function openURL(url) {
	location.href= url;
}

function topMenuLink(url, sec, nav){
	location.href="/hcs/web/psx.jsp?url="+ url + "&sec=" + sec + "&nav=" + nav;
}

function selectMenu(Id) {
	var mainRows = document.getElementsByTagName("TD");
	var menuId = "mainMenu" + Id;
//Change the bgcolor of the main menu
	for (i=0; i<mainRows.length;i++){
		var mainRowName = mainRows[i].id;
	
			if(mainRowName != null && mainRowName != "undefined" && mainRowName.indexOf("mainMenu") > -1){
				if (mainRowName != menuId){
					mainRows[i].className = 'menu';
				}else{
					mainRows[i].className = 'menuActive';
				}
			}	
	
	}
}
function selectMenu2(Id, Id2) {
	var mainRows = document.getElementsByTagName("TD");
	var menuId = "mainMenu" + Id;
	var menuId2 = "mainMenu" + Id2;
//Change the bgcolor of the main menu
	for (i=0; i<mainRows.length;i++){
		var mainRowName = mainRows[i].id;
	
			if(mainRowName != null && mainRowName != "undefined" && mainRowName.indexOf("mainMenu") > -1){
				if (mainRowName != menuId){
					mainRows[i].className = 'menu';
				}else{
					mainRows[i].className = 'menu';
				}
				if (mainRowName == menuId2){
					mainRows[i].className = 'menuActive';
				}
			
			}	
	
	}
}

function open_window(url){
	window.open(url,"screenshot_popup","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,width=700,height=550");
}
	     	     
