function start_loading(){
	document.getElementById("is_loading").style.visibility = "visible";
}
function stop_loading(){
	document.getElementById("is_loading").style.visibility = "hidden"; 
}

function toggle_element(id,counter){
	var element_img=document.getElementById('img_'+id);
	if(element_img.src.indexOf('closed')>-1){
		element_img.src='images/element_opened.gif';
		for(i=0;i<counter;i++){
			if(document.getElementById(id+"_"+i)){
				var element=document.getElementById(id+"_"+i);
				element.style.display='';
			}
		}
		if(id=="schnellsuche"){
			var element=document.getElementById('schnellsuche');
			var element_txt=document.getElementById('txt_'+id);
			var element_hits=document.getElementById('hits_'+id);
			if(element_hits.innerHTML.indexOf('Treffer')>-1) element_txt.innerHTML='<a style="font-size:8pt;color:#c42731;text-decoration:none;" onclick="javascript:toggle_element(\'schnellsuche\',\'1\');" href="javascript:;">&raquo; anzeigen</a>';
			element.style.display='';
		}
	}
	else{
		element_img.src='images/element_closed.gif';
		for(i=0;i<counter;i++){
			if(document.getElementById(id+"_"+i)){
				var element=document.getElementById(id+"_"+i);
				element.style.display='none';
			}
		}
		if(id=="schnellsuche"){
			var element=document.getElementById('schnellsuche');
			var element_txt=document.getElementById('txt_'+id);
			var element_hits=document.getElementById('hits_'+id);
			if(element_hits.innerHTML.indexOf('Treffer')>-1) element_txt.innerHTML='<a style="font-size:8pt;color:#c42731;text-decoration:none;" onclick="javascript:toggle_element(\'schnellsuche\',\'1\');" href="javascript:;">&raquo; Suche ändern</a>';
			element.style.display='none';
		}
	}
}

var mausposition=new Array();
var description="";

function detectbrowser(){
   bname=navigator.appName
   var browser="other"
   if (bname.indexOf("Netscape")!=-1)   browser="netscape";
   if (bname.indexOf("Microsoft")!=-1)    browser="explorer";
   if (navigator.userAgent.indexOf("Opera") > -1) browser="opera";
   return browser;
  
}

document.onmouseover=subcontrol;

function subcontrol(Ereignis){
	if (window.netscape){
		mausposition["x"]=Ereignis.pageX;
		mausposition["y"]=Ereignis.pageY;
	}
	else{
		if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
			mausposition["x"]=window.event.clientX+document.body.scrollLeft;
			mausposition["y"]=window.event.clientY+document.body.scrollTop;
		}
		else{
			mausposition["x"]=window.event.clientX+document.documentElement.scrollLeft;
			mausposition["y"]=window.event.clientY+document.documentElement.scrollTop;
		}
	}
	var fenster_mitte_x=document.documentElement.clientWidth/2;
	var fenster_mitte_y=document.documentElement.clientHeight/2;
	if(mausposition["x"]>=fenster_mitte_x+document.documentElement.scrollLeft){
		if(description=="image_zoom") document.getElementById('div_description').style.left=mausposition["x"]-250+'px';
		else document.getElementById('div_description').style.left=mausposition["x"]-350+'px';
	}
	else{
		if(description=="image_zoom") document.getElementById('div_description').style.left=mausposition["x"]+50+'px';
		else document.getElementById('div_description').style.left=mausposition["x"]+30+'px';
	}
	if(mausposition["y"]>=fenster_mitte_y+document.documentElement.scrollTop){
		if(description=="image_zoom") document.getElementById('div_description').style.top=mausposition["y"]-250+'px';
		else document.getElementById('div_description').style.top=mausposition["y"]-150+'px';
	}
	else{
		if(description=="image_zoom") document.getElementById('div_description').style.top=mausposition["y"]+50+'px';
		else document.getElementById('div_description').style.top=mausposition["y"]+30+'px';
	}
}

