function comprobarW() {
 if (document.form1.emisora.selectedIndex==0 &&
     document.form1.subyac.selectedIndex==0 &&
     document.form1.codigo.value.length==0) {
   alert("Debe seleccionar una Emisora y/o Subyacente\no introducir un código valor o ISIN.");
   return (false);
 }
 return (true);
}
function selcod(cod) {
 if (document.form1) {

  if (document.form1.codigo) {
   document.form1.codigo.value = cod;
  }
 }
}
function sel(emis,sub,tipo) {
 var ind;

 if (document.form1) {

  if (document.form1.emisora) {
   for(ind=0;ind<document.form1.emisora.length;ind++) {
    if ((document.form1.emisora.options[ind].text == emis) ||
        (document.form1.emisora.options[ind].value == emis)) {
     document.form1.emisora.selectedIndex = ind;
     break;
    }
   }
  }

  if (document.form1.subyac) {
   for(ind=0;ind<document.form1.subyac.length;ind++) {
    if ((document.form1.subyac.options[ind].text == sub) ||
        (document.form1.subyac.options[ind].value == sub)) {
     document.form1.subyac.selectedIndex = ind;
     break;
    }
   }
  }

  if (document.form1.tipo) {
   for(ind=0;ind<document.form1.tipo.length;ind++) {
    if (document.form1.tipo.options[ind].value == tipo) {
     document.form1.tipo.selectedIndex = ind;
     break;
    }
   }
  }

 }
}
function select0() {
 if (document.form1) {
  if (document.form1.emisora) {
   document.form1.emisora.selectedIndex = 0;
  }
  if (document.form1.subyac) {
   document.form1.subyac.selectedIndex = 0;
  }
  if (document.form1.tipo) {
   document.form1.tipo.selectedIndex = 0;
  }
 }
}

