<!--

function get_ort_list( ort )
{
 document.getElementById('promptdiv2').style.display='block';
 document.getElementById('promptdiv2').innerHTML='<br /><br /><div align="center"><img src="/admin/img/sanduhr2.gif" border="0" /></div>';
 sendRequest( '/get_ort.php?search='+ort+'&pure=1', '', 0, 1);
}

function processData( xmlHttp, intID )
{
 switch (intID)
 {
  case 1:  write_ktl( xmlHttp.responseText ); break;
  default : alert('fehler !!!'); break;
 }
}

var search_plz = '';
var search_ort = '';

function write_ktl( strData )
{
   var scroll_to = 0;
	
   try {
      var strArr = strData.split("#<<|>>#");
	  
      throw strArr[1];
   } catch (e) {
	if (e>0)
	{ 
	 strData = strArr[0];
	 scroll_to = e;
	} 
   }
   
   strData = strData.replace(/\#\<\<\|\>\>\#/, "");

   var html  = '<h3>Bitte wählen</h3><a onClick="document.getElementById(\'promptdiv2\').style.display=\'none\';" href="#">Nicht an einem Ort suchen</a><br /><br />';
   html  = html + '<table border="0">';
   html  = html + '<tr><td>PLZ:</td><td><input type="text" id="search_plz" value="' + search_plz + '" size="4" class="form"  style="width:120px;" /></td></tr>';
   html  = html + '<tr><td colspan="2" align="left" style="font-size:xx-small;">mindestens 2 Ziffern</td></tr>';
   html  = html + '<tr><td>Ort:</td><td><input type="text" id="search_ort" value="' + search_ort + '" size="4" class="form" style="width:120px;" /></td></tr>';
   html  = html + '<tr><td>&nbsp;</td><td><input type="button" onClick="search_for_plz();" class="send" value="suchen" /></td></tr>';
   html  = html + '</table>';

   html  = html + '<br><hr><br>';

   html  = html + 'Umkreis Suche<br><table border="0">';
   html  = html + '<tr><td algin="left"><input type="text" value="Ort" onClick="if (this.value==\'Ort\') { this.value=\'\'; }" class="form" id="geos_adress" onChange="showLocation(\'promptdiv2\', 160);" onkeydown="if (event.keyCode==\'13\') { showLocation(\'promptdiv2\', 160); }" />';
   html  = html + '<div id="search_karte_block">';
   html  = html + '<span id="latnlon">&nbsp;</span>';
   html  = html + '<br />';
   html  = html + '<div id="search_karte" style="width:310px; height:314px">&nbsp;</div>';
   html  = html + '<select onChange="setUk()" id="geos_uk"  size="1" class="form" style="width:185px">';  
   html  = html + '<option value="1" >1 km</option>';
   html  = html + '<option value="2" >2 km</option>';
   html  = html + '<option value="3" >3 km</option>';
   html  = html + '<option value="5" selected="selected">5 km</option>';
   html  = html + '<option value="7" >7 km</option>';
   html  = html + '<option value="10" >10 km</option>';
   html  = html + '<option value="15" >15 km</option>';
   html  = html + '<option value="20" >20 km</option>';
   html  = html + '<option value="30" >30 km</option>';
   html  = html + '<option value="40" >40 km</option>';
   html  = html + '<option value="50" >50 km</option>';
   html  = html + '</select><br />';
   html  = html + '<input type="button" id="geos_submit" disabled="disabled" onClick="geos_goSearch()" class="send" value="suchen" />';
   html  = html + '</div></td></tr></table>';

   html  = html + '<br><hr><br>';

   document.getElementById('promptdiv2').innerHTML=html+strData;
   document.getElementById('promptdiv2').scrollTop = scroll_to;
   
   geos_initialize_map();
}

function search_for_plz()
{
 search_plz = document.getElementById('search_plz').value;
 search_ort = document.getElementById('search_ort').value;	
 
 sendRequest( '/get_ort.php?search_plz='+search_plz+'&search_ort='+search_ort+'&pure=1', '', 0, 1);
}

function set_ort( titel, id )
{
   document.getElementById('upl_displ').style.display='block';	
   document.getElementById('promptdiv2').style.display='none';
   document.location.href="/branchen_" + id + "_" + make_url_clean(titel) + ".html";
}

-->