// Dieses Skript ist Teil der CSL ImmobilienStar 6.0 Software.

// http://www.cslsoft.de

// Copyright 2001, Computer System Lösungen. Alle Rechte vorbehalten.

// Jegliche Art der Vervielfältigung ohne die schriftliche Erlaubnis von

// CSL wird strafrechtlich verfolgt.

// Autor: Norbert J. Schrepf, http://webdesign.schrepf.com

// Version 1.0.0.1 vom 13.4.2002



var LIST_LENGTH = 5;



// ============ Property Object Definition ========================================================



function PObject (id) {

  this.id         = id;

  this.type       = null;

  this.rentBuy    = null;     // Miet/Kauf

  this.zip        = null;     // PLZ

  this.region     = new Object();

  this.location   = new Object();     // Lage

  this.rooms      = null;     // Anzahl Zimmer

  this.size       = null;     // Groesse

  this.price      = null;

  this.text      = new Object();     // Beschreibung  

  this.descr      = new Object();     // Beschreibung

  this.urlPic1    = null;     // Bild URL

  this.urlPic1Tb  = null; 

  

  this.printListing = printListing;

  this.matchQuery   = matchQuery;

  this.printDetails = printDetails;

  this.printPicture = printPicture;

  this.getDescr = getDescr;

  this.getLocation = getLocation;

  this.getRegion = getRegion;

}

<!-- Begin yenka code

function yenkaweb(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=745,height=605');");

}



function yenkaweb_no_fix(URL,MAG,SZEL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + SZEL + ",height=" + MAG + "');");

}

// End -->



// ====================== print object listing =====================================





function printListing (index) {

 

  var priceEur = this.price / arfolyam;

  var priceEur = Math.round(priceEur);
  
  

  document.write("<table align='center' style='width:100%; background: #ffffff url(" + site_url + "/template/images/ogb2.gif) no-repeat' cellpadding='5' cellspacing='0' border='0'><tr><td valign='middle'><img src='" + site_url + "/immobilien/Pictures/" + this.urlPic[0] + "' width='120' height='80' vspace='5' hspace='5'></td><td  valign='top'><div class='style7'><span class='style28'>" + objectType[this.type] + " - &nbsp;" + this.id + ".</span> <br>" + language.region + ":&nbsp;" + this.getRegion() + "&nbsp;Megye &nbsp;<br />" + language.ort + ": ");
document.writeln(ort[this.zip] + "<br />");
document.write(this.rooms + "&nbsp;" + language.zimmer + ",&nbsp;" + formatNumber(this.size)+ "m&sup2; <br>" + language.kaufpreis + ":&nbsp;<span class='style27'>" + formatNumber(this.price)+ " "+ language.zahlKomma + "-Ft.<br />" + formatNumber(''+priceEur+'') + " "+ language.zahlKomma + "- Euro.</span></div></td></tr></table> ");

  





// ===== größe ============================

 

  

  if ((window.location.search == "") || (window.location.search.substring (0,4) == "?ln=")) {

    document.writeln ("<table align='center' style='width:100%; background: #ffffff url(" + site_url + "/template/images/ogb4.gif) no-repeat' cellpadding='5' cellspacing='5' border='0'><tr><td><a class='tovabb' href='javascript:yenkaweb(\"" + site_url +  "/immobilien/popup.php?oa=&mk=ko&plz=&rg=&gv=&zv=&pr=&skip=0&id=" + index + "&ln=" + parameters.language + "\")'>" + language.expose + "&nbsp;" + this.id + " &nbsp; >></a></td></tr></table>");

  }

  else {

    document.writeln ("<table align='center' style='width:100%; background: #ffffff url(" + site_url + "/template/images/ogb4.gif) no-repeat' cellpadding='5' cellspacing='5' border='0'><tr><td><a class='tovabb' href='javascript:yenkaweb(\"" + site_url + "/immobilien/popup.php" + window.location.search.substring(0, window.location.search.indexOf("&id=")) + "&id=" + index + "&ln=" + parameters.language + "\")'>" + language.expose + " &nbsp;" + this.id + "&nbsp; >></a></td></tr></table>");

  }

  }



