<!-- Web Generada con iCatalog Inmobiliarias http://www.innova22.com/icatalog. (Licencia 14B0 - C245 - 58C7)--> 



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 main(){
CodReg = new Array('10031','10115','10018','10091','10008','10121','10126','10125','10124','10127','10117','10116','10122','10123','10119','10118','10060','10103','10011','10051','10107','10101','10025','10042','10045','10001','10114','10113','10112','10111','10110','10052','10109','10108','10106','10070','10105','10102','10096','10099','10098','10095','10093','10092','10089','10088','10087','10086','10085','10082','10080','10078','10076','10074','10073','10072','10069','10068','10066','10064','10063','10062','10061','10058','10057','10056','10053','10055','10054','10050' );
Reg = new Array('10123','10091','10119','10092','10118','10121','10126','10125','10124','10127','REF84','REF52','10122','REF23','REF70','REF58','10060','10104','10038','10051','10108','10102','10105','10039','10117','10116','10115','10114','10113','10112','10111','10052','10110','10109','10107','10070','10106','10103','10097','10100','10099','10096','10094','10093','10089','10088','10087','10086','10085','10082','10080','10078','10076','10074','10073','10072','10069','10068','10066','10064','10063','10062','10061','10058','10057','10056','10053','10055','10054','10050' );
DescPoblacio = new Array('Sant Pere de Ribes','Canyelles','SANT PERE DE RIBES','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Can Maciá ( Sant Pere de Ribes )','La Girada, VILAFRANCA DEL PENEDES.','La Girada, VILAFRANCA DEL PENEDES.','Sant Pere de Ribes','Olivella','Olivella','Les Roquetes, Sant Pere de Ribes.','Les Roquetes, Sant Pere de Ribes.','Olivella','LES CABANYES','Sant Pere de Ribes','Olivella','Sant Pere de Ribes','Olivella','Sant Pere de Ribes','Sitges','Sant Pere de Ribes','st.pere de ribes','Patos - Sant Pere de Ribes','Can suria-Olivella','Sitges','Olivella','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Canyelles','Sant Pere de Ribes','Sant Pere Molanta','Sant Pere de Ribes','Olivella ','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Les Roquetes','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Olivella','Sant Pere de Ribes','Olivella','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Vilanova i la Geltrú','Canyelles','Sant Pere de Ribes','Sant Pere de Ribes ','Sant Pere de Ribes','Olivella','Sant Pere de Ribes','Sitges','Sant Pere de Ribes','Sant Pere de Ribes','Sant Pere de Ribes','Vilanova i la Geltrú','Olivella' ); 
Descripcion = new Array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','' );
CodPoblacio=new Array('6D','66','','6D','6D','6D','64','67','67','6D','6B','6B','6A','6A','6B','68','6D','6B','6D','6B','6D','6F','6D','70','6C','65','6F','6B','6D','6D','6D','6D','6D','66','6D','6E','6D','','6D','6D','6D','6D','6D','6D','6D','69','6D','6D','6D','6D','6D','6B','6D','6B','6D','6D','6D','71','66','6D','','6D','6B','6D','6F','6D','6D','6D','71','6B' );
Import1= new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 );
ImageList=new Array('1003100','1011500','1001800','1009104','1000800','1012100','1012600','1012500','1012400','1012701','1011702','1011600','1012200','1012300','1011900','1011800','1006000','1010300','1001101','1005102','1010700','1010100','nopicture','1004200','1004500','1000104','1011400','1011300','1011205','1011101','1011000','1005205','1010900','1010801','1010600','1007000','1010500','1010200','1009600','1009900','1009801','1009500','1009300','1009200','1008900','1008801','1008700','1008600','1008500','1008200','1008000','1007800','1007600','1007400','1007300','1007200','1006901','1006800','1006601','1006400','1006305','1006200','1006100','1005800','1005700','1005600','1005300','1005503','1005400','1005000' );
TipoViviendaList=new Array('2','2','2','2','0','0','0','0','0','0','0','0','0','0','0','0','2','0','1','2','1','1','2','1','2','2','1','2','2','1','1','1','2','2','1','2','2','0','1','2','1','1','2','2','2','1','1','2','2','1','2','2','2','2','1','0','0','2','0','0','0','1','2','1','1','1','1','2','2','4' );
Superficie=new Array('210','','220','220','338','266','311','96','74','','95','137','83','47','185','242','136','','95','210','','','209','130 m2','200 aprox','800','','240','140','90','','120','200','160','','550','','250','','175','175','85','140','212','','60','80','','95','','210','200','130','140','','','149','','180','300','78','95','100','','177','62','86','','','700' );

 
var urlTmp = location.href;
UrlArr = urlTmp.split("?",2);
var param=UrlArr[1];
arrparam=param.split("&",50);
var tipovivienda = "";
var poblacion = "";
var importe1 = "";
var importe2 = "";
var reg ="";
var page=1;
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 "page":
                    page=valor;
                    break;
              case "tipovivienda":
                    tipovivienda = valor;
                   
                    break;
                case "poblacion":
                    poblacion = valor;
	            break;
                case "importe1":
	            importe1 = valor;
                    break;
                case "importe2":
                    importe2 = valor;
                    break;
               case "reg":
                   reg = valor;
                   break;
          }
        
      } 


