<!-- Web Generada con Mis Productos.net http://www.misproductos.net (Licencia 972C - 1394 - E85B)--> 



function replace(originalString,searchText,replaceText) { 
var strLength = originalString.length; 
var txtLength = searchText.length; 
if ((strLength == 0) || (txtLength == 0)) 
{ return originalString; } 
var i = originalString.indexOf(searchText); 
if ((!i) && (searchText != originalString.substring(0,txtLength))) 
{ return originalString; } 
if (i == -1) 
{ return originalString; } 
var newstr = originalString.substring(0,i) + replaceText; 
if (i+txtLength < strLength) 
{ newstr += replace(originalString.substring(i+txtLength,strLength),searchText,replaceText); } 
return newstr;} 


function currency(anynum) {
   //-- Returns passed number as string in $xxx,xxx.xx format.
   anynum=eval(anynum)
   
   workNum=Math.abs((Math.round(anynum*100)/100));
   workStr=replace(""+workNum,".",",")
   if (workStr.indexOf(",")==-1){workStr+=",00"}
   dStr=workStr.substr(0,workStr.indexOf(","));dNum=dStr-0
   pStr=workStr.substr(workStr.indexOf(","))
   while (pStr.length<3){pStr+="0"}

   //--- Adds comma in thousands place.
   if (dNum>=1000) {
      dLen=dStr.length
      dStr=parseInt(""+(dNum/1000))+"."+dStr.substring(dLen-3,dLen)
   }

   //-- Adds comma in millions place.
   if (dNum>=1000000) {
      dLen=dStr.length
      dStr=parseInt(""+(dNum/1000000))+"."+dStr.substring(dLen-7,dLen)
   }
   retval = dStr + pStr 
   //-- Put numbers in parentheses if negative.
   if (anynum<0) {retval="- "+retval}
   return retval
}
function isCat(Category,ListCategory){
var result=0;
var arrCat = ListCategory.split("-");
for (ind=0;ind <arrCat.length; ind++){
   if (arrCat[ind]==Category){
       result=1;
   }
}
return result;
}

function buscar (CodCatB,Importe1B,Importe2B) 
{
     
       var html="";
       var cl = "";
       var sw = 0;
       var c=0;
       var url=""       
     
     

      

       for (var ind=0; ind < CategoryID.length; ind++) {
            

          //  if (CategoryID[ind] == CodCatB || CodCatB == "") {
              if (isCat(CategoryID[ind] ,CodCatB) || CodCatB == "") {
               if (Import1[ind] > parseInt(Importe1B, 10) || Importe1B == "") {  
                   if (Import1[ind] < parseInt(Importe2B, 10) || Importe2B == "")  {
                
            //generamos una linea de la taula
             
               c++;
               url = "<a href='" + CodReg[ind] + "ES.html' class='smalltext'>" ;
     html=html+"<table width=166 cellspacing=0 cellpadding=3>";
     html=html+"<tr><td height='1' class=lineasup></td></tr>";
     html=html+"<tr><td class=titolproducte><b>" + CategoryDesc[ind] + "</b></td></tr>";
     html=html+"<tr><td height='1' class=lineasup></td></tr>";
     html=html+"<tr><td><a href='" +  CodReg[ind] +"ES.html'><img border=0 src='" + ImageList[ind] + "-sm2.jpg' width=160 height=120></a></td></tr>";
     html=html+"<tr><td class=lnkproducte><a href='%%PRODUCTID%%ES.html' style='FONT-SIZE: 11px;'>"+ Descripcion[ind]  +"</a></td></tr>";
     html=html+"<tr><td height='1' class=lineasup></td></tr>";

      html=html+"</table>";	 
            html=html+"</td>";
              html=html+"<td valign='top'>";



                 if (sw < 2) {
                    html = html + "</td><td>";
                   sw++;
                  }else{
                    html = html + "</td></tr><tr><td>";
                    sw = 0;
                  }            

 

                  }
               }
           
       }
   }  
          html = html + "</tr></td></table>";
 html="<table border=0 width=500><tr><td colspan=5 align=center class=normaltext> Se han encontrado <b>" + c + "</b> resultados.<br>&nbsp;<TR><TD>" + html;
       return(html);
}