function matchQuery (parameters) {

  var match = true;

  if (parameters.type != "" && this.type != parameters.type) { match = false; }

  if (parameters.rentBuy != "" && this.rentBuy != parameters.rentBuy) { match = false; }

  if (parameters.zip != "" && this.zip.substring(0, parameters.zip.length) != parameters.zip) { match = false; }

  if (parameters.region != "" && this.getRegion() != parameters.region) { match = false; }

  if (parameters.size > 0 && parseInt(this.size, 10) < parameters.size) { match = false;}



  if (parameters.rooms > 0 && parseInt(this.rooms) < parameters.rooms) { match = false; }

  if (parameters.price > 0 && this.price > parameters.price) { match = false; }

  return match;

}



// ====================== print object details =====================================



function printDetails () {

	

	

  document.writeln ("<span clas='style4'>" + language.objektNr + ":" + this.id +"</span>&nbsp;-&nbsp;<a class='tovabb2' href='javascript:yenkaweb_no_fix(\"http://maps.google.com/maps?q=" + this.getRegion() + "&nbsp;Hungary&nbsp;" + this.zip + "&nbsp;" + ort[this.zip] + "&z=12\",\"800\",\"900\")'>" + language.terkep + "</a>&nbsp;-");

  document.writeln ("<a class='tovabb2' href='mailto:"+maklerMail+"?subject="+language.objektNr+" "+this.id+"'> Email </a> &nbsp;-");

  document.writeln('<a class="tovabb2" href="javascript:PrnCikk();">' + language.nyomtat + '</a> -');

  document.writeln('<a href=\'javascript:close();\' target=\'_self\' class="tovabb2">' + language.bezar + '</a>');

  document.writeln ("<p align='center'><img class='tovabb3' src='" + site_url + "/immobilien/Pictures/" + this.urlPic[0] + "' width='300' height='225' hspace='5' vspace='5' name='property'>");

  document.writeln ("<table width='100%'>");

  document.writeln ("<tr valign='top'><td class='style5'>" + language.objektNr + ":</td><td class='style4'>" + this.id +"</td></tr>");

  document.writeln ("<tr valign='top'><td class='style5'>" + language.objektart + ":</td> <td class='style4'>" + objectType[this.type] + "</td></tr>");



// ===== größe ============================

  if (this.size != "") {

  if (this.size != 0){

    if ((this.type == "wo") || (this.type == "ez") || (this.type == "so")) {

      document.writeln("<tr valign='top'><td class='style5'><strong>" + language.groesse + ":</strong></td><td class='style4'>" + formatNumber(this.size) + " m&sup2;</td></tr>");

    }

    else if ((this.type == "lm") || (this.type == "bp") || (this.type == "pl") || (this.type == "GB")) {

      document.writeln("<tr valign='top'><td class='style5'><strong>" + language.nutzflaeche + ":</strong></td><td class='style4'>" + formatNumber(this.size) + " m&sup2;</td></tr>");

    }

    else if ((this.type == "gs") || (this.type == "lf")) {

      document.writeln("<tr valign='top'><td class='style5'><strong>" + language.flaeche + ":</strong></td><td class='style4'>" + formatNumber(this.size) + " m&sup2;</td></tr>");

    }

  }}

// ===== zimmer / räume / einheiten =======

  if (this.rooms != "0"){

  if (this.rooms != ""){

    if ((this.type == "wo") || (this.type == "ez") || (this.type == "so")) {

      document.write ("<tr valign='top'><td class='style5'><strong>" + language.zimmer + ":</strong></td><td class='style4'>" + this.rooms +"</td></tr>");

    }

    else if ((this.type == "bp") || (this.type == "gb")) {

      document.write ("<tr valign='top'><td class='style5'><strong>" + language.raeume + ":</strong></td><td class='style4'>" + this.rooms +"</td></tr>");

    }

    else if (this.type == "zr") {

      document.write ("<tr valign='top'><td class='style5'><strong>" + language.einheiten + ":</strong></td><td class='style4'>" + this.rooms +"</td></tr>");

    }

  }}

// ===== region ===========================

  document.writeln ("<tr valign='top'><td class='style5'><strong>" + language.region + ":</strong></td><td class='style4'>" + this.getRegion() + "&nbsp;Megye</td></tr>");
  document.writeln ("<tr valign='top'><td class='style5'><strong>" + language.ort + ":</strong></td><td class='style4'>" + ort[this.zip] + "</td></tr>");


// ===== miete ============================

//  document.writeln ("<tr valign='top'><td><strong>" + ((this.rentBuy == "mo")? language.miete: language.kaufpreis) + ":</strong></td><td>" + formatNumber(this.price) + language.zahlKomma + "- Euro." +"</td></tr>");

  if (this.price != ""){

  if (this.price != "0"){

	 

    if  (this.price.search(",") != -1 ) {document.write("<tr valign='top'><td><strong>" + ((this.rentBuy == "mo")? language.miete: language.kaufpreis) + ":</strong></td><td class='style26'>" + formatNumber(this.price) + " Ft." +"</td></tr>")}

    else { document.write("<tr valign='top'><td class='style5'><strong>" + ((this.rentBuy == "mo")? language.miete: language.kaufpreis) + ":</strong></td><td class='style26'>" + formatNumber(this.price) + language.zahlKomma + "- Ft." +"</td></tr>")}

  }}



// ===== Bilder ===========================

//  document.writeln ("<tr valign='top'><td><strong>" + language.bilder + ":</strong></td><td>");

//  for (i = 0; i < 5;) {

//    document.writeln (" <a href='javascript:alert( \"hello\")'>P" + (++i) + "</a>");

//  }

//  document.writeln ("</td></tr>");



// ===== beschreibung =====================

  document.writeln ("<tr valign='top'><td colspan='2' class='style41'><strong>" + language.lageBeschreibung + ":</strong><br>" + this.getLocation() + "<br>" + this.getDescr() + "<br><p>" + this.text[parameters.language] + "</p></td></tr>");

  document.writeln ("</table>");



  var queryString = "oa=" + parameters.type;

  queryString    += "&mk=" + parameters.rentBuy;

  queryString    += "&plz=" + parameters.zip;

  queryString    += "&rg=" + parameters.region;

  queryString    += "&gv=" + parameters.size;

  queryString    += "&zv=" + parameters.rooms;

  queryString    += "&pr=" + parameters.price;

  queryString    += "&skip=" + parameters.skip;

  queryString    += "&id=";

  queryString    += "&exp=" + parameters.id;

  queryString    += "&ln=" + parameters.language;

  



}



