
function zurSideBar() {
if ((typeof window.sidebar == "object") &&
(typeof window.sidebar.addPanel == "function"))
{
window.sidebar.addPanel
("DRK Wasserwacht Halle",
"http://www.wasserwacht-halle.de/sidebar.htm","");
} else { var rv=window.confirm ("Funktion optimiert fuer Netscape 7 und hoeher." + "Wollen Sie aktualisieren?");
if (rv)
document.location.href = "http://home.netscape.com/download/index.html";
}}

function zurSideBar()
{ if ((window.sidebar) &&
(window.sidebar.addPanel))
{ try {
window.sidebar.addPanel (
"DRK Wasserwacht Halle",
"http://www.wasserwacht-halle.de/sidebar.htm","");
}
catch (e) {
alert ('Ein Fehler trat auf. Das liegt vermutlich daran, dass die SideBar geschlossen war. Der Fehler ist bekannt. Bitte versuchen Sie es erneut mit dem Link. Dann müsste es klappen.');
}
} else { 
var rv = window.confirm ("Funktion optimiert für Netscape 7 und höher. Wollen Sie aktualisieren?");
if (rv)
document.location.href = "http://home.netscape.com/download/index.html";
}}




function WertHolen() {
 var Wert = "";
 if(document.cookie) {
  var Wertstart = document.cookie.indexOf("=") + 1;
  var Wertende = document.cookie.indexOf(";");
  if (Wertende == -1)
   Wertende = document.cookie.length;
  Wert = document.cookie.substring(Wertstart,Wertende);
 }
 return Wert;
}

function WertSetzen(Bezeichner, Wert, Verfall) {
 var jetzt = new Date();
 var Auszeit = new Date(jetzt.getTime() + Verfall);
 document.cookie = Bezeichner+"="+Wert+"; expires="+Auszeit.toGMTString()+";";
}

function Zaehlerstand() {
 var Verfallszeit = 1000*60*60*24*365;
 var Anzahl = WertHolen();
 var Zaehler = 0;
 if(Anzahl != "") Zaehler = parseInt(Anzahl);
 if(document.cookie) {
   Zaehler = Zaehler + 1;
   WertSetzen("Zaehler",Zaehler,Verfallszeit);
 }
 else {
   Zaehler = 1;
   WertSetzen("Zaehler",Zaehler,Verfallszeit);
 }
 return(Zaehler);
}



function picture_popup(img_tag,js_width,js_height,js_bu, js_copyright) {

s_source1 = /#§#/g;
s_source2 = /#%#/g;
s_replace1 = "'";
s_replace2 = '"';
js_bu=js_bu.replace(s_source1, s_replace1);
js_bu=js_bu.replace(s_source2, s_replace2);
win_width = parseInt(js_width)+22;
win_height = parseInt(js_height)+165;

js_popup=window.open('','','width='+win_width+',height='+win_height+',left=100,top=100,scrollbars=no,buttons=no,statusbar=no,location=no,resizable=no');
js_popup.document.writeln('<html><head><meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"><title>Bilder&nbsp;Galerie</title>');
var js_block = '<';
js_block = js_block + 'script language="JavaScript">var vers = navigator.appVersion; vers = vers.substring(0,1);baba=5; if (vers <= 4 && navigator.appName=="Netscape") {document.write("<link rel=stylesheet type=text/css href=window.css")';
js_block = js_block + ';} ';
js_block = js_block + ' else {document.write("<link rel=stylesheet type=text/css href=http://w381ee4vm.homepage.t-online.de/css/window.css>")';
js_block = js_block + ';} ';
js_block = js_block + '</scr';
js_block = js_block + 'ipt>';
js_popup.document.writeln(js_block);
js_popup.document.writeln('</head> <body OnBlur="self.close()" bgcolor="#ffffff" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">');
js_popup.document.writeln('<table border="0" cellpadding="0" cellspacing="0"  valign=top width="'+js_width+'"><tr><td class=show height=30 colspan=5>&nbsp;www.wasserwacht-halle.de<td></tr><tr><td height="4" colspan="6"><!img src="/IS/spacer.gif" width="8" height="1" border="0"></td></tr><!-- Bildansicht + Fenster schliessen //--><tr class="gr1"><td width="10" height="19"><br></td><td height="19" colspan="2" class="gr1"><div class=show></div></td><td height="19" colspan="2" align="right"><table cellpadding="" cellspacing="" border="0"><tr><td width="23"><a href="javascript:window.close();" class="lc"></a></td><td><a href="javascript:window.close();" class="lc">Fenster&nbsp;schließen&nbsp;</a></td></tr></table></td><td height="19"><br></td></tr><!-- Abstand 8 Pixel zum Bild mit einigen FestzurrGIFs //--><tr><td width="10" rowspan="6"><img src="/IS/spacer.gif" width="8" height="1" border="0"></td><td height="4" width="4"></td><td height="4" width="332"><img src="/IS/spacer.gif" width="1" height="4" border="0"><img src="/IS/spacer.gif" width="100" height="1" border="0"></td><td height="4"><img src="/IS/spacer.gif" width="30" height="1" border="0"></td><td height="4" width="100"><img src="/IS/spacer.gif" width="100" height="1" border="0"></td><td rowspan="6"><img src="/IS/spacer.gif" width="8" height="1" border="0"></td></tr>');
js_popup.document.writeln('<!-- Bild //--><tr><td colspan="4" align="center" valign="middle"><img src="'+img_tag+'" width="'+js_width+'" height="'+js_height+'" border="0"></td></tr><!-- Bildunterschrift + Quellenangabe , grau //--><tr><td colspan="4" height="4" class="gr1"><img src="/IS/spacer.gif" width="1" height="4" border="0"></td></tr><tr><td class="grl" colspan="4"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="bild" width="4" height="20"><img src="/IS/spacer.gif" width="4" height="1" border="0"></td><td class="bild" width="100%" height="20" valign=top>' + js_bu + '</td><td align="right" class="bild"  height="20" bgcolor="#666666" width="100" valign=top>&nbsp;&nbsp;Foto:&nbsp;'+js_copyright+'&nbsp;</td></tr></table></td></tr><tr><td height="4" colspan="4" class="gr1"><img src="/IS/spacer.gif" width="1" height="4" border="0"></td></tr></table></body></html>');
js_popup.resizeTo(win_width, win_height);
js_popup.focus();

}



