<!--

// Dies Funktion erlaubt das Anzeigen eines Bildes in einem neuen Fenster
//

function PicWindow(locUrl,l,h,thumb) {
	
	var l=l+40;			// länge inkl Offset
	var h=h+70;			// höhe inkl Offset

	var Attr = 'directories=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, width='+l+', height='+h;

	var msg = '';

	if (msg.location && !msg.closed){
		msg.location.href = locUrl;
		alert(msg.location);
	}
	else {
		msg = window.open('','Show_Picture',Attr);
		if (!msg.opener) msg.opener = self;	}

	if (window.focus) {
		msg.focus(); }

//	msg= window.open('','msg', Attr);
	
	msg.document.write('<html>\n');
	msg.document.write('<head>\n');
        msg.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n');
	msg.document.write('<title>STV Eschenbach SG</title>\n');
	msg.document.write('<link rel="stylesheet" type="text/css" href="/style.css">\n');
	msg.document.write('</head>\n');
	msg.document.write('<table width=100% border="0">\n');
	msg.document.write('<tr align="center"><td>\n');
	msg.document.write('<a href="#" onClick="javascript:self.close();">');
	msg.document.write('<img border="0" name="picture" src="' + locUrl + '" alt="Schliessen">\n');
	msg.document.write('</a></td></tr>\n');
	msg.document.write('<tr align="center"><td>\n');
//	msg.document.write('<hr>\n');
	msg.document.write('<font style="font-family: Trebuchet MS; color: black; font-size: 8pt;">Auf das Bild klicken, um das Fenster zu <a href="#" onclick="javascript:self.close();"><font style="font-family: Trebuchet MS; color: black; font-size: 8pt; text-decoration:none;">schliessen</font></a></font>\n');
	msg.document.write('</td></tr>\n');
	msg.document.write('</table>\n');
	msg.document.write('</body>\n');
	msg.document.write('</html>\n');

}


function NewsWindow(Url, WinName, Attrib) {
	var newwindow = '';

	if (newwindow.location && !newwindow.closed)
	{
		newwindow.location.href = Url; }
	else {
		newwindow=window.open(Url,WinName,Attrib);
		if (!newwindow.opener) newwindow.opener = self;	}
	if (window.focus) {
		newwindow.focus(); }

}


function toFavorites() {
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
		var url="http://www.ktvt.ch";
		var title="Kreisturnverband Toggenburg";
		window.external.AddFavorite(url,title);
	}
}


function CurrentDate (){
	var now = new Date();
	var Day = now.getDate();
	var Month = now.getMonth() + 1;
	var Year = now.getFullYear();

	if (Day < 10) {
	  Day = '0' + Day;}
	if (Month < 10) {
	  Month = '0' + Month;}

	return(Day+'.'+Month+'.'+Year);
}


//-->