if (infHist == "") {
html='';
html += '<form method=post action="/comun/warrants/wbusq.asp" name=form1 onSubmit="return comprobarW();">';
html += '<table width=100% border=0 cellspacing=0 cellpadding=0 bgcolor=#000000>';
html += '<tr><td><img src="/images/shim.gif" width=1 height=1></td>';
html += '<td colspan=2><img src="/images/shim.gif" width=170 height=1></td>';
html += '<td rowspan=3>&nbsp;<input type=text name="codigo" size=10 maxlength=12 OnChange="select0();"></td>';
html += '<td rowspan=3 align=center><img src=/images/lineagrisv.gif width=11 height=44></td>';
html += '<td colspan=2 rowspan=2><b><font color=#FFFFFF>Subyacente</font></b>&nbsp;';
html += "<select name='subyac' size=1 OnChange=\"document.form1.codigo.value='';\"><option value=''>-- Todos --</option>";
html += "<option value='tipo:AE'>-- Acc. Espa&ntilde;olas --</option>";
html += "<option value='ES0105200416'>ABENGOA</option>";
html += "<option value='ES0111845014'>ABERTIS</option>";
html += "<option value='ES0125220311'>ACCIONA</option>";
html += "<option value='ES0132105018'>ACERINOX</option>";
html += "<option value='ES0167050915'>ACS CONST.</option>";
html += "<option value='ES0109067019'>AMADEUS IT HOLD...</option>";
html += "<option value='ES0109427734'>ANTENA3TV</option>";
html += "<option value='ES0172708317'>AVANZIT</option>";
html += "<option value='ES0113440038'>BANESTO</option>";
html += "<option value='ES0113679I37'>BANKINTER</option>";
html += "<option value='ES0113211835'>BBVA</option>";
html += "<option value='ES0113790531'>BCO. POPULAR</option>";
html += "<option value='ES0113860A34'>BCO.SABADELL</option>";
html += "<option value='ES0115056139'>BOLSAS Y MER</option>";
html += "<option value='ES0118900010'>CINTRA</option>";
html += "<option value='ES0130960018'>ENAGAS</option>";
html += "<option value='ES0130670112'>ENDESA</option>";
html += "<option value='ES0125140A14'>ERCROS</option>";
html += "<option value='ES0134950F36'>FAES</option>";
html += "<option value='ES0122060314'>FCC</option>";
html += "<option value='ES0143416115'>GAMESA</option>";
html += "<option value='ES0116870314'>GAS NATURAL</option>";
html += "<option value='ES0171996012'>GRIFOLS</option>";
html += "<option value='ES0147645016'>IBE.RENOVABL</option>";
html += "<option value='ES0144580Y14'>IBERDROLA</option>";
html += "<option value='ES0147200036'>IBERIA</option>";
html += "<option value='ES0148396015'>INDITEX</option>";
html += "<option value='ES0118594417'>INDRA</option>";
html += "<option value='GB0057933615'>JAZZTEL</option>";
html += "<option value='ES0157097017'>LAB.ALMIRALL</option>";
html += "<option value='ES0124244E34'>MAPFRE</option>";
html += "<option value='ES0161560018'>NH HOTELES</option>";
html += "<option value='ES0142090317'>OHL</option>";
html += "<option value='ES0171743117'>PRISA</option>";
html += "<option value='ES0173093115'>RED ELEC.ESP</option>";
html += "<option value='ES0173516115'>REPSOL YPF</option>";
html += "<option value='ES0182870214'>SACYR VALLEH</option>";
html += "<option value='ES0113900J37'>SAN</option>";
html += "<option value='ES0176252718'>SOL MELIA</option>";
html += "<option value='ES0165386014'>SOLARIA</option>";
html += "<option value='ES0110047919'>SOS CUETARA</option>";
html += "<option value='ES0178165017'>TEC.REUNIDAS</option>";
html += "<option value='ES0152503035'>TELECINCO</option>";
html += "<option value='ES0178430E18'>TELEFONICA</option>";
html += "<option value='ES0184940817'>ZELTIA</option>";
html += "<option value='tipo:AI'>-- Acc. Extranjeras --</option>";
html += "<option value='FR0000130007'>ALCATEL</option>";
html += "<option value='DE0008404005'>ALLIANZ</option>";
html += "<option value='US0378331005'>APPLE</option>";
html += "<option value='LU0323134006'>ARCELORMITTA</option>";
html += "<option value='FR0000120628'>AXA</option>";
html += "<option value='US0605051046'>BANK AMERICA</option>";
html += "<option value='GB0031348658'>BARCLAYS PLC</option>";
html += "<option value='DE0005151005'>BASF AG</option>";
html += "<option value='DE000BAY0017'>BAYER AG</option>";
html += "<option value='DE0005190003'>BMW</option>";
html += "<option value='FR0000131104'>BNP PARIBAS</option>";
html += "<option value='FR0000120172'>CARREFOUR</option>";
html += "<option value='US17275R1023'>CISCO SYSTEM</option>";
html += "<option value='US1729671016'>CITIGROUP</option>";
html += "<option value='FR0000120644'>DANONE</option>";
html += "<option value='DE0005140008'>DEUTS. BANK</option>";
html += "<option value='DE0005557508'>DEUTSCHE TLK</option>";
html += "<option value='DE000ENAG999'>E.ON AG</option>";
html += "<option value='FR0010242511'>EDF</option>";
html += "<option value='IT0003128367'>ENEL</option>";
html += "<option value='FR0000133308'>FRANCE TELEC</option>";
html += "<option value='US38141G1040'>GOLDMAN SACH</option>";
html += "<option value='US38259P5089'>GOOGLE</option>";
html += "<option value='NL0000303600'>ING</option>";
html += "<option value='US4581401001'>INTEL CORP.</option>";
html += "<option value='US46625H1005'>JP MORGAN</option>";
html += "<option value='US5949181045'>MICROSOFT</option>";
html += "<option value='FI0009000681'>NOKIA</option>";
html += "<option value='US7170811035'>PFIZER</option>";
html += "<option value='NL0000009538'>PHILIPS</option>";
html += "<option value='FR0000131906'>RENAULT</option>";
html += "<option value='FR0000120578'>SANOFI-AVENT</option>";
html += "<option value='DE0007236101'>SIEMENS</option>";
html += "<option value='FR0000130809'>SOCIETE GRAL</option>";
html += "<option value='FR0000120271'>TOTAL FINA</option>";
html += "<option value='CH0024899483'>UBS AG</option>";
html += "<option value='FR0000120354'>VALLOUREC</option>";
html += "<option value='US9843321061'>YAHOO</option>";
html += "<option value='tipo:CV'>-- Cestas de Valores --</option>";
html += "<option value='CVAL'>CESTA ACC.ES</option>";
html += "<option value='CINDX'>CESTA IN.BU.</option>";
html += "<option value='tipo:II'>-- &Iacute;nd. Internacionales --</option>";
html += "<option value='XC0007923946'>DOW.J.I.A.</option>";
html += "<option value='CH0020751589'>ESTX SEL DIV</option>";
html += "<option value='EU0009658145'>EUROSTOXX 50</option>";
html += "<option value='HK0000004330'>HANG SENG</option>";
html += "<option value='XC0009699502'>NASDAQ 100</option>";
html += "<option value='XC0009692440'>NIKKEI 225</option>";
html += "<option value='SPX'>S&P 500</option>";
html += "<option value='DE0008469008'>XETRA DAX</option>";
html += "<option value='tipo:IN'>-- &Iacute;nd. Nacionales --</option>";
html += "<option value='ESI100000000'>IBEX 35</option>";
html += "<option value='tipo:MP'>-- Materias Primas --</option>";
html += "<option value='ORO'>ORO</option>";
html += "<option value='BRENT'>PETR. BRENT</option>";
html += "<option value='PLATA'>PLATA</option>";
html += "<option value='tipo:TC'>-- Divisas y Tipos Cambio --</option>";
html += "<option value='EU0009652627'>DEJPY</option>";
html += "<option value='DEGBP'>T.C. EUR/GBP</option>";
html += "<option value='DEUSD'>T.C. EUR/USD</option>";
html += "<option value='DUSMX'>T.C. USD/MXN</option>";
html += "<option value='DECHF'>T.C.EUR/CHF</option>";
html += "<option value='DEPLN'>T.C.EUR/PLN</option>";
html += '</select></td>';
html += '<td rowspan=3 align=center><img src=/images/lineagrisv.gif width=11 height=44></td>';
html += '<td rowspan=3 align=center valign=middle>';
html += '<input type=submit name="Buscar" value="Buscar"></td>';
html += '</tr><tr>';
html += '<td><img src="/images/shim.gif" width=1 height=26></td>';
html += '<td rowspan=2 valign=middle><img src="/images/Warrants.gif" width=110 height=27></td>';
html += '<td rowspan=2 align=right><b><font color=#FFFFFF>Cód.Valor<br>ó ISIN</font></b></td>';
html += '</tr><tr>';
html += '<td><img src="/images/shim.gif" width=1 height=27></td>';
html += '<td><b><font color=#FFFFFF>Emisora</font></b>&nbsp;';
html += "<select name='emisora' size=1 OnChange=\"document.form1.codigo.value='';\"><option value=''>-- Todas --</option>";
html += "<option value='13900'>BA.SANTANDER</option>";
html += "<option value='13679'>BANKINTER</option>";
html += "<option value='13677'>BBVA.B.FINAN</option>";
html += "<option value='06410'>BNPPARIBAS E</option>";
html += "<option value='13540'>BTO.EMISIONE</option>";
html += "<option value='00001'>COMMERZBANK</option>";
html += "<option value='57933'>JAZZTEL</option>";
html += "<option value='14980'>LA CAIXA</option>";
html += "<option value='10680'>SGEN</option>";
html += '</select></td>';
html += '<td><b><font color=#FFFFFF>Tipo</font></b>&nbsp;';
html += "<select name='tipo' size=1 OnChange=\"document.form1.codigo.value='';\"><option value=''>Todos</option>";
html += '<option value="C">CALL</option>';
html += '<option value="P">PUT</option>';
html += '</select></td>';
html += '</tr>';
html += '</table>';
html += '</form>';
document.write(html);
}

