<!--


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

/**
 * Hilfsfunktionen fuer das Suchformular
 * Version 1.0 / Erstellt am 19.10.2003 von Patrick Fischer (www.patfisch.de)
 */

/* Setzt die select-box zur Auswahl des Orts auf den ersten (leeren) Menuepunkt */
function selectNoPlace() {
 document.suche.ortid.selectedIndex=0;
}

/* Loescht den Wert im Feld fuer die Postleitzahl */
function clearZip() {
 document.suche.plz.value='';
}

/* Evaluiert den Wert im Postleitzahl-Feld */
function evalZip() {
 val=document.suche.plz.value;
 if (!val.match(/^[0-9]*$/)) {
  alert("Bitte geben Sie in das Feld fuer die Postleitzahl eine Zahl ein!");
  document.suche.plz.value='';
  document.suche.plz.focus();
 }
}

/* Schickt das Suchformular ab */
function submitForm() {
 if (document.suche.plz.value=='' && document.suche.ortid.selectedIndex==0) {
  alert("Bitte wählen Sie eine Stadt aus oder geben Sie eine Postleitzahl ein!");
  document.suche.ortid.focus();
 } else {
  document.suche.submit();
 }
}

//-->
