

function Busqueda() {
	var nombre=document.busqueda_simple.nombre.value;
	//var actividad=document.busqueda_simple.actividad.value;
	var indicea=document.busqueda_simple.actividad.selectedIndex;
	var actividad=document.busqueda_simple.actividad.options[indicea].value;
	var indice=document.busqueda_simple.localizacion.selectedIndex;
	var localizacion=document.busqueda_simple.localizacion.options[indice].value;

	if (nombre=='' && indicea ==0 && indice==0) alert('Introduzca un criterio de búsqueda.');

	else {

	  if (nombre!='') {
		while (nombre.indexOf(' ')!=-1) nombre=nombre.replace(' ','_');
		nombre = '*' + nombre + '*';
	  }
	  if (indicea!=0)
		while (actividad.indexOf(' ')!=-1) actividad=actividad.replace(' ','_');
	  else actividad='';
	  if (indice!=0)
		while (localizacion.indexOf(' ')!=-1) localizacion=localizacion.replace(' ','_');
	  else localizacion='';
	  var url = 'http://www.gtlvalencia.com/GTL_resultados.asp____nombre=' + nombre + '___activ=' + actividad + '___muni=' + localizacion;
	  document.location = '../salmon/log.asp?url=' + url + '&desc=BUSQUEDA_RAPIDA_GTL&accion=bs&ac=1';
   }
}


function VaciarCampos() {
	document.busqueda_simple.nombre.value='';
	document.busqueda_simple.actividad.selectedIndex=0;
	document.busqueda_simple.localizacion.selectedIndex=0;
}


function Ayuda() {
	document.location='../salmon/log.asp?url=../gtl/ayuda_busqueda_rapida.htm&desc=AYUDA_BUSQUEDA_SIMPLE_GTL';
	window.close();
}




function InfoUsuarios() {
	parent.document.location='../salmon/log.asp?url=frame_informacion_usuarios.htm&desc=INFORMACION_AL_USUARIO';
}



function PulsaTecla(e) {
  var nav4 = window.Event ? true : false;

  if (nav4) // Navigator 4.0x
    var whichCode = e.which
  else // Internet Explorer 4.0x
     var whichCode = e.keyCode

  if (whichCode==13) {
   	Busqueda();

  }
}

