function linkmenuesq(lnk, tp, param, paCookie, faCookie, qualDiv) {
var aescrever = ""
aescrever += "(lnk: " + lnk + ")";
aescrever += "(tp: " + tp + ")";
aescrever += "(param: " + param + ")";
aescrever += "(paCookie: " + paCookie + ")";
aescrever += "(faCookie: " + faCookie + ")";
aescrever += "(qualDiv: " + qualDiv + ")";
//alert(aescrever)
//
	var url = "";
	var complNome = "";
	if (qualDiv == "menuNAM") {complNome = "NAM";}
	if (lnk != "" && lnk != "undefined") {
		if (paCookie != "" && paCookie != "undefined") {setCookie("menuPai"+complNome, paCookie);}
		if (faCookie != "" && faCookie != "undefined") {setCookie("menuFilho"+complNome, faCookie);}
//
		url += lnk;
		if (param != "" && param != "undefined") {
			if (param.indexOf("?") == -1 && lnk.indexOf("?") == -1) {url += "?" + param;} else {url += param;}
		}
//		
		if (qualDiv == "menuNAM") {
			if (lnk == "GABARITO") {
				url = "/HF/EMB/EMB_lista_gab/0,7501,EMB,00.html";
			} else if (lnk == "Avaliação" || lnk == "Avaliacao") {
				document.formAv.submit();
				return;
			} else {
				if(tp != "13" && tp != "3") {
					url = "http://internas.netname.com.br/" + url;
				}
			}
		}
//
		if(tp != "13" && tp != "3" && tp != "14" && tp != "4") {
			if (qualDiv == "menuNAM") {
				LinkAutent("/HF/EMB/EMB_conteudo/1,7500,EMB,00.html?d="+url);
			} else {
				location.href=url;
			}
		} else {
			if (qualDiv == "menuNAM") {
				PopAutent(url,'janela','resizable=1,scrollbars=1');
			} else {
				window.open(url,'janela','resizable=1,scrollbars=1');
			}
		}
	}
}
var globalAbreFecha = "";
var globalAbreFechaDois = "";
function alturamenu(valor,qualDiv) {
	if (qualDiv == "" || qualDiv == undefined) {qualDiv = "menuNAM";}
	if (qualDiv == "menuNAM") {
		globalAbreFecha = valor;
	} else {
		globalAbreFechaDois = valor;
	}
	if (ie4) {document.all[qualDiv].style.height = valor + "px";}
	if (ns4) {document.layers[qualDiv].height = valor + "px";}
	if (ns6) {document.getElementById(qualDiv).style.height = valor + "px";}
}
function alturamenufecha(valor,qualDiv) {
	if (qualDiv == "" || qualDiv == undefined) {qualDiv = "menuNAM";}
	if (qualDiv == "menuNAM") {
		globalAbreFecha = valor;
	} else {
		globalAbreFechaDois = valor;
	}
	window.setTimeout("alturafechando('" + qualDiv + "');",1500);
}
function alturafechando(qualDiv) {
	if (qualDiv == "" || qualDiv == undefined) {qualDiv = "menuNAM";}
	var valor = "";
	if (qualDiv == "menuNAM") {
		valor = globalAbreFecha;
	} else {
		valor = globalAbreFechaDois;
	}
	if (ie4) {document.all[qualDiv].style.height = valor + "px";}
	if (ns4) {document.layers[qualDiv].height = valor + "px";}
	if (ns6) {document.getElementById(qualDiv).style.height = valor + "px";}
}
function AplicaAltura(qualDiv) {
	if (ie4) {document.all["dv"+qualDiv].style.height = "auto";}
	if (ns4) {document.layers["dv"+qualDiv].height = "auto";}
	if (ns6) {document.getElementById("dv"+qualDiv).style.height = "auto";}
}
function LimpaConteudo(qualDiv) {
	if (ie4) {document.all["dv"+qualDiv].innerHTML = "";}
	if (ns4) {document.layers["dv"+qualDiv].innerHTML = "";}
	if (ns6) {document.getElementById("dv"+qualDiv).innerHTML = "";}
}
function AplicaConteudo(qualDiv) {
	if (ie4) {document.all["dv"+qualDiv].innerHTML = document.all["or"+qualDiv].innerHTML;}
	if (ns4) {document.layers["dv"+qualDiv].innerHTML = document.layers["or"+qualDiv].innerHTML;}
	if (ns6) {document.getElementById("dv"+qualDiv).innerHTML = document.getElementById("or"+qualDiv).innerHTML;}
}

