//////////////////////////////////////////////////////////////////////////////////////////
 
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		g_strIdNav = "IE"
	}
	else if(navigator.appName == "Netscape") 
	{
		g_strIdNav = "NS"
	}
	
/////////////////////////////////////////////////////////////////////////////////////////
// función que devuelve un string con el tipo de browser
function TipoBrowser()
{
 
	if (parseInt(navigator.appVersion) >= 4)
	{
		if (navigator.appName == "Netscape")
		{
			return "NS" // Currently using Netscape Communicator
		}
		else
			return "IE" // Currently using MS Internet Explorer IE 5.01
	}
}
/////////////////////////////////////////////////////////////////////////////////////////
	function g_sInicVars()
 
	{
		
		
		g_strDirRaiz = "../";
		g_strDirCss = "zzz/css/";
		g_strDirImg = "zzz/img/";
		g_strDirJs = "zzz/js/";
		g_strDirModulos = "modulos/";
		
		//g_sIdNav();
	}
/////////////////////////////////////////////////////////////////////////////////////////

function OpcionActiva(strSelecFila)	
{
			strColor_Selecc= "#ffffff"
			strLetra_Selecc_Zona="#29499c"
						
			strColor_NoSelecc = "#d6cfc6"
			strColor_NoSelecc_Zona="#29499c"

	if (TipoBrowser()=="IE" )
	{

	     id_activo=document.all["MenuLateral"].rows(strSelecFila).rowindex 
     
	   if ((strSelecFila != "zonaclientes") && (strSelecFila != "zonadistri")&& (strSelecFila != "logo")) 
	  {
			document.all["MenuLateral"].rows(strSelecFila).style.background = "#ffffff"
			document.all["MenuLateral"].rows(strSelecFila).style.borderrightstyle = "none"
			document.all["MenuLateral"].rows(strSelecFila).style.borderLeftStyle = "none"
			// Quita el borde exterior 
			document.all["MenuLateral"].rows(strSelecFila).cells(1).style.borderLeftStyle = "none"
			
			// Pone borde superior para que el final de la fila seleccionada no quede irregular
			document.all["MenuLateral"].rows(strSelecFila).cells(1).style.borderTopStyle = "solid"
			document.all["MenuLateral"].rows(strSelecFila).cells(1).style.borderTopWidth = "1px"
			document.all["MenuLateral"].rows(strSelecFila).cells(1).style.borderTopColor = "#a9a9a9"
			
			
		
	  }
	  
	
	     id_inactivo=frmValidarOpcActivo.OpcActiva.value
	     if ((id_inactivo != "inicio") && ( id_inactivo != "zonaclientes") && (id_inactivo != "zonadistri")&& (id_inactivo != "logo")) 
	    { 
			document.all["MenuLateral"].rows(id_inactivo).style.background = "#d6cfc6"
			// restaura el borde exterior al deseleccionado
			document.all["MenuLateral"].rows(id_inactivo).cells(1).style.borderLeftStyle = "solid"
			document.all["MenuLateral"].rows(id_inactivo).cells(1).style.borderLeftWidth = "1px"
			// deja el borde vertical con el aspecto deseleccionado
			document.all["MenuLateral"].rows(id_inactivo).cells(1).style.borderTopStyle = "none"
	
			
		}
		
	  

		frmValidarOpcActivo.OpcActiva.value=strSelecFila
	
	}	

}
/////////////////////////////////////////////////////////////////////////////////////////

function AbrirPopup(intAlto, intAncho, strASP)
{
	window.open(strASP+".asp","pop","width="+intAncho+",height="+intAlto);
}	
/////////////////////////////////////////////////////////////////////////////////////////

function fValidarDatos()
{
	if(document.frmDatosMail.empresa.value=="") {
		alert("Por favor introduzca su nombre")
		return false;
	}
	else if(document.frmDatosMail.email.value=="") {
		alert("Por favor introduzca su dirección de correo")
		return false;
	}
	else if ((document.frmDatosMail.email.value.indexOf("@")==-1) || (document.frmDatosMail.email.value.indexOf(" ")>-1)){
		alert("La dirección de correo que ha introducido es incorrecta")
		return false;
	}
	else {
		document.frmDatosMail.hdnRemitente.value=document.frmDatosMail.email.value;
		return true;
	}
}
/////////////////////////////////////////////////////////////////////////////////////////
