<!--

  // © 2003 Bitpalast®. All rights reserved.

  function mailencrypt(m1) {
    var m2 = "dobrzynski-immobilien.de";
    var mailaddress = "mailto:" + m1 + "@" + m2;
    location.href = mailaddress;
  }

  function recommendpage() {
    window.location="http://www.dobrzynski-immobilien.de/service/weiterempfehlen.html?"+window.location;
  }

  function setsearch() {
    if(document.location.search != "") {
      window.open('hinweis_suche.html','','width=200,height=150,toolbar=0,menubar=0,scrollbars=1,status=0,resizable=0');
      previouslocation=document.location.search;
      document.forms[2].search.value=previouslocation.substring(1,previouslocation.length);
      document.forms[2].submit();
    }
  } 

  function printablepage() {
    if(window.location == "http://www.dobrzynski-immobilien.de/") {
      printlocation="http://www.dobrzynski-immobilien.de/phprint.php?page="+window.location+"index.html";
    }
    else printlocation="http://www.dobrzynski-immobilien.de/phprint.php?page="+window.location;
    window.open(printlocation,'','width=770,height=460,toolbar=1,menubar=1,scrollbars=1,status=0,resizable=0');
  }

  function setreferral() {
    if(document.location.search != "") {
      previouslocation=document.location.search;
      document.sendreferralform.url.value=previouslocation.substring(1,previouslocation.length);
    }
    else document.sendreferralform.url.value='http://www.dobrzynski-immobilien.de/';
  }  

  function gotopage(theForm) {
    x=theForm.quickselect.selectedIndex;
    if (x>1) {
      window.location=theForm.quickselect.options[x].value;
    }
    else theForm.reset();
  }

  function searchform_validator(theForm) {
    if (theForm.searchvalue.value.length < 3)
    {
      window.alert("Bitte geben Sie mindestens drei Zeichen für die Stichwortsuche ein.");
      theForm.searchvalue.focus();
    }
    else window.location="http://www.dobrzynski-immobilien.de/suchen/index.html?"+theForm.searchvalue.value;
  }

  function sendreferral(theForm)
  {

    if (theForm.senderemail.value.length < 7)
    {
      alert("Bitte geben Sie mindestens sieben Zeichen in das Feld \"Absender e-Mail Adresse\" ein.");
      theForm.senderemail.focus();
      return (false);
    }

    var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-_.-@";
    var checkStr = theForm.senderemail.value;
    var allValid = true;
    var validGroups = true;
    for (i = 0;  i < checkStr.length;  i++)
    {
      ch = checkStr.charAt(i);
      for (j = 0;  j < checkOK.length;  j++)
        if (ch == checkOK.charAt(j))
          break;
      if (j == checkOK.length)
      {
        allValid = false;
        break;
      }
    }
    if (!allValid)
    {
      alert("Bitte geben Sie nur Buchstaben, Ziffern und \"_.-@\" Zeichen in das Feld \"Absender e-Mail Adresse\" ein.");
      theForm.senderemail.focus();
      return (false);
    }

    if (theForm.recipientemail.value.length < 7)
    {
      alert("Bitte geben Sie mindestens sieben Zeichen in das Feld \"Empfänger e-Mail Adresse\" ein.");
      theForm.recipientemail.focus();
      return (false);
    }

    var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-_-.@";
    var checkStr = theForm.recipientemail.value;
    var allValid = true;
    var validGroups = true;
    for (i = 0;  i < checkStr.length;  i++)
    {
      ch = checkStr.charAt(i);
      for (j = 0;  j < checkOK.length;  j++)
        if (ch == checkOK.charAt(j))
          break;
      if (j == checkOK.length)
      {
        allValid = false;
        break;
      }
    }
    if (!allValid)
    {
      alert("Bitte geben Sie nur Buchstaben, Ziffern und \"_.-@\" Zeichen in das Feld \"Empfänger e-Mail Adresse\" ein.");
      theForm.recipientemail.focus();
      return (false);
    }
    return (true);
  }

//-->
