<!--
//'FUNCIÓN QUE INCLUYE EL CONTROL DEL FORMULARIO DE BÚSQUEDA PARA COMPROBAR QUE SE BUSQUE
function comprobar(f){
	if ((f.mun.selectedIndex == 0) && (f.com.selectedIndex == 0) && (f.ele.selectedIndex == 0) && (f.longitud.selectedIndex == 0)){
		if (f.idioma.value == "E")
		{
			alert('Aukeratu irizpide bat');
		}else{
			alert('Selecciona algo');
		}
		return false;
	}else{
		if (f.com.selectedIndex > -1){
			f.com.value=f.com.options[f.com.selectedIndex].value;}
		if (f.mun.selectedIndex > -1){
			f.mun.value=f.mun.options[f.mun.selectedIndex].value;}
		if (f.longitud.selectedIndex > -1){
			f.longitud.value=f.longitud.options[f.longitud.selectedIndex].value;}
		if (f.ele.selectedIndex > -1){
			f.ele.value=f.ele.options[f.ele.selectedIndex].value;}

		f.submit();
	}
}


//FUNCION QUE INCLUYE EL SCRIPT PARA LANZAR LAS CONSULTAS DE UN RECORRIDO
function lanzaBusqueda(cod, desde){
	document.formulario.action = 'datosRuta.asp';
	document.formulario.ruta.value = cod;
	document.formulario.submit();
}

function MM_openBrWindow(theURL){ //v2.0
	window.open(theURL,'_blank','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' + screen.width + ',height=' + screen.height + ',top=0,left=0');
}

function alertSize() {

  var myWidth = 0, myHeight = 0;

  if( typeof( window.innerWidth ) == 'number' ) {

    //Non-IE

    myWidth = window.innerWidth;

    myHeight = window.innerHeight;

  } else if( document.documentElement &&

      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {

    //IE 6+ in 'standards compliant mode'

    myWidth = document.documentElement.clientWidth;

    myHeight = document.documentElement.clientHeight;

  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {

    //IE 4 compatible

    myWidth = document.body.clientWidth;

    myHeight = document.body.clientHeight;

  }

  window.alert( 'Width = ' + myWidth );

  window.alert( 'Height = ' + myHeight );

}

//-->