function termin_popup(title,tag,zeit,treff,ort,bemerk,name,mail,js_width,js_height) {


win_width = parseInt(js_width)+8;
win_height = parseInt(js_height)+55;

js_popup=window.open('','','width='+win_width+',height='+win_height+',left=250,top=150,scrollbars=no,buttons=no,statusbar=no,location=no,resizable=no');
js_popup.document.writeln('<html><head><meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"><title>Termine&nbsp;Wasserwacht&nbsp;Halle</title>');
var js_block = '<';
js_block = js_block + 'script language="JavaScript">var vers = navigator.appVersion; vers = vers.substring(0,1);baba=5; if (vers <= 4 && navigator.appName=="Netscape") {document.write("<link rel=stylesheet type=text/css href=css/window.css")';
js_block = js_block + ';} ';
js_block = js_block + ' else {document.write("<link rel=stylesheet type=text/css href=css/window.css>")';
js_block = js_block + ';} ';
js_block = js_block + '</scr';
js_block = js_block + 'ipt>';
js_popup.document.writeln(js_block);
js_popup.document.writeln('</head> <body OnBlur="self.close()" bgcolor="#ffffff" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">');
js_popup.document.writeln('<table border="0" cellpadding="3" cellspacing="0" width="474"><tr><td class=title height=20 colspan=2>'+title+'<td></tr><tr><td class=text width=120><b>Tag, Datum</b></td><td class=text width=330>'+tag+'</td></tr><tr><td class=texta><b>Zeit</b></td><td class=texta>'+zeit+'</td></tr><tr><td class=text><b>Treff</b></td><td class=text>'+treff+'</td></tr><tr><td class=texta><b>Ort</b></td><td class=texta>'+ort+'</td></tr><tr><td height=80 valign=top class=text><b>Bemerkung</b></td><td valign=top class=text>'+bemerk+'</td></tr><tr><td class=texta><b>Ansprechpartner</b></td><td class=texta>'+name+'</td></tr><tr><td class=text><b>e-Mail</b></td><td class=text>'+mail+'</td></tr><tr><td colspan=2 height=16></td></tr><tr><td colspan=2 align=right><a href="javascript:window.close();" class="lc"><u>Fenster&nbsp;schliessen</u></a>&nbsp;</td></tr></table>');
js_popup.document.writeln('</body></html>');
js_popup.resizeTo(win_width, win_height);
js_popup.focus();

}