// =======================================

// print picture

// =======================================

function printPicture () {

  if (this.urlPic[0] == "") {

    document.writeln("<div align='center'>" + language.keinBild + "</div>");

	

  }

  else {

    for (var i = 0; i < this.urlPic.length; i++) {

      if (this.urlPic[i]) {

        document.writeln ("<a href='javascript:showPicture(\"" + this.urlPic[i] + "\")'><img class='tovabb3' src='" + site_url + "/immobilien/Pictures/" + this.urlPic[i] + "' width='100' height='75'><a> ");

		

      }

    }

  }

}





function getDescr () {

  return this.descr[parameters.language];

  

}



function getLocation () {

  return this.location[parameters.language];

}



function getRegion () {

  return this.region[parameters.language];

  

}



function getText () {

  return this.text[parameters.language];

  

}



// ============ Object List Definition ===========================================================



function Objects (total) {

  this.list = new Array (total);

  this.total = total;

  this.next = 0;

  this.add = add;

  this.printList = printList;

  this.printDetailsOf = printDetailsOf;

  this.printPictureOf = printPictureOf;

}



function add (pObject) {

  if (this.next < this.total) {

//    alert ("add object");

    this.list[this.next] = pObject;

    this.next ++;

//    alert ("next object " + this.next);

  }

}