function getDescriptionContents(description){
  var contents='';
  if(description=="image_zoom")
  contents='<table style="border:1px solid #696969;background-image: url(images/loading.gif); background-repeat: no-repeat; background-position: center center;" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><table border="0" cellspacing="0" cellpadding="0">\
          <tr>\
            <td height="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">\
                <tr>\
                  <td><span class="h07"><b id="image_zoom_text"></b></span></td>\
                  <td width="10"></td>\
                  <td align="right"><span class="h07"><b id="image_zoom_text1"></b></span></td>\
                </tr>\
              </table></td>\
          </tr>\
          <tr>\
            <td height="3"></td>\
          </tr>\
          <tr>\
            <td><span id="image_zoom_picture"></span> </td>\
          </tr>\
        </table></td>\
    </tr>\
  </table>';
  else if(description=="star_description_private_1")
  contents='<table style="border:1px solid #696969;" width="350" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Ferienh&auml;user, Ferienwohnungen und Privatzimmer<br />\
        mit 1 Stern</b></span><br />\
        <hr />\
        <font color="#696969"><b>F</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><font color="#696969"><b> / P</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><span class="h07"><br />\
        Einfache und zweckm&auml;&szlig;ige Gesamtausstattung des Objektes mit einfachem Komfort. Die erforderliche Grundausstattung ist vorhanden und in gebrauchsf&auml;higem Zustand. Altersbedingte Abnutzungserscheinungen sind m&ouml;glich, insgesamt ist der Wohnkomfort ausreichend.<br />\
        </span>\
        <hr />\
        <span class="h07">Quelle: Deutscher Tourismusverband (DTV)</span><br />\
      </td>\
    </tr>\
  </table>';
  else if(description=="star_description_private_2")
  contents='<table style="border:1px solid #696969;" width="350" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Ferienh&auml;user, Ferienwohnungen und Privatzimmer<br />\
        mit 2 Sternen</b></span><br />\
        <hr />\
        <font color="#696969"><b>F</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><font color="#696969"><b> / P</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><span class="h07"><br />\
        Zweckm&auml;&szlig;ige und gute Gesamtausstattung mit mittlerem Komfort. Die Ausstattung ist in gutem Erhaltungszustand. Die Funktionalit&auml;t steht im Vordergrund.<br />\
        </span>\
        <hr />\
        <span class="h07">Quelle: Deutscher Tourismusverband (DTV)</span><br />\
      </td>\
    </tr>\
  </table>';
  else if(description=="star_description_private_3")
  contents='<table style="border:1px solid #696969;" width="350" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Ferienh&auml;user, Ferienwohnungen und Privatzimmer<br />\
        mit 3 Sternen</b></span><br />\
        <hr />\
        <font color="#696969"><b>F</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><font color="#696969"><b> / P</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><span class="h07"><br />\
        Gute und wohnliche Gesamtausstattung mit gutem Komfort. Ausstattung von besserer Qualit&auml;t. Optisch ansprechender Gesamteindruck wobei auf Dekoration und Wohnlichkeit Wert gelegt wird.<br />\
        </span>\
        <hr />\
        <span class="h07">Quelle: Deutscher Tourismusverband (DTV)</span><br />\
      </td>\
    </tr>\
  </table>';
  else if(description=="star_description_private_4")
  contents='<table style="border:1px solid #696969;" width="350" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Ferienh&auml;user, Ferienwohnungen und Privatzimmer<br />\
        mit 4 Sternen</b></span><br />\
        <hr />\
        <font color="#696969"><b>F</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><font color="#696969"><b> / P</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><span class="h07"><br />\
        Hochwertige Gesamtausstattung mit gehobenem Komfort. Ausstattung in gehobener und gepflegter Qualit&auml;t. Aufeinander abgestimmter optischer Gesamteindruck von Form und Materialien. Lage und Infrastruktur des Hauses gen&uuml;gen gehobenen Anspr&uuml;chen.<br />\
        </span>\
        <hr />\
        <span class="h07">Quelle: Deutscher Tourismusverband (DTV)</span><br />\
      </td>\
    </tr>\
  </table>';
  else if(description=="star_description_private_5")
  contents='<table style="border:1px solid #696969;"width="350"  border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Ferienh&auml;user, Ferienwohnungen und Privatzimmer<br />\
        mit 5 Sternen</b></span><br />\
        <hr />\
        <font color="#696969"><b>F</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><font color="#696969"><b> / P</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><span class="h07"><br />\
        Erstklassige Gesamtausstattung mit besonderen Zusatzleistungen im Servicebereich und herausragende Infrastruktur des Objekts. Gro&szlig;z&uuml;gige Ausstattung in besonderer Qualit&auml;t. Sehr gepflegter und exklusiver Gesamteindruck mit allem technischen Komfort, der das Objekt selbst und die Umgebung mit einschlie&szlig;t. Sehr guter Erhaltungs- und Pflegezustand.<br />\
        </span>\
        <hr />\
        <span class="h07">Quelle: Deutscher Tourismusverband (DTV)</span><br />\
      </td>\
    </tr>\
  </table>';
  else if(description=="star_description_hotel_1")
  contents='<table style="border:1px solid #696969;" width="350" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Hotels, Gasth&ouml;fe und Pensionen<br />\
        mit 1 Stern</b></span><br />\
        <hr />\
        <img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><font color="#696969"><b> / G</b></font><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><span class="h07"><br />\
        <b>Tourist</b> Unterkunft; einfache und zweckm&auml;&szlig;ige Gesamtausstattung mit einfachem Komfort.<br />\
        <br />\
        </span><span class="h07">EZ 8 qm, DZ 12 qm.<br />\
        </span>\
        <hr />\
        <span class="h07">Quelle: Deutscher Tourismusverband (DTV)</span><br />\
      </td>\
    </tr>\
  </table>';
  else if(description=="star_description_hotel_2")
  contents='<table style="border:1px solid #696969;" width="350" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Ferienh&auml;user, Ferienwohnungen und Privatzimmer<br />\
        mit 5 Sternen</b></span><br />\
        <hr />\
        <font color="#696969"><b>F</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><font color="#696969"><b> / P</b></font><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern_privat.gif" alt="" width="10" height="10" border="0" hspace="2"/><span class="h07"><br />\
        Erstklassige Gesamtausstattung mit besonderen Zusatzleistungen im Servicebereich und herausragende Infrastruktur des Objekts. Gro&szlig;z&uuml;gige Ausstattung in besonderer Qualit&auml;t. Sehr gepflegter und exklusiver Gesamteindruck mit allem technischen Komfort, der das Objekt selbst und die Umgebung mit einschlie&szlig;t. Sehr guter Erhaltungs- und Pflegezustand.<br />\
        </span>\
        <hr />\
        <span class="h07">Quelle: Deutscher Tourismusverband (DTV)</span><br />\
      </td>\
    </tr>\
  </table>';
  else if(description=="star_description_hotel_3")
  contents='<table style="border:1px solid #696969;" width="350" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Hotels, Gasth&ouml;fe und Pensionen<br />\
        mit 3 Sternen</b></span><br />\
        <hr />\
        <img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><font color="#696969"><b> / G</b></font><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><span class="h07"><br />\
        <b>Komfort</b> Unterkunft; gute und wohnliche Gesamtausstattung mit gutem Komfort<br />\
        <br />\
        </span><span class="h07">EZ 14 qm, DZ 18 qm.<br />\
        </span>\
        <hr />\
        <span class="h07">Quelle: Deutscher Tourismusverband (DTV)</span><br />\
      </td>\
    </tr>\
  </table>';
  else if(description=="star_description_hotel_4")
  contents='<table style="border:1px solid #696969;" width="350" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Hotels, Gasth&ouml;fe und Pensionen<br />\
        mit 4 Sternen</b></span><br />\
        <hr />\
        <img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><font color="#696969"><b> / G</b></font><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><span class="h07"><br />\
        <b>First Class</b> Unterkunft; hochwertige Gesamtausstattung mit gehobenem Komfort.<br />\
        <br />\
        EZ 16 qm, DZ 24 qm<br />\
        </span>\
        <hr />\
        <span class="h07">Quelle: Deutscher Tourismusverband (DTV)</span><br />\
      </td>\
    </tr>\
  </table>';
  else if(description=="star_description_hotel_5")
  contents='<table style="border:1px solid #696969;" width="350" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Hotels, Gasth&ouml;fe und Pensionen<br />\
        mit 5 Sternen</b></span><br />\
        <hr />\
        <img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><font color="#696969"><b> / G</b></font><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><img src="images/stern.gif" alt="" width="10" height="10" border="0" hspace="2"/><span class="h07"><br />\
        <b>Luxus</b> Unterkunft; erstklassige Gesamtausstattung mit besonderen Zusatzleistungen im Servicebereich und herausragender Infrastruktur des Hauses.<br />\
        <br />\
        EZ 18 qm, DZ 25 qm<br />\
        </span>\
        <hr />\
        <span class="h07">Quelle: Deutscher Tourismusverband (DTV)</span><br />\
      </td>\
    </tr>\
  </table>';
  else if(description=="fewo_typ_description")
  contents='<table style="border:1px solid #696969;" width="350" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Ferienwohnungstypen</b></span><br />\
        <hr />\
        <img src="images/fewo_typ_a.gif" alt="" width="8" height="8" border="0" hspace="2"/><span class="h07">1-Zimmerwohnung, Schlafraum und Zimmer in einem<br />\
        <br />\
        </span><img src="images/fewo_typ_b.gif" alt="" width="8" height="8" border="0" hspace="2"/><span class="h07">2-Zimmerwohnung, 1 Wohnzimmer und 1 Schlafraum<br />\
        <br />\
        </span><img src="images/fewo_typ_c.gif" alt="" width="8" height="8" border="0" hspace="2"/><span class="h07">3-Zimmerwohnung, 1 Wohnzimmer und 2 Schlafr&auml;ume<br />\
        <br />\
        </span><img src="images/fewo_typ_d.gif" alt="" width="8" height="8" border="0" hspace="2"/><span class="h07">4-Zimmerwohnung, 1 Wohnzimmer und 3 Schlafr&auml;ume<br />\
        </span>\
        <hr />\
      </td>\
    </tr>\
  </table>';
  else if(description=="personen_description")
  contents='<table style="border:1px solid #696969;" width="250" border="0" cellspacing="0" cellpadding="5">\
    <tr>\
      <td class="star_description_td"><span class="h07"><b>Symbolerkl&auml;rung Anzahl Personen</b></span><br />\
        <hr />\
        <span class="h07">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F&uuml;r x Personen<br />\
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bis max. y Personen<br />\
        &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<br />\
        x <img src="images/personen.gif" alt="" width="15" height="15" border="0" hspace="2"/>(y)<br />\
        </span>\
        <hr />\
      </td>\
    </tr>\
  </table>';
  return contents;
}

