
		var alertTimerId = 0;
		
		function doSearch ()
		{
		  clearTimeout ( alertTimerId );
		  document.getElementById("txt1").style.color = "#FF0000";
		  alertTimerId = setTimeout ( "DoShowResult()", 500 );
		}
		
		function DoShowResult ( )
		{
		  document.getElementById("txt1").style.color = "#000000";
		  clearTimeout ( alertTimerId );
		  showResult(document.getElementById("txt1").value);
		}
	
		function Toggle(capa){
			var capa2="Id"+capa;
			if(document.getElementById(capa).style['display']=='none'){
				document.getElementById(capa).style['display']='';
				document.getElementById(capa2).title = "Pulse para ocultar";
			} else {
				document.getElementById(capa).style['display']='none';
				document.getElementById(capa2).title = "Pulse para mostrar";				
			}
		}
	