function main(){
CodReg = new Array('curso-de-marketing-en-internet-10003','curso-power-point-10001','viaje-a-londres-10002','preparacion-para-first-certificate-10004','curso-de-aleman-10007','curso-de-contabilidad-10006','curso-ingles-10005' );
Descripcion = new Array('Curso de Marketing en Internet','Curso Power Point','Viaje a Londres','Preparación para First Certificate','Curso de Aleman','Curso de Contabilidad','Curso Ingles' );
Import1= new Array(300,150,300,0,0,0,0 );
ImageList=new Array('1000300','1000100','1000200','1000400','nopicture','nopicture','1000500' );

CategoryID= new Array('27612','2FC17','2B816','1C9E','1B5E','2CF15','1C9E' );
CategoryDesc= new Array('Negocios/Marketing','Informatica/Power Point','Viajes Idiomas/Londres','Idiomas/Ingles','Idiomas/Aleman','Negocios/Contabilidad','Idiomas/Ingles' );
 
var urlTmp = location.href;
UrlArr = urlTmp.split("?",2);
var param=UrlArr[1];
arrparam=param.split("&",50);
var category = "";
var poblacion = "";
var importe1 = "";
var importe2 = "";
var valor = "";
   for(var ind = 0; ind < arrparam.length; ind++) { 
        
          identifi = arrparam[ind].split("=",2); // tipovivienda=v
          if(identifi.length >= 1){
             valor = identifi[1];
                }
         switch(identifi[0])  { 
                case "cat":
                    category = valor;
                   
                    break;
                
                case "importe1":
	            importe1 = valor;
                    break;
                case "importe2":
                    importe2 = valor;
                    break;
          }
        
      } 


document.writeln('<html>');
document.writeln('');
document.writeln('<head>');
document.writeln('<title>Escuela Idiomas - Idiomas Ingles, Italiano y Aleman</title>');
document.writeln('<LINK REL="stylesheet" HREF="style.css" TYPE="text/css">');
document.writeln('</head>');
document.writeln('');
document.writeln('<body style="margin:0"><BR>');
document.writeln('<table width=100% cellspacing=0 cellpadding=0 border=0>');
document.writeln('    <tr><td height=1 class="lineasup"></td></tr>');
document.writeln(' <tr><td bgcolor="#BFA177"><table  cellspacing=0 cellpadding=0 border=0><tr><td  height=96 width=160 bgcolor="FFFFFF"><a href="/"><img src="corplogo.jpg"  border=0 alt="Escuela Idiomas"></a></td><td  width=626 style="BACKGROUND: url(headerbeige.jpg) no-repeat left" valign=top align=right><p style="margin-top:10; margin-right:20"><a href="indexES.html" class=headertext><b>Escuela Idiomas<BR>Idiomas Ingles, Italiano y Aleman</b></a></p></td><td></tr></table></td></tr>');
document.writeln('	<tr><td height=1 class="lineasup"></td></tr>');
document.writeln('	<tr><td class="mnuhorizontal">');
document.writeln('<!--MENU HORIZONTAL-->');
document.writeln('			<table border=0 width=698 class="mnuhorizontal" height=25>');
document.writeln('			    <tr>');
document.writeln('			    <td width=160 class=bottonInfo></td>');
document.writeln('				<td class=lnkmnuhorizontal><a href="indexES.html">&nbsp;Página Principal&nbsp;</a></td>');
document.writeln('				<td class=lnkmnuhorizontal><a href="aboutusES.html">&nbsp;Quiénes somos&nbsp;</a></td>');
document.writeln('				<td class=lnkmnuhorizontal><a href="findusES.html">&nbsp;Dónde estamos&nbsp;</a></td>');
document.writeln('				<td class=lnkmnuhorizontal><a href="contactES.html">&nbsp;Contactar&nbsp;</a></td></tr>');
document.writeln('			</table>');
document.writeln('<!--FINAL MENU HORIZONTAL-->');
document.writeln('	</td></tr>');
document.writeln('	<tr><td>');
document.writeln('		<table border=0 width=698 cellspacing=0 cellpadding=0>');
document.writeln('			<tr><td width=160 class="bgmnuvertical" valign=top>');
document.writeln('			    	<!--MENU VERTICAL-->');



document.writeln('<table width=100% cellspacing=0 cellpadding=0> <TR>');
document.writeln('<TD id="cIdiomas" width=20></TD>');
document.writeln('<TD onmouseover="cIdiomas.className=\'boxover\'" onmouseout="cIdiomas.className=\'boxout\'"  height="24">');
document.writeln('<A class=mnuvertical href="findES.html?cat=1B5E-1C9E" style="MARGIN-LEFT: 5px"><B>Idiomas</B></A>');
document.writeln('</TD></TR>');
document.writeln(' <TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('');
document.writeln('<TR><TD id=s1B5E width=20></TD>');
document.writeln('<TD onmouseover="s1B5E.className=\'boxover\'" onmouseout="s1B5E.className=\'boxout\'" height="24">');
document.writeln('<A class=mnuverticalSub href="findES.html?cat=1B5E" style="MARGIN-LEFT: 15px" >Aleman</A>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('<TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('');
document.writeln('<TR><TD id=s1C9E width=20></TD>');
document.writeln('<TD onmouseover="s1C9E.className=\'boxover\'" onmouseout="s1C9E.className=\'boxout\'" height="24">');
document.writeln('<A class=mnuverticalSub href="findES.html?cat=1C9E" style="MARGIN-LEFT: 15px" >Ingles</A>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('<TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('<TR>');
document.writeln('<TD id="cInformatica" width=20></TD>');
document.writeln('<TD onmouseover="cInformatica.className=\'boxover\'" onmouseout="cInformatica.className=\'boxout\'"  height="24">');
document.writeln('<A class=mnuvertical href="findES.html?cat=2FC17" style="MARGIN-LEFT: 5px"><B>Informatica</B></A>');
document.writeln('</TD></TR>');
document.writeln(' <TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('');
document.writeln('<TR><TD id=s2FC17 width=20></TD>');
document.writeln('<TD onmouseover="s2FC17.className=\'boxover\'" onmouseout="s2FC17.className=\'boxout\'" height="24">');
document.writeln('<A class=mnuverticalSub href="findES.html?cat=2FC17" style="MARGIN-LEFT: 15px" >Power Point</A>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('<TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('<TR>');
document.writeln('<TD id="cNegocios" width=20></TD>');
document.writeln('<TD onmouseover="cNegocios.className=\'boxover\'" onmouseout="cNegocios.className=\'boxout\'"  height="24">');
document.writeln('<A class=mnuvertical href="findES.html?cat=2CF15-27612" style="MARGIN-LEFT: 5px"><B>Negocios</B></A>');
document.writeln('</TD></TR>');
document.writeln(' <TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('');
document.writeln('<TR><TD id=s2CF15 width=20></TD>');
document.writeln('<TD onmouseover="s2CF15.className=\'boxover\'" onmouseout="s2CF15.className=\'boxout\'" height="24">');
document.writeln('<A class=mnuverticalSub href="findES.html?cat=2CF15" style="MARGIN-LEFT: 15px" >Contabilidad</A>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('<TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('');
document.writeln('<TR><TD id=s27612 width=20></TD>');
document.writeln('<TD onmouseover="s27612.className=\'boxover\'" onmouseout="s27612.className=\'boxout\'" height="24">');
document.writeln('<A class=mnuverticalSub href="findES.html?cat=27612" style="MARGIN-LEFT: 15px" >Marketing</A>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('<TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('<TR>');
document.writeln('<TD id="cViajes Idiomas" width=20></TD>');
document.writeln('<TD onmouseover="cViajes Idiomas.className=\'boxover\'" onmouseout="cViajes Idiomas.className=\'boxout\'"  height="24">');
document.writeln('<A class=mnuvertical href="findES.html?cat=2B816" style="MARGIN-LEFT: 5px"><B>Viajes Idiomas</B></A>');
document.writeln('</TD></TR>');
document.writeln(' <TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('');
document.writeln('<TR><TD id=s2B816 width=20></TD>');
document.writeln('<TD onmouseover="s2B816.className=\'boxover\'" onmouseout="s2B816.className=\'boxout\'" height="24">');
document.writeln('<A class=mnuverticalSub href="findES.html?cat=2B816" style="MARGIN-LEFT: 15px" >Londres</A>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('<TR><TD background="back_menu.jpg" colSpan=2 height="1"></TD></TR>');
document.writeln('</table>');



document.writeln('			    	<!--FINAL MENU VERTICAL-->');
document.writeln('			    </td>');
document.writeln('			  <td width=1 class="mnuhorizontal"></td> <!--LINEA VERTICAL-->');
document.writeln('			      <td valign=top class=normaltext width=537><!--PARTCENTRAL-->');
document.writeln('			      	     			      	      <!--INFO EMPRESA-->');
document.writeln('			      	      <p style="margin-left: 30; margin-top: 20" align="justify">');


document.writeln(buscar(category,importe1, importe2));

document.writeln('');
document.writeln('	<br>');
document.writeln('						  </p>');
document.writeln('			      </td>');
document.writeln('			  </tr>');
document.writeln('	    </table>');
document.writeln('	</td></tr>');
document.writeln('	');
document.writeln('	<tr><td class="mnuhorizontal"><p align=center class=bottonInfo>');
document.writeln('	<b>Escuela Idiomas</b><br><a href="mailto:info@innova22.com" class=bottonInfo>info@innova22.com</a> - 93 123 45 67 - c/ Demostración, 12 - Barcelona');
document.writeln('	</p>');
document.writeln('	</td></tr>');
document.writeln('	<tr><td heigth=0 class="lineasup"></td></tr>');
document.writeln('</table>');
document.writeln('<table border=0 cellspacing=0 cellpadding=0><tr><td class=lnkproducte>&nbsp;&nbsp;<a href="http://www.misproductos.net" target=_blank style="FONT-SIZE: 10px;">Creada con MisProductos.net</a></td></tr></table>');
document.writeln('</body>');
document.writeln('');
document.writeln('</html>');
document.writeln('');
document.writeln('');

return true;
}  