nPX=0;oPX=0;nPY=0;oPY=0;interval=10;IMGW=590;IMGH=30;XSAFETY=17;YSAFETY=17;
desPY = 54;

html='';
html += '<table border=0 cellspacing=0 cellpadding=0>';
html += '<tr><td bgcolor=#ffffff>';
html += '<table border=0 cellspacing=0 cellpadding=0>';
html += '<tr><td><img src=/images/pestizq_az.gif width=11 height=22></td>';
html += '<td background=/images/pestfondo_az.gif align=center valign=top nowrap>&nbsp;<font color=#ffffff>Warrants</font>&nbsp;</a></td>';
html += '<td><img src=/images/pestcent_az.gif width=11 height=22></td>';
html += '<td background=/images/pestfond.gif align=center valign=top nowrap><a href=/esp/mercados/warrants/wqueson.htm class=pesta>&nbsp;¿Qué son?&nbsp;</a></td>';
html += '<td><img src=/images/pestcent.gif width=11 height=22></td>';
html += '<td background=/images/pestfond.gif valign=top align=center nowrap><a href=/esp/mercados/warrants/warrants_IN_0.htm class=pesta>&nbsp;Precios&nbsp;</a></td>';
html += '<td><img src=/images/pestcent.gif width=11 height=22></td>';
html += '<td background=/images/pestfond.gif valign=top align=center nowrap><a href=/esp/mercados/warrants/sist_contratacion.htm class=pesta>&nbsp;Sist.Contr.&nbsp;</a></td>';
html += '<td><img src=/images/pestcent.gif width=11 height=22></td>';
html += '<td background=/images/pestfond.gif valign=top align=center nowrap><a href=/esp/mercados/warrants/wemisores.htm class=pesta>&nbsp;Emisores&nbsp;</a></td>';
if ((IHQStr == "") && (infHist == "")) {
 html += '<td><img src=/images/pestcent.gif width=11 height=22></td>';
 html += '<td background=/images/pestfond.gif valign=top align=center nowrap><a href=/esp/bolsamadrid/publicacion/estadisticas/warrants/est_warrants_1.htm class=pesta>&nbsp;Estadísticas&nbsp;</a></td>';
 html += '<td><img src=/images/pestcent.gif width=11 height=22></td>';
 html += '<td background=/images/pestfond.gif valign=top align=center nowrap><a href=/esp/empresas/admision/adm_warrants/admWarrants.htm class=pesta>&nbsp;Admisiones&nbsp;</a></td>';
 html += '<td><img src=/images/pestcent.gif width=11 height=22></td>';
 html += '<td background=/images/pestfond.gif valign=top align=center nowrap><a href=/esp/mercados/warrants/w_agotadas.htm class=pesta>&nbsp;Em.Agotadas&nbsp;</a></td>';
 html += '<td><img src=/images/pestcent.gif width=11 height=22></td>';
 html += '<td background=/images/pestfond.gif valign=top align=center nowrap><a href=/esp/bolsamadrid/publicacion/estadisticas/warrants/est_dia_warrants_1.htm class=pesta>&nbsp;Ranking diario&nbsp;</a></td>';
}
if (IHQStr != "") {
 html += '<td><img src=/images/pestcent.gif width=11 height=22></td>';
 html += '<td background=/images/pestfond.gif valign=top align=center><a href=/esp/mercados/warrants/infhistwar.asp' + IHQStr + ' class=pesta>&nbsp;Informaci&oacute;n Hist&oacute;rica&nbsp;</a></td>';
}
if (infHist != "") {
 html += '<td><img src=/images/pestcent.gif width=11 height=22></td>';
 html += '<td background=/images/pestfond.gif valign=top align=center><a href=/comun/warrants/wficha.asp' + infHist + ' class=pesta>&nbsp;Ficha Warrant&nbsp;</a></td>';
}
html += '<td bgcolor=#ffffff><img src=/images/pestdcha.gif width=11 height=22></td>';
html += '</tr></table></td></tr></table>';

