function Pop(Url,MWin,w,h,t,l) {
if (typeof(h)=="undefined") { h =100; }
if (typeof(w)=="undefined") { w =100; }
if (typeof(t)=="undefined") { t =100; }
if (typeof(l)=="undefined") { l =100; }

MWin = window.open(Url,MWin,"resizable=no,scrollbars=1,width=" + w + ",height=" + h + ",top=" + t + ",left="+ l);
MWin.focus();
};

function VaciaCampo(VaCpo,DefVal) {
	if (VaCpo.value == DefVal) { VaCpo.value = ""; }
}

//############################
//####### MENU
//############################

var tiempoabierto;
//esta bandera se puso para ocultar
// un layer del archivo indice que contiene
// una forma y que no queda por arriba del menu:
var EstaEnBuscadorFlag;
//Por definicion no estamos en ella:
EstaEnBuscadorFlag = 0;
//Cuando se carga el layer en cuestion se establece a 1;
//function CambiaBuscadorFlag() { EstaEnBuscadorFlag = 1; }

function ShowMenu(Menu) {
	
	var MenuId = "m" + Menu;
	
	if (typeof(document.getElementById(MenuId))=="undefined") {  return;  }
	
	
	
	var navegador = navigator.appName;
	var version	= parseFloat(navigator.appVersion.indexOf("MSIE")>0?navigator.appVersion.split(";")[1].substr(6):navigator.appVersion);
	
	if ((navegador == "Netscape")&&(version < 6)) {  return; }
	if ((navegador == "Microsoft Internet Explorer")&&(version < 5)) {  return; }
	
	if (tiempoabierto != "") { window.clearTimeout(tiempoabierto); }
	
	document.getElementById(MenuId).style.display = "inline";
};

function CerrarMenus(Menu) {
	if (Menu != 1)  { document.getElementById('m1').style.display = "none"; }
	if (Menu != 2)  { document.getElementById('m2').style.display = "none"; }
	if (Menu != 3)  { document.getElementById('m3').style.display = "none"; }
	if (Menu != 4)  { document.getElementById('m4').style.display = "none"; }
	if (Menu != 5)  { document.getElementById('m5').style.display = "none"; }
	if (Menu != 6)  { document.getElementById('m6').style.display = "none"; }
}

function CerrarMenu() {
	tiempoabierto = window.setTimeout(CerrarMenus, 300);
	if (EstaEnBuscadorFlag ==1) { document.getElementById('Buscador').style.display = "inline"; }
};

function mantenerMenu() { 
	if (tiempoabierto != "") { window.clearTimeout(tiempoabierto); }
	
}

function AbreClick(Menu) {
	
	var MenuId = "m" + Menu;
	if (document.getElementById(MenuId).style.display == "none") { document.getElementById(MenuId).style.display = "inline"; }
	else { document.getElementById(MenuId).style.display = "none"; }
}
//Fin menu de dest


function mOvr(src) {
	if (!src.contains(event.fromElement)) {
		src.style.cursor = 'hand';
		//src.style.backgroundColor = '#2163B2';
	}
}
function mOut(src) {
	if (!src.contains(event.toElement)) {
		src.style.cursor = 'default';
		//src.style.backgroundColor = '#0F52A6';
	}
}

function mClk(src) { src.children.tags('A')[0].click();};



function AbreDest() {

ShowMenu(1);
AbreClick(2);

}

function AbreTipos() {


ShowMenu(3);
AbreClick(2);

}


// ### FIN MENU