function reset_schnellsuche(which){
	if(which=="suche") document.getElementById("schnellsuche").elements["suche"].value="";
	else{
		var selectFields=Array("landkreis","region","ort","betriebsart","zimmerart","ortsteil","personen","preis","sortierung");
		var checkBoxFields=Array("familienfreundlich","wanderfreundlich","fahrradfreundlich","motorradfreundlich","behindertenfreundlich","allergikerfreundlich","nichtraucherfreundlich","hundefreundlich","Wellness","Eigener Pool","Balkon/Terasse","TV / Sat, Kabel","Internetzugang","Geschirrspüler","Wäscheservice","Waschmaschine");
		for(i=0;i<selectFields.length;i++){
			document.getElementById("schnellsuche").elements[selectFields[i]].selectedIndex=0;
		}
		for(i=0;i<checkBoxFields.length;i++){
			document.getElementById("schnellsuche").elements["details["+checkBoxFields[i]+"]"].checked=false;
		}
	}
	if(which=="all") document.getElementById("schnellsuche").elements["suche"].value="";
}

function showPiktoText(which,text){
	document.getElementById("piktoText_"+which).innerHTML=text;
}

function hidePiktoText(which){
	document.getElementById("piktoText_"+which).innerHTML="&nbsp;";
}

function parseURL(url) {
	var REGEX = /^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/;
	
	var fields = {'href': 0, 'username' : 4, 'password' : 5, 'port' : 7, 'protocol' : 2, 'host' : 6, 'hostname' : 6, 'pathname' : 8, 'search' : 9, 'hash' : 10};
	var result = new Object();
	var r = REGEX.exec(url);
	
	for (var field in fields) {
		result[field] = r[fields[field]];
	}
	
	result.hash = result.hash?'#' + result.hash:'#';
	result.search = result.search?'?' + result.search:'?';
	result.username = result.username?result.username:'';
	result.password = result.password?result.password:'';
	
	if (result.port == undefined) {
		switch (result.protocol) {
			case 'http':
				result.port = 80;
				break;
			case 'https':
				result.port = 443;
				break;
			case 'ftp':
				result.port = 21;
				break;
			default:
				result.port = '';
				break;
		}
	}
	
	return result;
};

