function refreshSubmenu(path, pageIdentifier, menuIdentifier) {
	var url = path+"/displayMenu.do?";

	if ((pageIdentifier != null) && (pageIdentifier != "")) url += "pageId="+pageIdentifier+"&";
	if ((menuIdentifier != null) && (menuIdentifier != "")) url += "menuId="+menuIdentifier;

	window.location=url;
}

function refreshTabmenu(path, pageIdentifier, submenuIdentifier, istabmenu) {
	var url = path+"/displayMenu.do?";

	if ((pageIdentifier != null) && (pageIdentifier != "")) url += "pageId="+pageIdentifier+"&";
	if ((submenuIdentifier != null) && (submenuIdentifier != "")) url += "subMenuId="+submenuIdentifier;
	if (istabmenu) url += "&istabmenu="+istabmenu; 

	window.location=url;
}

function callAction(actionUrl) {
	window.location=actionUrl;
}

//function link(path, menuId, submenuId, pageId) {
//	alert(" "+path+" "+menuId+" "+submenuId+" "+pageId+" ");
//}

function link(path, level, menuId, pageId) {
	//alert(" "+path+" "+level+" "+menuId+" "+pageId+" ");
	
	var url = path+"/displayMenu.do?";
	if (level == 1)
		url += "countryId="+menuId+"&pageId="+pageId;
	else if (level == 2)
		url += "menuId="+menuId+"&pageId="+pageId;
	else if (level >= 3)
		url += "subMenuId="+menuId+"&pageId="+pageId;

	//alert(" url = "+url);
	window.location = url;
}

function link2(path, action, country) {
	//alert(" "+path+" "+action);
	
	var url = path + action;
	if (country != null && country != '' && action != '/legalNotice.do')
		url += "#" + country;
	
	window.location = url;
}