function printList (parameters) {

//  alert (this.next);

  if (parameters.rentBuy == "mo") {

    document.writeln ("<span class='h3'>" + language.mietobjekte + ":</span>");

  }

  else {

    document.writeln ("<span class='h3'>" + language.kaufobjekte + ":</span>");

  }

  

  var listLength = 0;

  var noSkip     = parameters.skip;

  for (id = 0; id < this.next; id++) {

//    alert ("print listing");

    if (this.list[id].matchQuery(parameters)) {

      if (noSkip > 0) {

        noSkip --;

      }

      else {

        this.list[id].printListing (id);

        listLength ++;

        if (listLength == LIST_LENGTH) {

          var temp = "?oa=&mk=ko&plz=&rg=&gv=&zv=&pr=&skip=" + LIST_LENGTH + "&id=&ln=" + parameters.language;

          if ((window.location.search != "") && (window.location.search.substring (0,4) != "?ln=")) {

            temp = window.location.search.substring(0, window.location.search.indexOf("&skip="));

            temp += "&skip=" + (parameters.skip + LIST_LENGTH) + "&id=&ln=" + parameters.language;

          }

          document.writeln ("<a class='tovabb2' href='" + location.pathname + temp + "'>" + language.weitereAngebote + "</a> &nbsp; &nbsp;");

          break;

        }

      }

    }

  }

}



function printDetailsOf (index) {

  this.list[index].printDetails ();

}



function printPictureOf (index) {

  this.list[index].printPicture ();

}



// ============ Parameters =======================================================================



function Parameters () {

  this.type    = "";

  this.rentBuy = "ko"

  this.zip     = "";

  this.region  = "";

  this.size    = "";

  this.rooms   = "";

  this.price   = "";

  this.id      = "";

  this.skip    = 0;

  this.language = "fr";

  

  this.getParameters = getParameters;

}



function getParameters () {

  var suche = window.location.search + "&ende";

  if ((suche == "&ende") || (suche.indexOf ("?ln=") == 0)) { // initial form display

    if (suche.indexOf ("?ln=") == 0) {

      var ln = suche.substring(suche.indexOf("?ln=") + 4, suche.indexOf("&ende"));

      if (ln != "") {

        this.language = ln;

      }

    }

    language = new Language ();

    return;

  }



  suche = unescape(suche);

  while (suche.indexOf("+") > -1) {

    suche = suche.substring(0, suche.indexOf("+")) + " " + suche.substring(suche.indexOf("+") + 1, 500);

  }



  this.type = suche.substring(suche.indexOf("?oa=") + 4, suche.indexOf("&mk="));



  this.rentBuy = suche.substring(suche.indexOf("&mk=") + 4, suche.indexOf("&plz="));



  this.zip = suche.substring(suche.indexOf("&plz=") + 5, suche.indexOf("&rg="));



  this.region = suche.substring(suche.indexOf("&rg=") + 4, suche.indexOf("&gv="));



  this.size = suche.substring(suche.indexOf("&gv=") + 4, suche.indexOf("&zv="));

  if (this.size != "") {

    if (isNaN(this.size)) {

      alert("keine gültige Größe !!!.");

      history.go(-1);

      return;

    }

    else {

     this.size = parseInt(this.size, 10);

    }

  }



  this.rooms = suche.substring(suche.indexOf("&zv=") + 4, suche.indexOf("&pr="));

  if (this.rooms != "") {

    if (isNaN(this.rooms)) {

      alert("keine gültige Zimmeranzahl !!!.");

      history.go(-1);

      return;

    }

    else {

      this.rooms = parseInt(this.rooms, 10);

    }

  }



      // Kaufpreis/Miete

  this.price = suche.substring(suche.indexOf("&pr=") + 4, suche.indexOf("&skip="));

  if (this.price != "") {

    if (isNaN(this.price)) {

      alert("kein gültiger Preis !!!.");

      history.go(-1);

    }

    else {

      this.price = parseInt(this.price, 10);

    }

  }



  this.skip = suche.substring(suche.indexOf("&skip=") + 6, suche.indexOf("&id="));

  if (this.skip != "") {

    this.skip = parseInt(this.skip, 10);

  }



  this.id = suche.substring(suche.indexOf("&id=") + 4, suche.indexOf("&ln="));



  var ln = suche.substring(suche.indexOf("&ln=") + 4, suche.indexOf("&ende"));

  if (ln != "") {

    this.language = ln;

  }



  language = new Language ();

}



var language;

var parameters = new Parameters ();