var xmlHttp;

function notepad(action,LfdNr){
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null){
  		alert ("Your browser does not support AJAX!");
  		return;
  	}
	var url=document.location.protocol+"//www.schwarzwald-unterkuenfte.de/php/notepad.php";
	url=url+"?action="+action+"&LfdNr="+LfdNr;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged(){ 
	if (xmlHttp.readyState==4){
		var result=eval(xmlHttp.responseText);
		var notesCounter=result[0];
		var resultText=result[1];
		resultText=unescape(resultText);
		resultText=resultText.replace(/&Auml;/,"Ä");
		resultText=resultText.replace(/&auml;/,"ä");
		resultText=resultText.replace(/&Ouml;/,"Ö");
		resultText=resultText.replace(/&ouml;/,"ö");
		resultText=resultText.replace(/&Uuml;/,"Ü");
		resultText=resultText.replace(/&uuml;/,"ü");
		resultText=resultText.replace(/&szlig;/,"ß");
		resultText=resultText.replace(/&amp;/,"&");
		var link=document.getElementById("navi_merkliste");
		link.innerHTML="Merkliste ("+notesCounter+")";
		if(resultText!="") alert(resultText);
		if(resultText.indexOf('entfernt')>-1) location.reload();
	}
}

function GetXmlHttpObject(){
	var xmlHttp=null;
	try{
  		// Firefox, Opera 8.0+, Safari
  		xmlHttp=new XMLHttpRequest();
  	}
	catch (e){
  		// Internet Explorer
  		try{
    		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    	}
  		catch (e){
    		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    	}
  	}
	return xmlHttp;
}