if(is.ie4){document.write('<DIV ID="lgtgp" STYLE="position:absolute;display:none;">'+html+'</DIV>');var lg=document.all.lgtgp.style;function Timing(){nPX=document.body.clientWidth-(IMGW+XSAFETY);if(nPX<0)nPX=0;nPY=document.body.scrollTop;if(nPY<desPY)nPY=desPY;if(nPX!=oPX||nPY!=oPY){lg.display="none";lg.left=nPX;oPX=nPX;lg.top=nPY;oPY=nPY;lg.display=""}};setInterval("Timing()",interval)}
if((is.ns4)||(is.ns6)){document.write('<STYLE TYPE="text/css">#lgtgp{position:absolute;}</STYLE>');document.write('<DIV ID="lgtgp" STYLE="position:absolute;top:0px;left:0px">'+html+'</DIV>');var lg;if(is.ns4){lg=document.layers.lgtgp}else{lg=document.getElementById('lgtgp').style};function Refresh(){nPX=XSAFETY;nPY=window.pageYOffset;if(nPY<desPY)nPY=desPY;if(nPX!=oPX){lg.left=XSAFETY;oPX=nPX;}if(nPY!=oPY){lg.top=nPY;oPY=nPY};setTimeout("Refresh()",interval)};Refresh()}