//alert("tipo vivienda: " + tipovivienda + " poblacion " + poblacion);






function buscar (CodPoblacioB,Importe1B,Importe2B, TipoViviendaB,PageB, RegB) 
{
     
       var html="";
       var cl = "";
       var sw = 0;
       var c=0;
       var url="";       
      var siguiente="";
      var regtmp="";
var PageNext=0;
     

      

       for (var ind=0; ind < CodPoblacio.length; ind++) {
              if (TipoViviendaList[ind]=="") { 
                       TipoViviendaList[ind]="0";
                  }    
             
            if (Reg[ind] == RegB || RegB=="") {
            if (CodPoblacio[ind] == CodPoblacioB || CodPoblacioB == "") {
               if (Import1[ind] > parseInt(Importe1B, 10) || Importe1B == "") {  
                   if (Import1[ind] < parseInt(Importe2B, 10) || Importe2B == "")  {
                     if (TipoViviendaList[ind] == TipoViviendaB || TipoViviendaB=="") {
                    c++;
                 if (PageB * 10 -10 < c && PageB*10+1  > c ){
            //generamos una linea de la taula
             if (RegB!="") {
//si es la seleccio d'un registre obrim el inmoble directament
document.location.href= CodReg[ind] +"EN.html";
}              
               url = "<a href='" + CodReg[ind] + "EN.html' class='smalltext'>" ;
          html=html+" <table cellspacing=1 cellpadding=0 bgcolor=#C0C0C0 width=280><tr><td>";
          html=html+"<TABLE BORDER=0 width=100% bgcolor=#FFFFFF cellspacing=0 cellpading=1>";
          html=html+"<TR><TD bgColor=#EFE7E7 colspan=2>" + Descripcion[ind]  + "</TD></TR>";
           html=html+"<TR onClick=\"javascript:document.location.href='"+ CodReg[ind] +"EN.html' \"style='cursor:pointer;cursor:hand' onMouseOver=\"this.style.backgroundColor='#EFE7E7'\" onMouseOut=\"this.style.backgroundColor='#FFFFFF'\"><TD valign=top width=112 ><table border=0 cellspacing=1 cellpading=0><tr><td bgcolor=#333333><a href='"+ CodReg[ind] +"EN.html'> <img src='"+ImageList[ind] + "small.jpg' border =0 width=112 height=84></a></td></tr></table></TD>";
           html=html+"<TD align=left >";
           html=html+"<TABLE BORDER=0 width=100%>";
           html=html+"<TR><TD class='smalltext'><b>Zona:</b></TD><TD class='smalltext'>" + DescPoblacio[ind] + "</TD></TR>";
           html=html+"<TR><TD class='smalltext'><b>Surface:</b></TD><TD class='smalltext'>"+ Superficie[ind] +"</a></TD></TR>";
           html=html+"<TR><TD Class='smalltext'><b>Price (€):</b></TD><TD class='smalltext'>" + currency(Import1[ind]) + "</a></TD></TR>";
          html=html+" <tr><td colspan=2 align=right><a href='"+ CodReg[ind] +"EN.html'  class=smalltext>[+ Información]</a></td></tr>";
          html=html+" </TABLE>";
          html=html+"</TD>";
          html=html+"</TABLE>";  
         html=html+"</tr>";
        html=html+"</table>";
                 if (sw == 0) {
                    html = html + "</td><td>";
                   sw = 1;
                  }else{
                    html = html + "</td></tr><tr><td>";
                    sw = 0;
                  }            

 
              }
                  }
               }
           }
       }
   }  
}
         html = html + "</tr></td></table>";
 PageNext=PageB;
 PageNext++;
PageLater=PageB;
PageLater--;
 siguiente="<a href='findEN.html?poblacion=" + CodPoblacioB +"&tipovivienda=" + TipoViviendaB + "&importe1=" + Importe1B + "&importe2=" + Importe2B + "&page=" + PageNext + "'>Next >></a>";
anterior="<a href='findEN.html?poblacion=" + CodPoblacioB +"&tipovivienda=" + TipoViviendaB + "&importe1=" + Importe1B + "&importe2=" + Importe2B + "&page=" + PageLater + "'><< Previous</a>";
if (PageB==1){
            anterior="";
}
var MaxP=0;
MaxP=Math.floor(c/10);
if (c % 10 != 0) {
MaxP++;
}
if (PageB >=MaxP){
       siguiente="";
}
html="<table border=0 width=560><tr><td colspan=2><table width=100% border=0><tr><td align=left width=20%>" + anterior + "</td><td align=center class=smalltext width=60%> Results about <b>" + c + "</b>.. Page " + PageB + " of " + MaxP + "</td><td align=right width=20%>" + siguiente + "</td></tr></table><TR><TD>" + html;
       return(html);
}


