  
if(window.event + "" == "undefined") event = null;
function f_PopUp(){return false};
function f_PopDown(){return false};
popUp = f_PopUp;
popDown = f_PopDown;

   DOM = (document.getElementById) ? true : false;
   NS4 = (document.layers) ? true : false;
    IE = (document.all) ? true : false;
   IE4 = IE && !DOM;
   Mac = (navigator.appVersion.indexOf("Mac") != -1);
  IE4M = IE4 && Mac;
IsMenu = (DOM || NS4 || (IE4 && !IE4M));

BrowserString = NS4 ? "NS4" : DOM ? "DOM" : "IE4";

if(window.event + "" == "undefined") event = null;
function f_PopUp(){return false};
function f_PopDown(){return false};
popUp = f_PopUp;
popDown = f_PopDown;

var i_a ="javascript:";
var i_c = "";
var width = 196;
var menu_x= width-11;
/*Variables de Opacidad y sombreado del menu*/
var val_opacidad = 80;
var val_color_sombra = "6BA957";
var val_fuerza_sombra = 2;
var val_angulo_sombra = 225;

GL_MenuWidth          = 196;
GL_FontFamily         = "Small Fonts";
GL_FontSize           = 9;
GL_FontBold           = false;
GL_FontItalic         = false;
GL_FontColor          = "#6a6a6a";
GL_FontColorOver      = "#000000";
GL_BGColor            = "#E0EEDC";
GL_BGColorOver        = "#B4C8AE";
GL_ItemPadding        = 0;

GL_BorderWidth        = 1;
GL_BorderColor        = "#6BA957";
GL_BorderStyle        = "solid";
GL_SeparatorSize      = 1;
GL_SeparatorColor     = "#c0c0c0";
GL_ImageSrc           = "";
GL_ImageSrcLeft       = "";
GL_ImageSize          = 0;
GL_ImageHorizSpace    = 0;
GL_ImageVertSpace     = 2;

GL_KeepHilite         = false;
GL_ClickStart         = false;
GL_ClickKill          = 0;
GL_ChildOverlap       = 0;
GL_ChildOffset        = 0;
GL_ChildPerCentOver   = null;
GL_TopSecondsVisible  = .1;
GL_StatusDisplayBuild = 0;
GL_StatusDisplayLink  = 0;
GL_UponDisplay        = null;
GL_UponHide           = null;

//GL_RightToLeft        = true;
GL_CreateTopOnly    = true;
GL_ShowLinkCursor     = true;

/*
Envia por post a un destino especificado los parametros de qstring
Parametros:
	formulario = objeto de formulario que va a ser enviado
	url_accion = accion del formulario que se va a enviar, si esta en blanco se envia a la que tiene el formulario definida		
	qstring = parametros que se le agrgan al formulario al iniciar la accion el formato es:	
			"PARAMETRO1|VALOR1|PARAMETRO2|VALOR2"
			- PARAMETRO1 Y PARAMETRO2 = NOMBRE DEL CAMPO A ENVIAR Y A RECIBIR (REQUEST("PARAMETRO1") Y REQUEST("PARAMETRO2"))
			- VALOR1 Y VALOR1 = VALOR DEL CAMPO A ENVIAR Y A RECIBIR
	snmultipart=true/false para saber si es multipart (para hacer los uploads) o no 
*/
function EnviarPost(formulario,url_accion,qstring)
{
	var dat="";
	//alert(""+formulario);
	var args=EnviarPost.arguments;
	var destino="";
	var codificacion=0;
	if (args.length>=4) 
	{
		destino=args[3];
	}
	if (args.length>=5) 
	{
		codificacion=args[4];
	}
	if (""+formulario!="[object]") 
	{
		var forma = document.createElement("FORM");
		forma.method ="POST";
		forma.name =formulario;		
		document.body.insertBefore(forma);
	}
	else
	{
		var forma = formulario;
	}
	if (url_accion!="") forma.action=url_accion;
	if (destino!="") forma.target =destino;
	
	switch (codificacion)
	{
		case 1 :
			forma.encoding="application/x-www-form-urlencoded";
		case 2 :
			forma.encoding="multipart/form-data";
		case 3 :
			forma.encoding="text/plain";
	}
	if (qstring!="")
	{
		var qstring=qstring.split("|");
		for (J = 0; J < qstring.length-1; J++)
		{
			val=Math.floor(J/2);
			if (val==(J/2))
			{
				var campo = document.createElement("<INPUT TYPE='HIDDEN' NAME='" + qstring[J] + "' ID='" + qstring[J] + "' VALUE='" + qstring[J+1] + "'>");
				forma.insertBefore(campo);
			}
		}
	}
	forma.submit();
}


if(IsMenu) {
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='js_menu/Arrays.js' TYPE='text/javascript'><\/SCR" + "IPT>");
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='js_menu/Script"+ BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}

function acomodaMenu(i,top)
{
	var menu_oper = document.all("Menu" + i);
	var xs=document.body.scrollLeft;
	var ys=document.body.scrollTop;
	if (""+menu_oper!="null") 
	{
		menu_oper.style.posLeft=(document.body.clientWidth-menu_x)/2+153+xs;
		menu_oper.style.posTop=(top);
	}
}

