
function openGalleryPopup(popupName,popupWidth,popupHeight,imageFile,imageWidth,imageHeight,sessionId)
{
	var url = "/cgi-bin/adframe/popup.html?id="+sessionId+"&imageFile="+imageFile+"&imageWidth="+imageWidth+"&imageHeight="+imageHeight;
	var genmesg = open(url,popupName,"toolbar=0,status=1,menubar=0,resizable=no,scrollbars=no,width="+popupWidth+",height="+popupHeight); 
}


function genericOpen(name,url,width,height)
{
	var genmesg = open(url,name,"toolbar=0,status=1,menubar=0,resizable=yes,scrollbars=yes,width="+width+",height="+height); 
}

function forumcommentOpen(id,targeturl,title)
{
	var forumUrl = "/cgi-bin/adframe/community/themenforum/templates/neuerbeitrag.html?id="+id+"&URL="+targeturl+"&TITLE="+title+"";
	var genmesg = open(forumUrl,'neuerbeitrag',"toolbar=0,status=1,menubar=0,resizable=no,scrollbars=yes,width=500,height=500"); 
}



function genericOpenNoScroll(name,url,width,height)
{
	var genmesg = open(url,name,"toolbar=0,status=0,menubar=0,resizable=no,scrollbars=no,width="+width+",height="+height); 
}


function WinOpen(tomail,toname,tofunktion,subject)
 {
var myurl = "http://www.bdverlag.de";
	myurl+= "/cgi-bin/mail/mail.cgi?template=blond_mail.html&success=blond_success.html&to_email="+tomail+"&to_name="+toname+"&to_funktion="+tofunktion+"&subject="+subject;
msg=open(myurl,"popup","toolbar=0,status=1,menubar=0,resizable=no,scrollbars=yes,width=458,height=482"); 
}

function WinOpenbd(tomail,toname,tofunktion,subject)
 {
var myurl = "http://www.bdverlag.de";
	myurl+= "/cgi-bin/mail/mail.cgi?template=bd_mail.html&success=bd_success.html&to_email="+tomail+"&to_name="+toname+"&to_funktion="+tofunktion+"&subject="+subject;
msg=open(myurl,"popup","toolbar=0,status=1,menubar=0,resizable=no,scrollbars=yes,width=450,height=470"); 
}

function WinOpenping(tomail,toname,tofunktion,subject)
 {
var myurl = "http://www.bdverlag.de";
	myurl+= "/cgi-bin/mail/mail.cgi?template=ping_mail.html&success=ping_success.html&to_email="+tomail+"&to_name="+toname+"&to_funktion="+tofunktion+"&subject="+subject;
msg=open(myurl,"popup","toolbar=0,status=1,menubar=0,resizable=no,scrollbars=no,width=500,height=570"); 
}

	
	var layerNumShowing=0;
	init();
	
	function init(){
        if (navigator.appName == "Netscape") {
				layerStyleRef="layer.";
				layerRef="document.layers";
				styleSwitch="";
        }else{
				layerStyleRef="layer.style.";
				layerRef="document.all";
				styleSwitch=".style";
		}
	}

	function showLayerNumber(number){
		var layerNumToShow=number;
		hideLayer(eval('"layer' + layerNumShowing+'"'));
		showLayer(eval('"layer' + layerNumToShow+'"'));
		layerNumShowing=layerNumToShow;	
	}

	
	function showLayer(layerName){
		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
	}
	
	function hideLayer(layerName){
		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
	}
	
	function deselectLayerNumber(number){
		var layerNumToShow=number;
		hideLayer(eval('"layer' + layerNumShowing+'"'));
	}