<!--

// Funktion startet direkt aufgerufenen Seiten mit Rahmenansicht

if ( (self.location.pathname!="/page.php") && (self.location.pathname!="/search.php") && (self.location.pathname!="/galerie.php") && (self.location.pathname!="/sitemap.php") ) {

	page = self.location.pathname;

	weblicdat = page.indexOf("wTmp"); // wird Datei aus Weblication aufgerufen?

	if (weblicdat<0) {

		if (self.name != "DOMAINFRAME") window.top.location.href = '/index.php?page='+page;

		else {

			url = '/page.php?page='+page;

			self.location.replace(url);

		}

	}

}
/*
else if ((self.location.pathname=="/page.php") && (self.name!="DOMAINFRAME")) {

	page = self.location.search;

	url = '/'+page;

	top.location.replace(url);

}
*/


// Navigations- und Seitenaufruf

function showNavpoint(id, url){

	if(url != ""){

		self.location.href = "/page.php?page="+url+"&navid="+id;

//		self.location.href = url;

	}

}



// Funktion zum öffnen der Druckansicht im PopUp-Fenster

function drucken(page)

{

	url = "/druck.php?page="+page;

	window.open(url,'Druckansicht','width=480,height=550,scrollbars=yes,toolbar=no');

}



// Funktion zum öffnen eines Formulars, über das eine Seite versendet werden kann

function senden(page)

{

	url = "/send.php?page="+page;

	window.open(url,'Seitesenden','width=570,height=550,scrollbars=yes,toolbar=no');

}



// Funktion zum Bookmark setzen

function bookmark(page)

{

	bookmarkurl="http://www.stadtwerke-ebermannstadt.de/"+page;

	bookmarktitle=document.title;

	if (document.all) {

		window.external.AddFavorite(bookmarkurl,bookmarktitle)

	} else alert("STRG + D drücken"); 

}	



// Funktionen zum Aufruf von PopUp-Fenstern



function openFormcenter(service,email){

w=848;

h=650;

url="/formcenter.php?service="+service+"&email="+email;

popup = window.open(url, 'PopUp1', 'width='+w+',height='+h+',toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');

popup.resizeTo(w, h);

popup.focus();

}



function openGlossar() {

	openWin('http://www.gips-project.de/glossar/swe/index.html', 650, 400);

}

function openGlossar2() {

	openWin('http://www.energiewelten.de/elexikon/lexikon/index3.htm', 800, 500);

}



function PopUp(url,w,h)

{

h=h+70;

w=w+50;

popup = window.open(url, 'PopUp2', 'width='+w+',height='+h+',scrollbars=yes,resizable=yes');

popup.resizeTo(w, h);

popup.focus();

}

function openFoto(url,w,h){

popup = window.open(url, 'PopUp2', 'width='+w+',height='+h+',scrollbars=no,resizable=no,toolbar=no, menubar=no ');

}



function openWin(url,w,h){

w=w+30;

h=h+90;

popup = window.open(url, 'PopUp3', 'width='+w+',height='+h+',toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');

popup.resizeTo(w, h);

popup.focus();

}

function openGalerie(url,w,h){

w=w+30;

h=h+90;

popup = window.open(url, 'PopUp', 'width='+w+',height='+h+',toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');

popup.resizeTo(w, h);

popup.focus();

}



function openShop(artnr) {

url="/shop/warenkorb.php";

if (artnr!="") url="/shop/produkt.php?SHOPArtnr="+artnr;

popup = window.open(url, "PopUp4", "top=30,left=50,width=750,height=650,scrollbars=1,resizable=1,status=yes");

popup.focus();

}



// PopUp-Funktion für Routenplaner

function openRoute(url) {

popup = window.open(url,'Anfahrt','width=652,height=540,location=no,menubar=no,toolbar=no,status=no,scrollbars=yes');

}



// Bei IE für schöne Optik sorgen

function formOptik() {

	if (document.all) {

	 for (var _i=0; _i < document.forms[1].length; _i++) {

	  if ((document.forms[1].elements[_i].type=="button") || (document.forms[1].elements[_i].type=="submit") || (document.forms[1].elements[_i].type=="reset")) document.forms[1].elements[_i].className="formbutton";

  	  else if (document.forms[1].elements[_i].type!="hidden") document.forms[1].elements[_i].className="formfelder"; 

	 }

	}

}



// Navi neu positionieren bei Resize NS + IE

//	onresize=function(){menu.left = checkscreen();menu.showEntries();leftmenu.left = checkscreen2();leftmenu.showEntries();}





//-->