document.writeln('<html>');
document.writeln('<head>');
document.writeln('<title>Finques Montmar</title>');
document.writeln('<STYLE type="text/css">');
document.writeln('TD {              FONT-SIZE: 13px;  FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none}');
document.writeln('.smalltext {     FONT-SIZE: 11px;  FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none}');
document.writeln('A:link {           COLOR: #993300; TEXT-DECORATION: none}');
document.writeln('A:hover {       COLOR: #993300; TEXT-DECORATION: underline}');
document.writeln('A:visited {      COLOR: #993300; TEXT-DECORATION: none}');
document.writeln('A:hover {       COLOR: #993300; TEXT-DECORATION: underline}');
document.writeln('A:active {      COLOR: #996600; TEXT-DECORATION: none}');
document.writeln('.caja {           BORDER-RIGHT: #5d5c5b 1px solid; BORDER-TOP: #5d5c5b 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #5d5c5b 1px solid; LINE-HEIGHT: normal; BORDER-BOTTOM: #5d5c5b 1px solid;');
document.writeln('                     FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #f2f7f9 }');
document.writeln('</STYLE>');
document.writeln('<SCRIPT language="JavaScript">');
document.writeln('function enterref(){');
document.writeln('var ref = prompt("Introduzca el código de referencia del inmueble","");');
document.writeln('if (ref != null){');
document.writeln('document.location.href="findEN.html?reg=" + ref;');
document.writeln('}');
document.writeln('}');
document.writeln('</SCRIPT>');
document.writeln('</head>');
document.writeln('<body topMargin=0>');
document.writeln('<center>');
document.writeln('<table border=0  cellspacing=0 cellpadding=0 height=621 width=750>');
document.writeln('   <tr>');
document.writeln('    <td valign=top colspan=6 height=100>');
document.writeln('          <table cellspacing=0 cellpadding=0>');
document.writeln('	<tr>	');
document.writeln('	  <td width=185><img src="corplogo.jpg"></td> ');
document.writeln('	   <td width=565>');
document.writeln('			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"  id="Movie1" width="565" height="100">');
document.writeln('  			<param name="movie" value="icatalogflashEN.swf">');
document.writeln('	 		<param name="quality" value="high">');
document.writeln('			<param name="bgcolor" value="#000080">');
document.writeln('			<embed name="Movie1" src="icatalogflashEN.swf" quality="high" bgcolor="#000080" width="565" height="100" type="application/x-shockwave-flash"    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.writeln('	   		</embed>');
document.writeln('		   </object>');
document.writeln('		</td>');
document.writeln('	</tr>');
document.writeln('	</table>	');
document.writeln('    </td>');
document.writeln('  </tr>');
document.writeln('   <tr><td height=20 bgcolor=#000080 valign=top align=right colspan=4>&nbsp;<a  style="vertical-align:bottom" href="indexES.html"><img src="flagcircleES.gif" border=0 alt="Spanish"></a>&nbsp;<a  style="vertical-align:bottom" href="indexCA.html"><img src="flagcircleCA.gif" border=0 alt="Catalan"></a>&nbsp;<a  style="vertical-align:bottom" href="indexEN.html"><img src="flagcircleEN.gif" border=0 alt="English"></a>&nbsp; </td></tr>');
document.writeln('   <tr>');
document.writeln('    <td bgcolor=#D6DBE7 valign=top  height=478>');
document.writeln('    <!--MENU ESQUERRA-->');
document.writeln('      <table border=0 width=146 cellspacing=1 cellpadding=1>');
document.writeln('      <tr>');
document.writeln('        <td width=100% bgcolor=#637584 height=20>');
document.writeln('          <p align=center>&nbsp;<b><font face=Arial color=#FFFFFF ');
document.writeln('           size=2>Finques Montmar</font></b></p></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td width=100%>&nbsp;&nbsp;<font color=#800000><a ');
document.writeln('          href="indexEN.html">Find House</a></font></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td width=100%>&nbsp;&nbsp;<font color=#800000><a href="aboutusEN.html">-</a></font></td></tr>');
document.writeln('       <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td width="100%">&nbsp;&nbsp;<font color=#800000><a href="findusEN.html">-</a></font></td></tr>');
document.writeln('       <tr>');
document.writeln('        <td><img src="linea.gif" width="140" height="2"></td></tr>');
document.writeln('        <tr>');
document.writeln('          <td width=100%>&nbsp;&nbsp;<font color=#800000><a href="formsubmitEN.html">To sell my house</a></font></td></tr>');
document.writeln('         <tr>');
document.writeln('            <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln('       </table>');
document.writeln('<!--A49F - 4363 - 98CA');
document.writeln(' <table border=0 width=146 cellspacing=1 cellpadding=1>');
document.writeln('      <tr>');
document.writeln('        <td width=100% bgcolor=#637584 height=20>');
document.writeln('          <p align=center>&nbsp;<b><font face=Arial color=#FFFFFF ');
document.writeln('           size=2>Soluciones Hipotecarias</font></b></p></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td width=100%><font color=#800000><a style="margin-left:8px"');
document.writeln('          href="refinanEN.html">Refinanciaciones</a></font></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln('       <tr>');
document.writeln('        <td width=100%><font color=#800000><a style="margin-left:8px"');
document.writeln('          href="compra_EN.html">Compra de vivienda</a></font></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln(' <tr>');
document.writeln('        <td width=100%><font color=#800000><a style="margin-left:8px"');
document.writeln('          href="embargos_EN.html">Embargos/subastas</a></font></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln('</table>');
document.writeln('A49F - 4363 - 98CA-->');

document.writeln('<table border=0 width=146 cellspacing=1 cellpadding=1>');
document.writeln('     <tr>');
document.writeln('        <td width=100% height=20 bgcolor=#637584>');
document.writeln('          <p align=center>&nbsp;<b><font face=Arial color=#FFFFFF ');
document.writeln('           size=2>Type Housing</font></b></p></td></tr>');
document.writeln('        </td>');
document.writeln('      </tr> ');
document.writeln(' ');
document.writeln('        <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?tipovivienda=2">Houses</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln(' <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?tipovivienda=0">New promotions</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln(' <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?tipovivienda=1">Flats</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln(' <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?tipovivienda=4">Commercial store</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln('  </table>');

document.writeln('    <!--LLISTAT POBLACIONS-->');
document.writeln('<table border=0 width=146 cellspacing=1 cellpadding=1>');
document.writeln('     <tr>');
document.writeln('        <td width=100% height=20 bgcolor=#637584>');
document.writeln('          <p align=center>&nbsp;<b><font face=Arial color=#FFFFFF ');
document.writeln('           size=2>Live in...</font></b></p></td></tr>');
document.writeln('        </td>');
document.writeln('      </tr> ');
document.writeln('<!--64AA - 92BE - A8C');
document.writeln('    <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="/terrassa/indexEN.html">Terrassa</a></td></tr>');
document.writeln('    <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln('64AA - 92BE - A8C-->');
document.writeln('<!--F4FE - 52B7 - FCCE');
document.writeln('    <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="/indexEN.html">Rubí</a></td></tr>');
document.writeln('    <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>');
document.writeln('F4FE - 52B7 - FCCE-->       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=64">Can Maciá ( Sant Pere de Ribes )</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=65">Can suria-Olivella</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=66">Canyelles</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=67">La Girada, VILAFRANCA DEL PENEDES.</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=68">LES CABANYES</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=69">Les Roquetes</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=6A">Les Roquetes, Sant Pere de Ribes.</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=6B">Olivella</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=6C">Patos - Sant Pere de Ribes</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=6D">Sant Pere de Ribes</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=6E">Sant Pere Molanta</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=6F">Sitges</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=70">st.pere de ribes</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>       <tr>');
document.writeln('        <td width=100%><a style="margin-left:8px" href="findEN.html?poblacion=71">Vilanova i la Geltrú</a></td></tr>');
document.writeln('      <tr>');
document.writeln('        <td><img src="linea.gif" width=140 height=2></td></tr>    </table>');

document.writeln(' <!--FI LLISTAT POBLACIONS-->');
document.writeln('<!--<br><center><img src="logo_api.gif"></center>-->');
document.writeln('     </td>');
document.writeln('     <td valign=top width=602>');
document.writeln('   <center>  ');
document.writeln('   <!--PART CENTRAL-->');

document.writeln('<!--FORMULARI BUSQUEDA-->');
document.writeln('    <BR> <TABLE cellpadding=4 border=0 width=470 align=center><TR><TD align=center>');
document.writeln('     <TABLE cellspacing=0 border=0 width=460>');
document.writeln('          <tr>');
document.writeln('             <td bgcolor=#000080 align=center><font color=#FFFFFF size=1><b>Town</b></font></td>');
document.writeln('              <td bgcolor=#000080 align=center><font color=#FFFFFF size=1><b>Type Housing</b></font></td>');
document.writeln('              <td bgcolor=#000080 align=center><font color=#FFFFFF size=1><b>Minimal price</b></font></td>');
document.writeln('              <td bgcolor="#000080" align=center><font color=#FFFFFF size=1><b>Maximum price</b></font></td>');
document.writeln('          </tr>');
document.writeln('          <tr>');
document.writeln('            <td bgcolor=#D6DBE7 align=center>');
document.writeln(' <form action="findEN.html" method=get>	        ');
document.writeln('<SELECT NAME=poblacion class=caja style="width:110px">');
document.writeln('<OPTION VALUE="" SELECTED>All<OPTION VALUE="64">Can Maciá ( Sant Pere de Ribes )<OPTION VALUE="65">Can suria-Olivella<OPTION VALUE="66">Canyelles<OPTION VALUE="67">La Girada, VILAFRANCA DEL PENEDES.<OPTION VALUE="68">LES CABANYES<OPTION VALUE="69">Les Roquetes<OPTION VALUE="6A">Les Roquetes, Sant Pere de Ribes.<OPTION VALUE="6B">Olivella<OPTION VALUE="6C">Patos - Sant Pere de Ribes<OPTION VALUE="6D">Sant Pere de Ribes<OPTION VALUE="6E">Sant Pere Molanta<OPTION VALUE="6F">Sitges<OPTION VALUE="70">st.pere de ribes<OPTION VALUE="71">Vilanova i la Geltrú</OPTION></SELECT>');

document.writeln('             </td>');
document.writeln('                 <td width=108 bgcolor=#D6DBE7 align=center>');

document.writeln('<SELECT NAME=tipovivienda class=caja style="width:100px">');
document.writeln('<OPTION VALUE="" SELECTED>All<OPTION VALUE="2">Houses<OPTION VALUE="0">New promotions<OPTION VALUE="1">Flats<OPTION VALUE="4">Commercial store</SELECT>');

document.writeln('                </td>');
document.writeln('                <td width="125" bgcolor="#D6DBE7" align="center">');
document.writeln('        		<SELECT NAME=importe1 VALUE="" ID=importe1 class=caja style="width:110px"> ');
document.writeln('                                     <OPTION VALUE="" SELECTED>Indiferent');
document.writeln('                                    <OPTION VALUE=0>Less than 120.000');
document.writeln('                                    <OPTION VALUE=120000>120.000                ');
document.writeln('		    <OPTION VALUE=150000>150.000                ');
document.writeln('		    <OPTION VALUE=180000>180.000                ');
document.writeln('	                    <OPTION VALUE=210000>210.000                ');
document.writeln('		    <OPTION VALUE=240000>240.000                ');
document.writeln('		    <OPTION VALUE=300000>300.000                ');
document.writeln('		    <OPTION VALUE=330000>330.000');
document.writeln('		    <OPTION VALUE=360000>360.000');
document.writeln('		    <OPTION VALUE=400000>400.000');
document.writeln('		     <OPTION VALUE=420000>420.000');
document.writeln('		     <OPTION VALUE=450000>450.000');
document.writeln('		     <OPTION VALUE=480000>480.000');
document.writeln('		     <OPTION VALUE=510000>510.000');
document.writeln('		     <OPTION VALUE=540000>540.000');
document.writeln('		     <OPTION VALUE=570000>570.000');
document.writeln('		      <OPTION VALUE=600000>600.000</OPTION></SELECT> ');
document.writeln('               </select>');
document.writeln('         </td>');
document.writeln('        <td width="125" bgcolor="#D6DBE7" align="center">');
document.writeln('		        <SELECT NAME="importe2" class="caja" VALUE="" ID="importe2" style="width:110px">');
document.writeln('					<OPTION VALUE="" SELECTED>Indiferent');
document.writeln('                  <OPTION VALUE=120000>120.000                ');
document.writeln('					<OPTION VALUE=150000>150.000                ');
document.writeln('   					<OPTION VALUE=180000>180.000                ');
document.writeln('					<OPTION VALUE=210000>210.000                ');
document.writeln('					<OPTION VALUE=240000>240.000                ');
document.writeln('					<OPTION VALUE=300000>300.000                ');
document.writeln('					<OPTION VALUE=330000>330.000');
document.writeln('					<OPTION VALUE=360000>360.000');
document.writeln('					<OPTION VALUE=400000>400.000');
document.writeln('					<OPTION VALUE=420000>420.000');
document.writeln('					<OPTION VALUE=450000>450.000');
document.writeln('					<OPTION VALUE=480000>480.000');
document.writeln('					<OPTION VALUE=510000>510.000');
document.writeln('					<OPTION VALUE=540000>540.000');
document.writeln('					<OPTION VALUE=570000>570.000');
document.writeln('					<OPTION VALUE=600000>600.000');
document.writeln('                                                                                <OPTION VALUE=600000>More than 600.000</option></select>');
document.writeln('        </td>');
document.writeln('      </tr>');
document.writeln('      <tr><td bgcolor=#D6DBE7 align=center colspan=4 height=4></td></tr>');
document.writeln('      <tr><td bgcolor=#D6DBE7 align=center colspan=4><INPUT TYPE=Submit VALUE="Find House" class=caja></td></tr>');
document.writeln('      <tr><td bgcolor=#D6DBE7 colspan=4 height=4><!--04BF - A299 - DCC&nbsp;&nbsp;<a href="#" onClick="enterref();"  class=smalltext>Buscar por referencia</a>04BF - A299 - DCC--></td></tr>');
document.writeln('     </table>');
document.writeln('</form>   ');




document.writeln(buscar(poblacion,importe1, importe2,tipovivienda, page, reg));

document.writeln('    </TD></TR></TABLE>');
document.writeln('     <!--FI LLISTAT ARTICLES-->');
document.writeln('     ');
document.writeln('    </center>');
document.writeln('    </td>');

document.writeln('  </tr>');
document.writeln('   <tr>');
document.writeln('    <td bgcolor=#D6DBE7 valign=top height=5>&nbsp; </td>');
document.writeln('    <td colspan=2></td>');
document.writeln('    </tr>');
document.writeln('   <tr>');
document.writeln('    <TD vAlign=top align=left bgColor=#d6dbe7  height=15>');
document.writeln('        <a href="http://www.innova22.com/icatalog">');
document.writeln('         <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="promoinnova" width="122" height="20">');
document.writeln('         <param name="movie" value="promoinnova.swf">');
document.writeln('         <param name="quality" value="high">');
document.writeln('        <param name="bgcolor" value="#D6DBE7">');
document.writeln('        <embed name="promoinnova" src="promoinnova.swf" quality="high" bgcolor="#D6DBE7" width="122" height="20" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.writeln('        </embed>');
document.writeln('        </object>');
document.writeln('        </a>    ');
document.writeln('    </td>');
document.writeln(' <td align=center  bgColor=#d6dbe7 colspan=3 class="smalltext"><b>Finques Montmar</b> ')
document.writeln(' Carretera dels Cards, Nº 43');

document.writeln(' - Sant Pere de Ribes<br>');
document.writeln('             Tel: 93 896 08 76 / 93 896 09 50 - <a href="mailto:montmar2@teleline.es">montmar2@teleline.es</a>');
document.writeln('   </td>');

document.writeln('  </tr>');
document.writeln(' </table>');
document.writeln('</CENTER>');
document.writeln('</body>');
document.writeln('</HTML>');
};// I
