/*fenster &ouml;ffnen f&uuml;r die sonderaktionen auf der homepage,
die ensprechende funktion fuer die promo-breite muss verlinkt werden*/

		var popup;
		var popup1;
		var popup2;
		var popup3;
		var popup4;

//fenster breite 400px
		function remote1 (htmldoc,windowname) {
			if (popup && popup.closed != true) {
				window.popup.close();
			}
			//neu eingefügt am 060713 wg. popupblocker, dann kann der onclick-aufruf in remoteX(this) umbenannt werden
			//aber erst, wenn alle aufrufe auf einmal geändert werden
			/*var url = (htmldoc.getAttribute) ? htmldoc.getAttribute('href') : htmldoc.href;*/			
  			if (!htmldoc) return true;
			
			if (document.layers){				popup=window.open(htmldoc,"popup","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=yes,width=400,height=527,left=391,top=135");
			} else {			
popup=window.open(htmldoc,"popup","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=no,width=400,height=527,left=391,top=135");
			}
			if (popup && !popup.creator) {
				popup.creator=self;
			}
			if (window.focus) {
				popup.focus();
			}
			
			//neu eingefügt am 060713 wg. popupblocker
			return  (popup) ? false : true;
		}

//fenster breite 300px		
		function remote2 (htmldoc,windowname) {
			if (popup1 && popup1.closed != true) {
				window.popup1.close();
			}
			
			//neu eingefügt am 060713 wg. popupblocker
			if (!htmldoc) return true;
			
			if (document.layers){
popup1=window.open(htmldoc,"popup1","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=yes,width=300,height=527,left=491,top=135");
			} else {			popup1=window.open(htmldoc,"popup1","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,width=300,height=527,left=491,top=135");
			}

			if (popup1 && !popup1.creator) {
				popup1.creator=self;
			}
			if (window.focus) {
				popup1.focus();
			}
			
			//neu eingefügt am 060713 wg. popupblocker
			return  (popup) ? false : true;
		}
		
		
//fenster breite 791px		
		function remote4 (htmldoc,windowname) {
		if (popup2 && popup2.closed != true) {
				window.popup2.close();
			}
			
		//neu eingefügt am 060713 wg. popupblocker
		if (!htmldoc) return true;
		
if (document.layers){				popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=yes,width=791,height=462,left=0,top=202");
			} else {	
popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=no,width=791,height=462,left=0,top=202");
			}

			if (popup2 && !popup2.creator) {
				popup2.creator=self;
			}
			if (window.focus) {
				popup2.focus();
			}
			
			//neu eingefügt am 060713 wg. popupblocker
			return  (popup) ? false : true;
		}
		
//fenster neu groß  - ostern06	
	function remote5 (htmldoc,windowname) {
		if (popup3 && popup3.closed != true) {
				window.popup3.close();
			}
			
		//neu eingefügt am 060713 wg. popupblocker
		if (!htmldoc) return true;
		
		
if (document.all){				popup3=window.open(htmldoc,"popup3","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=yes,width=787,height=567,left=0,top=90");
			} else {	
popup3=window.open(htmldoc,"popup3","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=no,width=791,height=570,left=0,top=90");
			}

			if (popup3 && !popup3.creator) {
				popup3.creator=self;
			}
			if (window.focus) {
				popup3.focus();
			}
			
			//neu eingefügt am 060713 wg. popupblocker
			return  (popup) ? false : true;
		}
		