function printSearchForm () {

var str = '';

  document.writeln ("<span class='style5'>" + language.suchkriterien + "</span>");

 

  document.writeln ("<form method='GET' action='" + location.pathname + "'>");

  document.writeln ("<table align='center'  cellpadding='0' cellspacing='0' border='0'");

  document.writeln (" style='width: 470px; height: 283px; background: #ffffff url(" + site_url + "/template/images/ogb.gif) no-repeat'>");

  document.writeln ("  <tr><td>&nbsp;</td></tr><tr>");

  document.writeln ("    <td class='style5'>" + language.objektart + ":</td>");

  document.writeln ("    <td class='style5'>");

  document.writeln ("      <SELECT name='oa' tabindex='1'>");

  if (document.all) { // MSIE

    document.writeln ("       <OPTION class='style4' value=''>&lt;" + language.alle + "&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</OPTION>");

  }

  else {

    document.writeln ("        <OPTION class='style4' value=''>&lt;" + language.alle + "&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</OPTION>");

  }

  for (type0 in objectType) {

    document.write ("        <OPTION class='style4' value='" + type0 + "'");

    if (parameters.type == type0) {

      document.write (" selected");

    }

    document.writeln (">" + objectType[type0] + "</OPTION>");

  }



  document.writeln ("      </SELECT>");

  document.writeln ("    </td>");

  document.writeln ("  </tr>");

  document.writeln ("  <tr>");

  document.writeln ("    <td class='style5'>&nbsp;</td>");

  document.writeln ("    <td class='style5'>");

  document.writeln ("      <INPUT type='radio' name='mk' value='mo'" + ((parameters.rentBuy == "mo")?"checked":"") + ">" + language.mietobjekte + " &nbsp; &nbsp;");

  document.writeln ("      <INPUT type='radio' name='mk' value='ko'" + ((parameters.rentBuy == "ko")?"checked":"") + ">" + language.kaufobjekte);

  document.writeln ("    </td>");

  document.writeln ("  </tr>");

  document.writeln ("  <tr>");

  document.writeln ("    <td class='style5'>" + language.ort + ":</td>");

  document.writeln( "<td class='style5'><select name='plz' class='style4'><option  value='" + parameters.zip + "'>" + ort[parameters.zip] + "</option><option value=''>" + language.alle + "</option>");
  
  document.write("<option value='8935' >Almásháza</option><option value='8394' >Alsópáhok</option><option value='8256' >Ábrahámhegy</option><option value='8313' >Balatongyörök</option><option value='8753' >Balatonmagyaród</option><option value='8649' >Balatonberény</option><option value='8630' >Balatonboglár</option><option value='8646' >Balatonfenyves</option><option value='8648' >Balatonkeresztúr</option><option value='8647' >Balatonmáriafürdő</option><option value='8712' >Balatonújlak</option><option value='8257' >Badacsonyörs</option><option value='8261' >Badacsony</option><option value='8258' >Badacsonytomaj</option><option value='8263' >Badacsonytördemic</option>		<option value='8172' >Balatonakarattya</option>		<option value='8312' >Balatonederics</option>		<option value='8174' >Balatonkenese</option>		<option value='8255' >Balatonrendes</option>		<option value='8252' >Balatonszepezd</option>		<option value='8710' >Balatonszentgyörgy</option>		<option value='8797' >Batyk</option>		<option value='8741' >Bókaháza</option>        <option value='7682' >Bükkösd</option>        <option value='8474' >Csabrendek</option>		<option value='8795' >Csáford</option>        <option value='8735' >Csákány</option>		<option value='8372' >Cserszegtomaj</option>        <option value='8700' >Csömend</option>		<option value='8764' >Dióskál</option>		<option value='8799' >Dötk</option>        <option value='8765' >Egeraracsa</option>		<option value='8742' >Esztergályhorváti</option>        <option value='8380' >Felsőpáhok</option>		<option value='8767' >Felsőrajk</option>        <option value='8640' >Fonyód</option>		<option value='8732' >Főnyed</option>        <option value='7276' >Gadács</option>		<option value='8685' >Gamás</option>		<option value='8747' >Garabonc</option>		<option value='8978' >Gosztola</option>		<option value='8315' >Gyenesdiás</option>        <option value='8265' >Hegymagas</option>		<option value='8380' >Hévíz</option>        <option value='8731' >Hollád</option>        <option value='7275' >Igal</option>        <option value='7775' >Illocska</option>        <option value='8283' >Káptalantóti</option>		<option value='8785' >Kallosd</option>		<option value='8354' >Karmacs</option>		<option value='8784' >Kehidakustány</option>        <option value='8254' >Kékkút</option>		<option value='8284' >Kisapáti</option>		<option value='8254' >Kővágóörs</option>		<option value='8745' >Kerecseny</option>        <option value='7256' >Kercseliget</option>		<option value='8713' >Kéthely</option>		<option value='8360' >Keszthely</option>        <option value='8318' >Lesencefalu</option>		<option value='8319' >Lesenceistván</option>        <option value='8700' >Marcali</option>        <option value='8282' >Mindszentkálla</option>		<option value='8746' >Nagyrada</option>        <option value='8738' >Nemesvid</option>        <option value='8284' >Nemesgulács</option>		<option value='8311' >Nemesvita</option>		<option value='8371' >Nemesbük</option>        <option value='8744' >Orosztony</option>        <option value='7458' >Polány</option>		<option value='8707' >Pusztakovácsi</option>        <option value='8300' >Raposka</option>		<option value='8253' >Révfülöp</option>		<option value='8373' >Rezi</option>        <option value='8256' >Salföld</option>		<option value='8391' >Sármellék</option>        <option value='8732' >Sávoly</option>		<option value='8788' >Sénye</option>       	<option value='8755' >Somogygeszti</option>		<option value='8351' >Sümegprága</option>		<option value='8341' >Szalapa</option>		<option value='8393' >Szentgyörgyvár</option>        <option value='8732' >Szegerdő</option>        <option value='8281' >Szentbékkálla</option>		<option value='8264' >Szigliget</option>		<option value='8736' >Szőkedencs</option>        <option value='8718' >Tapsony</option>		<option value='8731' >Tikos</option>		<option value='8782' >Tilaj</option>		<option value='8796' >Türje</option>        <option value='8711' >Vörs</option>		<option value='8316' >Vállus</option>		<option value='8316' >Várvölgy</option>		<option value='8354' >Vindornyafok</option>		<option value='8353' >Vindornyalak</option>		<option value='8355' >Vindornyaszőlős</option>        <option value='7773' >Villány</option>		<option value='8314' >Vonyarcvashegy</option>		<option value='8741' >Zalaapáti</option>		<option value='8798' >Zalabér</option>		<option value='8782' >Zalacsány</option>		<option value='8900' >Zalaegerszeg</option>		<option value='8749' >Zalakaros</option>		<option value='8785' >Zalakoppány</option>		<option value='8354' >Zalakövedkút</option>		<option value='8789' >Zalaudvarnok</option>		<option value='8822' >Zalaújlak</option>		<option value='8353' >Zalaszántó</option>		<option value='8790' >Zalaszentgrót</option>		<option value='8788' >Zalaszentlászló</option>		<option value='8947' >Zalatárnok</option>		<option value='8392' >Zalavár</option>");
  
  document.writeln ("  </select></td></tr>");

  //document.writeln ("  <tr>");

  //document.writeln ("    <td class='style5'>" + language.plz + ":</td>");

  //document.writeln ("    <td class='style5'><INPUT name='plz' class='style4' tabindex='2' size='6' value='" + parameters.zip + "'> " + language.anfangsZiffern + "</td>");

 // document.writeln ("  </tr>");

  document.writeln ("  <tr>");

  document.writeln ("    <td class='style5'>" + language.region + ":</td>");

  document.writeln ("    <td class='style5'>");

  document.writeln ("      <SELECT name='rg' tabindex='3'>");

  if (document.all) { // MSIE

    document.writeln ("        <OPTION class='style4' value=''>&lt;" + language.alle + "&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</OPTION>");

  }

  else {

    document.writeln ("        <OPTION class='style4' value=''>&lt;" + language.alle + "&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</OPTION>");

  }

  for (i = 0; i < regions.length; i++) {

    // CB+

	if (!str.match(regions[i][parameters.language])){

	   str = str + ' ' + regions[i][parameters.language];

       document.writeln ("        <OPTION class='style4' value='"+ regions[i][parameters.language] + "'" + ((regions[i][parameters.language] == parameters.region)?" selected":"") + ">" + regions[i][parameters.language] + "</OPTION>");

	// CB-

	}

  }

  document.writeln ("      </SELECT>");

  document.writeln ("    </td>");

  document.writeln ("  </tr>");

  document.writeln ("  <tr>");

  document.writeln ("    <td class='style5'>" + language.mindestens + " " + language.flaeche + ":</td>");

  document.writeln ("    <td class='style5'><INPUT name='gv' class='style4' tabindex='4' size='6' value='" + parameters.size + "'>&nbsp;m&sup2;</td>");

  document.writeln ("  </tr>");

  document.writeln ("  <tr>");

  document.writeln ("    <td class='style5'>" + language.mindestens + " " + language.zimmer + ":</td>");

  document.writeln ("    <td class='style5'><INPUT name='zv' class='style4' tabindex='5' size='6' value='" + parameters.rooms + "'>&nbsp;" + language.zimmerRaeumeEinheiten + "</td>");

  document.writeln ("  </tr>");

  document.writeln ("  <tr>");

  document.writeln ("    <td class='style5'>" + language.mieteKaufpreis + ":</td>");

  document.writeln ("    <td class='style5'><INPUT name='pr' class='style4' tabindex='6' size='6'value='" + parameters.price + "'> Ft</td>");

  document.writeln ("  </tr>");

  document.writeln ("  <tr>");

  document.writeln ("    <td colspan='2' align='right'>");

  document.writeln ("      &nbsp;<br>");

  document.writeln ("      <INPUT type='hidden' name='skip' value='0'>");

  document.writeln ("      <INPUT type='hidden' name='id' value=''>");

  document.writeln ("      <INPUT type='hidden' name='ln' value='" + parameters.language + "'>");

  document.writeln ("      <INPUT type='button' class='buttongomb' value=' " + language.loeschen + " ' onClick='emptyForm (oa, mk, plz, rg, gv, zv, pr);' tabindex='7'>");

  document.writeln ("      <INPUT type='submit' class='buttongomb' value=' " + language.suchen + " ' tabindex='8'>");

  document.writeln ("    </td>");

  document.writeln ("  </tr>");

  document.writeln ("</table>");

  document.writeln ("</form>");

}





