
onLoad=ieBlur();

/************* ieBlur() **************/

function ieBlur() {

	window.defaultStatus="Weserkraftwerk Bremen";

	if (document.images&&navigator.userAgent.indexOf("MSIE")!=-1){

		for (i=0;i<document.links.length;i++){

			target=eval("document.links[i]")
			target.onfocus=keinRahmen

		} // for

	} // if

} //

function keinRahmen(){

	obj=window.event.srcElement
	if (obj.tagName == "A"||obj.tagName=="AREA") obj.blur()

} // ieBlur


/************* fensterlein() **************/


function fensterlein(fUrl,fBreite,fHoehe) {

	ansicht = window.open(fUrl,"Bildansicht","width="+fBreite+",height="+fHoehe+",scrollbars=yes,toolbar=no,dependent=yes,resizable=no");
	ansicht.focus();

} // fensterlein


/************* fliptext() **************/

function fliptext(text) {

	window.status = text;
	return true;

} // fliptext


/************* getURL() **************/

function getURL(feld) {

	if (feld!="" && feld!="undefined") {

		url=document.formular[feld].options[document.formular[feld].options.selectedIndex].value;
		if (url!="" && url!="undefined") document.location.href=url;

	} // if feld

} // getURL




/************* getValues() **************/

function getValues(select_quelle,select_ziel){

	el=document.formular[select_quelle].options[document.formular[select_quelle].options.selectedIndex].value;

	if (arrValues[el]!="") {

		arrTmp = arrValues[el].split('#');

		document.formular[select_ziel].length = 0;
		document.formular[select_ziel].selectedIndex = 0;

		for (i=0;i<arrTmp.length;i++) {

			document.formular[select_ziel].length = i+1;
			document.formular[select_ziel].options[i].value = arrTmp[i].split('%')[0];
			document.formular[select_ziel].options[i].text = arrTmp[i].split('%')[1];

		} // for

	} else {

		document.formular[select_ziel].length = 0;
		document.formular[select_ziel].length = 1;
		document.formular[select_ziel].options[0].text ="Es wurden keine Werte gefunden.";
		document.formular[select_ziel].options[0].value ="";
		document.formular[select_ziel].selectedIndex = 0;

	} // else

	document.formular["branche"].focus();

} // getValues



/************* seitenanfang() **************/

function seitenanfang() {

	window.scrollTo(0,0);

} // function



/********** seitedrucken() **********/

function seitedrucken(){

	//if (!(navigator.platform.indexOf("Mac")!=-1 && navigator.appName.indexOf("Microsoft")!=-1)) {

	if (window.print) {

		window.print();

	} // if

} // function


/********** empfehlen() **********/

function empfehlen(session){

	url=encodeURIComponent(document.location.href);

	if (url!="" && url!="undefined") {

		buddy = window.open("seite_empfehlen.php?url="+url+"&"+session,"empfehlung","width=640,height=365,menubar=no,scrollbars=no,location=no,toolbar=no,ubar=no,resizable=yes,dependent=yes,top=200,left=100");
		buddy.focus();

	} // if

} // function


/************* schriftgroesse() **************/

function schriftgroesse(session) {

	optionen = window.open('seite_optionen.php?'+session,'options','width=300,height=300,resizable=no,menubar=no,dependent=yes,scrollbars=yes,top=200,left=100');
	optionen.focus();

} // function

/********** antidrecksmail **********/

arrEmails=new Array();
arrEmails["info"]="101/100/46/121/103/114/101/110/101/45/101/99/97/101/112/110/101/101/114/103/64/111/102/110/105/58/111/116/108/105/97/109";
arrEmails["steinecke"]="101/100/46/121/103/114/101/110/101/45/101/99/97/101/112/110/101/101/114/103/64/101/107/99/101/110/105/101/116/115/46/97/105/108/101/110/114/111/99/58/111/116/108/105/97/109";
arrEmails["hylla"]="101/100/46/121/103/114/101/110/101/45/101/99/97/101/112/110/101/101/114/103/64/97/108/108/121/104/46/101/110/110/97/115/117/115/58/111/116/108/105/97/109";
arrEmails["genossenschaft"]="101/100/46/121/103/114/101/110/101/45/101/99/97/101/112/110/101/101/114/103/64/116/102/97/104/99/115/110/101/115/115/111/110/101/103/58/111/116/108/105/97/109";
arrEmails["presse"]="101/100/46/121/103/114/101/110/101/45/101/99/97/101/112/110/101/101/114/103/64/101/115/115/101/114/112/58/111/116/108/105/97/109";
arrEmails["personal"]="101/100/46/121/103/114/101/110/101/45/101/99/97/101/112/110/101/101/114/103/64/108/97/110/111/115/114/101/112/58/111/116/108/105/97/109";

function revString(text) {

	if (text!="") {

		wert="";

		arrWert=text.split("/");

		for (i=arrWert.length-1;i>=0;i--) wert+=String.fromCharCode(eval(arrWert[i]));

		return wert;

	} // if

} // revString


function sendmail(linkID){

	if (arrEmails[linkID]!="undefined" && arrEmails[linkID]!="") document.getElementById(linkID).href=revString(arrEmails[linkID]);

} // eMail



/********** agb_open() **********/

function agb_open()
{
	agb = window.open('pk_agb_popup.php','agb','width=640,height=365,resizable=no,menubar=no,dependent=yes,scrollbars=yes,top=200,left=100');
	agb.focus();
}// agb_open


/************* killMyBox() **************/

function killMyBox() {

	if (top!=self) {

		top.hideLightbox();

	} else {

		history.back();

	} // else

} // killMyBox