//fenster breite 791px		
function remote6 (htmldoc,windowname) {
if (popup2 && popup2.closed != true) {
		window.popup2.close();
	}
	
//neu eingefügt am 060713 wg. popupblocker
if (!htmldoc) return true;

if (document.layers){				popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=yes,width=750,height=400,left=0,top=202");
	} else {	
popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=no,width=750,height=400,left=0,top=202");
	}

	if (popup2 && !popup2.creator) {
		popup2.creator=self;
	}
	if (window.focus) {
		popup2.focus();
	}
	
	//neu eingefügt am 060713 wg. popupblocker
	return  (popup) ? false : true;
}
		
	
function remote7 (htmldoc,windowname) {
if (popup2 && popup2.closed != true) {
		window.popup2.close();
	}
	
//neu eingefügt am 060713 wg. popupblocker
if (!htmldoc) return true;

if (document.layers){				popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=yes,width=800,height=700,left=0,top=202");
	} else {	
popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=no,width=800,height=700,left=0,top=202");
	}

	if (popup2 && !popup2.creator) {
		popup2.creator=self;
	}
	if (window.focus) {
		popup2.focus();
	}
	
	//neu eingefügt am 060713 wg. popupblocker
	return  (popup) ? false : true;
}

//fenster breite 750px		
function remote8 (htmldoc,windowname) {
if (popup2 && popup2.closed != true) {
		window.popup2.close();
	}
	
//neu eingefügt am 060713 wg. popupblocker
if (!htmldoc) return true;

if (document.layers){				popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=yes,width=750,height=600,left=0,top=202");
	} else {	
popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=no,width=750,height=600,left=0,top=202");
	}

	if (popup2 && !popup2.creator) {
		popup2.creator=self;
	}
	if (window.focus) {
		popup2.focus();
	}
	
	//neu eingefügt am 060713 wg. popupblocker
	return  (popup) ? false : true;
}
	
function remote9 (htmldoc,windowname) {
if (popup2 && popup2.closed != true) {
		window.popup2.close();
	}
	
//neu eingefügt am 060713 wg. popupblocker
if (!htmldoc) return true;

if (document.layers){				popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=yes,width=850,height=700,left=0,top=202");
	} else {	
popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=no,width=850,height=700,left=0,top=202");
	}

	if (popup2 && !popup2.creator) {
		popup2.creator=self;
	}
	if (window.focus) {
		popup2.focus();
	}
	
	//neu eingefügt am 060713 wg. popupblocker
	return  (popup) ? false : true;
}	

function remote10 (htmldoc,windowname) {
if (popup2 && popup2.closed != true) {
		window.popup2.close();
	}
	
//neu eingefügt am 060713 wg. popupblocker
if (!htmldoc) return true;

if (document.layers){				popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=yes,width=750,height=420,left=0,top=202");
	} else {	
popup2=window.open(htmldoc,"popup2","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=no,width=750,height=420,left=0,top=202");
	}

	if (popup2 && !popup2.creator) {
		popup2.creator=self;
	}
	if (window.focus) {
		popup2.focus();
	}
	
	//neu eingefügt am 060713 wg. popupblocker
	return  (popup) ? false : true;
}
	
//ab hier funktionen aus alter remote.js	
var popup;

function remote(htmldoc,windowname) {
	if (popup && popup.closed != true) {
	window.popup.close();
	}
	setTimeout('remote1("'+htmldoc+'")',750);
}

	function remotewg(htmldoc,windowname) {
			if (popup && popup.closed != true) {
				window.popup.close();
			}
		setTimeout('remotewg1("'+htmldoc+'")',750);
		}

	function remotewg1 (htmldoc) {
			if (document.layers){
	popup=window.open(htmldoc,"popup","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=yes,width=791,height=462,left=0,top=202");
	}
		else {
popup=window.open(htmldoc,"popup","toolbar=no,location=\'Users\',directories=no,status=no,resizable=no,copyhistory=no,menubar=no,scrollbars=no,width=791,height=462,left=0,top=202");
	}
	
	if (popup && !popup.creator) {
		popup.creator=self;
		}
		if (window.focus) {
			popup.focus();
		}		
	}
	

function winOpen (htmldoc,windowname) {
popup=open(htmldoc,windowname,"toolbar=no,scrollbars=yes,directories=no,status=no,resizeable=yes,copyhistory=no,menubar=no,width=640,height=700,left=152,top=10");
        popup.focus();
}
  
function windowClose() {
	if (document.images) {
		if (document.layers || document.all) {
			window.blur();
		}
		window.close();
	}
}