function emptyForm (oa, mk, plz, rg, gv, zv, pr) {

  plz.value = "";

  gv.value  = "";

  zv.value  = "";

  pr.value  = "";

}



function formatNumber (price) {

  var temp = "" + price;

  var result = "";

  var nachst="";

  var i = price.search(",");

  if (i != -1 ){ 

    nachst = language.zahlKomma + price.substr(i+1, price.length-i+1);

    vorst = price.substr(0,i);

    temp = vorst;

  };

  if (temp.length < 4) {

    result = temp + result + nachst;

  }

  else if (temp.length < 7) {

    result = temp.substr(0,temp.length - 3) + language.zahlTausend + temp.substr(temp.length - 3,3) + nachst;

  }

  else if (temp.length < 10) {

    result = temp.substr(0,temp.length - 6) + language.zahlTausend + temp.substr(temp.length - 6,3) + language.zahlTausend + temp.substr(temp.length - 3,3) + nachst;

  }

  else {

    result = temp.substr(0,temp.length - 9) + language.zahlTausend + temp.substr(temp.length - 9,3) + language.zahlTausend + temp.substr(temp.length - 6,3) + language.zahlTausend + temp.substr(temp.length - 3,3) + nachst;

  }



  return result ;

}



function showPicture (file) {

  document.property.src =  site_url + "/immobilien/Pictures/" + file;

}


		var ort=new Array(); 
		ort[8935]="Almásháza";
		ort[8394]="Alsópáhok";
		ort[8313]="Balatongyörök";
		ort[8753]="Balatonmagyaród";
		ort[8797]="Batyk";
		ort[8741]="Bókaháza";
		ort[8795]="Csáford";
		ort[8372]="Cserszegtomaj";
		ort[8764]="Dióskál";
		ort[8799]="Dötk";
		ort[8747]="Garabonc";
		ort[8978]="Gosztola";
		ort[8315]="Gyenesdiás";
		ort[8380]="Felsőpáhok";
		ort[8767]="Felsőrajk";
		ort[8765]="Egeraracsa";
		ort[8742]="Esztergályhorváti";
		ort[8380]="Hévíz";
		ort[8785]="Kallosd";
		ort[8354]="Karmacs";
		ort[8784]="Kehidakustány";
		ort[8745]="Kerecseny";
		ort[8360]="Keszthely";
		ort[8746]="Nagyrada";
		ort[8371]="Nemesbük";
		ort[8373]="Rezi";
		ort[8744]="Orosztony";
		ort[8788]="Sénye";
		ort[8391]="Sármellék";
		ort[8351]="Sümegprága";
		ort[8341]="Szalapa";
		ort[8393]="Szentgyörgyvár";
		ort[8782]="Tilaj";
		ort[8796]="Türje";
		ort[8316]="Vállus";
		ort[8316]="Várvölgy";
		ort[8354]="Vindornyafok";
		ort[8353]="Vindornyalak";
		ort[8355]="Vindornyaszőlős";
		ort[8314]="Vonyarcvashegy";
		ort[8741]="Zalaapáti";
		ort[8798]="Zalabér";
		ort[8782]="Zalacsány";
		ort[8900]="Zalaegerszeg";
		ort[8749]="Zalakaros";
		ort[8785]="Zalakoppány";
		ort[8354]="Zalakövedkút";
		ort[8789]="Zalaudvarnok";
		ort[8822]="Zalaújlak";
		ort[8353]="Zalaszántó";
		ort[8790]="Zalaszentgrót";
		ort[8788]="Zalaszentlászló";
		ort[8947]="Zalatárnok";
		ort[8392]="Zalavár";

		ort[8649]="Balatonberény";
		ort[8630]="Balatonboglár";
		ort[8646]="Balatonfenyves";
		ort[8648]="Balatonkeresztúr";
		ort[8647]="Balatonmáriafürdő";
		ort[8712]="Balatonújlak";
		ort[8710]="Balatonszentgyörgy";
		ort[8735]="Csákány";
		ort[8700]="Csömend";
		ort[8640]="Fonyód";
		ort[8732]="Főnyed";
		ort[7276]="Gadács";
		ort[8685]="Gamás";
		ort[7275]="Igal";
		ort[8731]="Hollád";
		ort[7256]="Kercseliget";
		ort[8713]="Kéthely";
		ort[8700]="Marcali";
		ort[8738]="Nemesvid";
		ort[7458]="Polány";
		ort[8707]="Pusztakovácsi";
		ort[8732]="Sávoly";
		ort[8755]="Somogygeszti";
		ort[8732]="Szegerdő";
		ort[8736]="Szőkedencs";
		ort[8718]="Tapsony";
		ort[8731]="Tikos";
		ort[8711]="Vörs";

		ort[8256]="Ábrahámhegy";
		ort[8257]="Badacsonyörs";
		ort[8261]="Badacsony";
		ort[8258]="Badacsonytomaj"; 
		ort[8263]="Badacsonytördemic";
		ort[8172]="Balatonakarattya";
		ort[8312]="Balatonederics";
		ort[8174]="Balatonkenese";
		ort[8255]="Balatonrendes";
		ort[8252]="Balatonszepezd";
		ort[8474]="Csabrendek";
		ort[8265]="Hegymagas";
		ort[8283]="Káptalantóti";
		ort[8254]="Kékkút";
		ort[8284]="Kisapáti";
		ort[8254]="Kővágóörs";
		ort[8318]="Lesencefalu";
		ort[8319]="Lesenceistván";
		ort[8282]="Mindszentkálla";
		ort[8284]="Nemesgulács";
		ort[8311]="Nemesvita";
		ort[8300]="Raposka";
		ort[8253]="Révfülöp";
		ort[8256]="Salföld";
		ort[8281]="Szentbékkálla";
		ort[8264]="Szigliget";
 
		ort[7682]="Bükkösd";
		ort[7775]="Illocska";
		ort[7773]="Villány";
		ort[7391]="Kishajmás";
		
		ort['']="";