	function enviaraMapa(entrada,accion)
	{

	document.formu.modasecun.value=entrada;
	document.formu.action=accion;
	
	 document.formu.submit();	
	}

function CreaArray(n) {	
         this.length = n;
        for (var i = 1; i<=n; i++) {
                this[i] = new Image();
        }
        return this; 
}

function CambiarImagen(imagenNueva,imagenActual) {
	 imagenActual.src=imagenNueva.src
	 
}


 function enviart(pagina)
 {
 window.location.href=pagina;
 }

//muestro el navegador 
//alert("Tu navegador: " + navigator.appName + " / " + navigator.appCodeName); 
 
var valor;
var ul;
var valorTr;
switch (navigator.appName)
{
 case "Netscape":
	//alert("netesqueip")
	document.write('<link rel="stylesheet" href="./estilos/inputs.css" Type="text/css">\n<link rel="stylesheet" href="./estilos/generalff.css" Type="text/css">');
	ul='<ul>';
	valorTr='';
	break;
 case "Firefox":
	//alert("fairfocs")
	document.write('<link rel="stylesheet" href="./estilos/inputs.css" Type="text/css">\n<link rel="stylesheet" href="./estilos/generalff.css" Type="text/css">');
	ul='<ul>';
	valorTr='';
	break;
 case "Microsoft Internet Explorer":
//	alert("internetes plorer")
	document.write('<link rel="stylesheet" href="./estilos/inputs.css" Type="text/css">\n<link rel="stylesheet" href="./estilos/generalie.css" Type="text/css">');
	ul='';
	valorTr='Transporte por ';
	break;
 default:
	document.write('<link rel="stylesheet" href="./estilos/inputs.css" Type="text/css">\n<link rel="stylesheet" href="./estilos/generalie.css" Type="text/css">');
	ul='';
	valorTr='Transporte por ';
	break;
}


function vervacio()
{
if (document.formu.buscador.value=="")
	{
	alert("Debe escribir algun criterio para la búsqueda")
	}
	else{
	document.formu.action="./directorio/resultadosB.asp";
//	alert(document.formu.buscador.value)
	document.formu.submit()
	}
	
}

function dotar(entrada)
	{
	document.formu.buscador.value=entrada;
 
	}


function rebujcar()
{
for (i=0;i<document.formu.buscador.value.length;i++)
		{
		 
		if (document.formu.buscador.value.substring(0,1)==" ") 
			{
			document.formu.buscador.value=document.formu.buscador.value.substring(i+1,document.formu.buscador.value.length+1);
			
			}
			
			 
		
		}
		var codigo;
		 
  codigo=vervacio(); 
}


function tarifar(porta)
	{
 
	document.formu.portal.value=porta;
	 document.formu.action="productos.asp"		
 
	document.formu.submit();
	}
