<!--
function abrir_popup_new(pagina,tit,alto,ancho) {
      
          var tamalto = alto - 30;
          var tamancho = ancho - 24;

	  var x = (window.screen.width-tamancho)/2;//centra x
	  var y = (window.screen.height-tamalto)/2;//centra y
                   
          var tamanho = window.open(pagina,tit,"left=" + x + ",top=" + y + ",width=" + tamancho + ",height=" + tamalto + ",resizable=1,scrollbars=no,menubar=0,status=0");
          tamanho.focus();
          
}

function abrir_popup_img(pagina,tit,alto,ancho) {
      
          var tamalto = alto +10;
          var tamancho = ancho +10;

	  var x = (window.screen.width-tamancho)/2;//centra x
	  var y = (window.screen.height-tamalto)/2;//centra y
                   
          var tamanho = window.open(pagina,tit,"left=" + x + ",top=" + y + ",width=" + tamancho + ",height=" + tamalto + ",resizable=1,scrollbars=no,menubar=0,status=0");

	  tamanho.resizeTo(tamancho,tamalto );
          tamanho.focus();
          
}

function abrir_popup(pagina,tit,alto,ancho) {
      
      var velocidadev = 5;
      var topo = 0;
      var izquierda = 0;
      var velocidadeh = 20;
      var tamalto = alto;
      var tamancho = ancho;

      if(window.screen){
	      per_ancho=(tamancho/window.screen.width)*100;//porcentaje screen-ancho
	      per_alto=(tamalto/tamancho)*100;//porcentaje de ancho-alto
	      win_ancho=(window.screen.width*per_ancho)/100;//ancho de la ventana
	      win_alto=(win_ancho*per_alto)/100;//alto de la ventana
	      x=(window.screen.width-win_ancho)/2;//centra x
	      y=(window.screen.height-win_alto)/2;//centra y
      }else{  // si el buscador es 4 queda todo igual :(
	      x=0;
	      y=0;
	      win_ancho=w;
	      win_alto=y;
      }          
      
      var tamanho = window.open("",tit,"left=" + x + ",top=" + y + ",width=1,height=1,resizable=1,scrollbars=no,menubar=0,status=0");
      tamanho.focus();
      for (sizeheight = 1; sizeheight < tamalto; sizeheight += velocidadev) {
	      tamanho.resizeTo("1",sizeheight );
      }
      for (sizewidth = 1; sizewidth < tamancho; sizewidth += velocidadeh) {
	      tamanho.resizeTo(sizewidth+6,sizeheight );
      }
      tamanho.location = pagina;
}

function abrir_popup2(theURL,w,h) { 
 
    var winName=""; 
    anchop=window.screen.width; 
    altop=window.screen.height;

    var l=(anchop - w)/2; 
    var t=(altop - h)/2;
    
    var windowprops ="top=" + t + ",left= " + l + ",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=" + w + ",height=" + h;

    var ventana=window.open(theURL,winName,windowprops);  
    ventana.focus();
   
}
function buscaInet(form) {
parent.location="http://www.google.es/search?q="+form.elements[0].value+"+site:www.solunet.es/~blesa/elhocino&hl=es&as_qdr=all&filter=0";
}

		
//-->
