var http_request = false; var ziel=''; var waitingforresponse=0; var aktiveuntererkrankung='-1'; var oldlengthinputbox=0; var oldlengthstichwortbox=0; var x = 0; var y = 0; var zielpopup=''; ns4 = (document.layers)? true:false ie4 = (document.all)? true:false if (ie4) { if (navigator.userAgent.indexOf('MSIE 5')>0) { ie5 = true; } else { //IE6 ist mit IE5 gleichzusetzen if (navigator.userAgent.indexOf('MSIE 6')>0) { ie5 = true; } else { ie5 = false; } } } else { ie5 = false; } document.onmousemove = mausmove; //Funktion zum Verstecken von Elementen //ziel ist id-Attribut des Elements function hide(ziel) { if (document.getElementById&&document.getElementById(ziel)) document.getElementById(ziel).style.display = "none"; } function show(ziel) { if (document.getElementById&&document.getElementById(ziel)) document.getElementById(ziel).style.display = "block"; } //PLZ-Auflistung verstecken, wenn L?e>=5 //ziel ist Elementid des PLZ-Listen-Fensters //quelle ist Elementid der PLZ-Inputbox function hideifplzcomplete(ziel,quelle) { if(document.getElementById) { //alert(ziel); var teststring=document.getElementById(quelle).value; if (teststring.length==0) { document.getElementById(ziel).style.display='none'; if (document.getElementById('search_fachabteilung')) document.getElementById('search_fachabteilung').style.display='block'; return true; } if (teststring.length==5) { if (document.getElementById('search_fachabteilung')) document.getElementById('search_fachabteilung').style.display='block'; } if (teststring.charAt(0)>="0"&&teststring.charAt(0)<="9") { //alert(teststring.charAt(0)); if (teststring.length >= 5) { //alert(document.getElementById(ziel).style.display); document.getElementById(ziel).style.display='none'; } } else { //alert(document.getElementById('hiddenplzortcompleted')); if (document.getElementById('hiddenplzortcompleted')) { document.getElementById(ziel).style.display='none'; if (document.getElementById('search_fachabteilung')) document.getElementById('search_fachabteilung').style.display='block'; } } } } function hideallpopups() { document.getElementById('popup0').style.display = "none";document.getElementById('popup1').style.display = "none";document.getElementById('popup2').style.display = "none";document.getElementById('popup3').style.display = "none";document.getElementById('popup4').style.display = "none";document.getElementById('popup5').style.display = "none";document.getElementById('popup6').style.display = "none";document.getElementById('popup7').style.display = "none";document.getElementById('popup8').style.display = "none";document.getElementById('popup9').style.display = "none";document.getElementById('popup10').style.display = "none";document.getElementById('popup11').style.display = "none";document.getElementById('popup12').style.display = "none";document.getElementById('popup13').style.display = "none";document.getElementById('popup14').style.display = "none";document.getElementById('popup15').style.display = "none";document.getElementById('popup16').style.display = "none";document.getElementById('popup17').style.display = "none";} //Ein unsichtbares element an einer bestimmten position sichtbar machen //popupid ist Elementid des unsichtbaren Elements //links ist der abstand von Links in px //oben ist der Abstand von Oben in px function showPopup(popupid,links,oben) { var aktiv; hideallpopups(); if(document.getElementById) { document.getElementById('popup' + popupid).style.left=links + 'px'; document.getElementById('popup' + popupid).style.top=oben + 'px'; document.getElementById('popup' + popupid).style.display = "block"; } } function copydivinhalt(divquelle,divziel,showdiv) { aktiv = window.setTimeout("verzoegerteanzeige('" + divquelle + "','" + divziel + "','" + showdiv+ "')",400); hide('search_fachabteilung'); } function showSelect(ziel) { if (document.getElementById&&document.getElementById(ziel)) document.getElementById(ziel).style.display = "block"; } function showUnterErkrankungen(nummer) { if(document.getElementById) { if (aktiveuntererkrankung!='-1') document.getElementById(aktiveuntererkrankung).style.display = "none"; if (aktiveuntererkrankung=='untererkrankungenauswahl_liste' + nummer) { document.getElementById('untererkrankungenauswahl_liste' + nummer).style.display = "none"; aktiveuntererkrankung=-1; } else { document.getElementById('untererkrankungenauswahl_liste' + nummer).style.display = "block"; aktiveuntererkrankung='untererkrankungenauswahl_liste' + nummer; } } } function verzoegerteanzeige2(divziel) { if(document.getElementById) { document.getElementById(showziel).style.display='block'; } } function verzoegerteanzeige(divquelle,divziel,showdiv) { if(document.getElementById) { document.getElementById(divziel).innerHTML=document.getElementById(divquelle).innerHTML; document.getElementById(showdiv).style.display='block'; } } //Das Fenster mit der Liste von Kliniken anzeigen function showKlinikPopup() { if(document.getElementById) { document.getElementById('kliniken_popup').style.display = "block"; } } //Die PLZ-Auswahl-Liste anzeigen function showPlzListe() { if(document.getElementById) { document.getElementById('plzliste_popup').style.display = "block"; } } function showStichworteListe() { if(document.getElementById) { document.getElementById('stichworte_popup').style.display = "block"; } } function karte_hide() { if(document.getElementById) document.getElementById("karte").style.display = "none"; } function karte_show() { if(document.getElementById) document.getElementById("karte").style.display = "block"; showAddress(""); } function fillStichworteListe(inputfeld,liste) { var teststring=document.getElementById(inputfeld).value; if (oldlengthstichwortbox!=teststring.length) { if (teststring.length>0) { filldiv(liste,'matching_search_words.php?search_stichwort=' + teststring); } oldlengthstichwortbox=document.getElementById(inputfeld).value.length; } } function fillplzorort(plz_inputfeld,plzort_liste) { var teststring=document.getElementById(plz_inputfeld).value; if (oldlengthinputbox!=teststring.length) { if (!isNaN(teststring)&&teststring.length>0) { document.getElementById(plz_inputfeld).value=parseInt(teststring); filldiv(plzort_liste,'plzliste.php?plz=' + teststring); } else if (teststring.length>0) { if(isNaN(parseInt(teststring))) { document.getElementById(plz_inputfeld).value=teststring.substr(1,teststring.length-1); } else document.getElementById(plz_inputfeld).value=parseInt(teststring); } else { document.getElementById(plz_inputfeld).value=teststring.substr(1,teststring.length-1); } oldlengthinputbox=document.getElementById(plz_inputfeld).value.length; } } //Hilfsfunktion die nach erfolgreicher Abfrage das zielelement mit den zurückgelieferten Daten füllt function alertContents() { if (http_request.readyState == 4) { if (http_request.status == 200) { document.getElementById(ziel).innerHTML=http_request.responseText; } else { alert('There was a problem with the request.'); } } waitingforresponse=0; } //Das Ziel-Element mit der Anfrage an eine Datei f? //zieldiv ist Elementid des zu f?en elements //url ist der Pfad zu der bef?en Datei function filldiv(zieldiv,pfad,parameter) { waitingforresponse=1; http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideMimeType('text/html'); } } else if (window.ActiveXObject) { // IE try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { } } } if (!http_request) { alert('Giving up :( Cannot create an XMLHTTP instance'); return false; } ziel=zieldiv; http_request.onreadystatechange = alertContents; if (typeof(parameter)!="undefined") { http_request.open('GET', pfad + parameter, true); //escape() } else http_request.open('GET', pfad, true); http_request.send(null); } function navIn(objekt) { objekt.style.backgroundColor="#CCE6F6"; } function navOut(objekt) { objekt.style.backgroundColor=""; } function navInId(ziel) { document.getElementById(ziel).style.backgroundColor="#CCE6F6"; } function navOutId(ziel) { document.getElementById(ziel).style.backgroundColor=""; } function toggle(ziel) { if (document.getElementById&&document.getElementById(ziel)) { if (document.getElementById(ziel).style.display!='block') document.getElementById(ziel).style.display='block'; else document.getElementById(ziel).style.display = "none"; } } function pop_open(ziel) { return pop_open_pos(ziel,450,20); } function pop_open_pos(ziel,xdiff,ydiff) { zielpopup=ziel; if (document.getElementById) { if (document.getElementById(ziel)) { wertx=(x - xdiff); werty=(y - ydiff); document.getElementById(ziel).style.left = wertx + "px"; document.getElementById(ziel).style.top = werty + "px"; } } else if (document.all) { document.all[ziel].style.left = x; document.all[ziel].style.top = y; } show(ziel); } function pop_open_news(ziel) { zielpopup=ziel; if (document.getElementById) { if (document.getElementById(ziel)) { wertx=(x - 630); werty=(y -20); document.getElementById(ziel).style.left = wertx + "px"; document.getElementById(ziel).style.top = werty + "px"; } } else if (document.all) { document.all[ziel].style.left = x; document.all[ziel].style.top = y; } show(ziel); } function pop_open_map(ziel) { zielpopup=ziel; if (document.getElementById) { if (document.getElementById(ziel)) { wertx=(x - 20); werty=(y + 10); document.getElementById(ziel).style.left = wertx + "px"; document.getElementById(ziel).style.top = werty + "px"; } } else if (document.all) { document.all[ziel].style.left = x; document.all[ziel].style.top = y; } show(ziel); } function pop_close(ziel) { hide(ziel); zielpopup=''; } function mausmove (Ereignis) { var wert_left,wert_top; if (!Ereignis) Ereignis = window.event; x = Ereignis.pageX; y = Ereignis.pageY; wert_left = (x - 400) + "px"; wert_top = y + "px"; } function Bildwechsel(Bildnr,Bildobjekt) { if (document.getElementById(Bildnr)) { //alert("Wechsel von " + Bildnr + " auf " + Bildobjekt.src); document.getElementById(Bildnr).src = Bildobjekt.src; } else alert(Bildnr + " existiert nicht!"); } function formularAbschicken(formularName) { document.forms[formularName].submit(); } function ladeKartenBilder() { Normal1 = new Image(); Normal1.src = "images/karte_gesamt.jpg"; Highlight1 = new Image(); Highlight1.src = "images/karten_over/Karte_Bonn.jpg"; Highlight2 = new Image(); Highlight2.src = "images/karten_over/Karte_Duesseldorf.jpg"; Highlight3 = new Image(); Highlight3.src = "images/karten_over/Karte_Duisburg.jpg"; Highlight4 = new Image(); Highlight4.src = "images/karten_over/Karte_Dueren.jpg"; Highlight5 = new Image(); Highlight5.src = "images/karten_over/Karte_Essen.jpg"; Highlight6 = new Image(); Highlight6.src = "images/karten_over/Karte_Euskirchen.jpg"; Highlight7 = new Image(); Highlight7.src = "images/karten_over/Karte_Heinsberg.jpg"; Highlight8 = new Image(); Highlight8.src = "images/karten_over/Karte_Kleve.jpg"; Highlight9 = new Image(); Highlight9.src = "images/karten_over/Karte_Koeln.jpg"; Highlight10 = new Image(); Highlight10.src = "images/karten_over/Karte_Krefeld.jpg"; Highlight11 = new Image(); Highlight11.src = "images/karten_over/Karte_KreisAachen.jpg"; Highlight12 = new Image(); Highlight12.src = "images/karten_over/Karte_Leverkusen.jpg"; Highlight13 = new Image(); Highlight13.src = "images/karten_over/Karte_Mettmann.jpg"; Highlight14 = new Image(); Highlight14.src = "images/karten_over/Karte_Muenster.jpg"; Highlight15 = new Image(); Highlight15.src = "images/karten_over/Karte_Neuss.jpg"; Highlight16 = new Image(); Highlight16.src = "images/karten_over/Karte_Oberbergisch.jpg"; Highlight17 = new Image(); Highlight17.src = "images/karten_over/Karte_Remscheid.jpg"; Highlight18 = new Image(); Highlight18.src = "images/karten_over/Karte_Rheinberg.jpg"; Highlight19 = new Image(); Highlight19.src = "images/karten_over/Karte_RheinErft.jpg"; Highlight20 = new Image(); Highlight20.src = "images/karten_over/Karte_RheinSieg.jpg"; Highlight21 = new Image(); Highlight21.src = "images/karten_over/Karte_Solingen.jpg"; Highlight22 = new Image(); Highlight22.src = "images/karten_over/Karte_StadtAachen.jpg"; Highlight23 = new Image(); Highlight23.src = "images/karten_over/Karte_Viersen.jpg"; Highlight24 = new Image(); Highlight24.src = "images/karten_over/Karte_Wesel.jpg"; Highlight25 = new Image(); Highlight25.src = "images/karten_over/Karte_Wuppertal.jpg"; Highlight26 = new Image(); Highlight26.src = "images/karten_over/Karte_mGladbach.jpg"; Highlight27 = new Image(); Highlight27.src = "images/karten_over/Karte_Muehlheim.jpg"; } function wechselKalender(datum) { filldiv("kalender","kalender.php?datum=" + datum); }