var is = new Object();
{
	is.ver = navigator.appVersion.substring(0,1);

	if (navigator.appName == "Netscape")
	{
		is.ns = true;
		eval("is.ns" + is.ver + " = true;")
		if (is.ver >= 3 && is.ver <= 4)
			is.ng3 = true;
		if (is.ver > 4)
			is.ng5 = true;
	}
	else if (navigator.appName.indexOf("Microsoft") >= 0)
	{
		is.ie = true;
		eval("is.ie" + is.ver + " = true;")
		if (is.ver >= 3)
			is.ig3 = true;
	}
	else
		is.bu = true;

	if (navigator.appVersion.indexOf("Win") > 0)
		is.win = true;
	else if (navigator.appVersion.indexOf("Mac") > 0)
		is.mac = true;
	else if (navigator.appVersion.indexOf("X11") > 0)
		is.x11 = true;
	else
		is.osu = true;
}

function popUp(URL, id, height, width )
{
    if( !width )
    {
  if( !height )
    height=460;
  
  scrollbar="scrollbars=yes,";
  width=502;
  if(height > 600){  scrollbar="scrollbars=yes,"; width=520;}
    }
    else
    {
      if( !height )
    height=500;
      scrollbar="scrollbars=yes,";
    }
    window.open(URL, "" + id, scrollbar+"width="+width+",height="+height+",resizable=1,left=150,top=180");
}


function popUpImpr(URL, id, height, width )
{
    if( !width )
    {
  if( !height )
    height=460;
  
  scrollbar="scrollbars=no,";
  width=650;
  if(height > 600){  scrollbar="scrollbars=yes,"; width=650;}
    }
    else
    {
      if( !height )
    height=500;
      scrollbar="scrollbars=no,";
    }
    window.open(URL, "" + id, scrollbar+"width="+width+",height="+height+",resizable=1,left=325,top=202,toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1");
}

function popUpPostkarten(URL, id, height, width )
{
    if( !width )
    {
  if( !height )
    height=460;
  
  scrollbar="scrollbars=no,";
  width=600;
  if(height > 600){  scrollbar="scrollbars=yes,"; width=650;}
    }
    else
    {
      if( !height )
    height=500;
      scrollbar="scrollbars=no,";
    }
    window.open(URL, "" + id, scrollbar+"width="+width+",height="+height+",resizable=1,left=200,top=50,toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0");
}



function popUpError(errortext)
    {
    eval("page" + id + " = window.open('error.php?error="+errortext+"', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,width=483,innerWidth=465,height=465,left = 325,top = 202');");
    }

function popUpTariff(URL, id, height, width )
{
   if( !width )
    width=500;
   if( !height )
    height=460;
   scrollbar="scrollbars=yes,";  
   window.open(URL, "" + id, scrollbar+"width="+width+",height="+height+",resizable=1,left=200,top=80");
}


function openPopuphilfe(url)
{
	if( navigator.appName == "Netscape")
	{
		width=825;
		scrollbar="scrollbars=yes";
		height=600;
	}
	else
	{
		width=830;
		scrollbar="scrollbars=yes";
		height=600;
	}
	objWindow = window.open(url,'hilfe', scrollbar + ",width=" + width + ",height=" + height + ",resizable=no,left=100,top=90");
	objWindow.focus();
}

function openPopuphilfeA(url)
{
	if( navigator.appName == "Netscape")
	{
		width=781;
		scrollbar="scrollbars=yes";
		height=600;
	}
	else
	{
		width=797;
		scrollbar="scrollbars=yes";
		height=600;
	}
	objWindow = window.open(url,'hilfe', scrollbar + ",width=" + width + ",height=" + height + ",resizable=no,left=100,top=90");
	objWindow.focus();
}


function openPopupGuide(url)
{
	if( navigator.appName == "Netscape")
	{
		width=790;
		height=545;
	}
	else
	{
		width=790;
		height=545;
	}
	objWindow = window.open(url, "",",width=" + width + ",height=" + height + ",resizable=no,left=200,top=150");
	objWindow.focus();
}



function advPopupBack(url)
{	
  var
mywindow=open(url,"pop03","width=202,height=302,left=200,top=100");
  mywindow.blur();
  focus();	
}

//Function von dpa for flash
function OpenWindow(url,  w, h) {
		var winbreite = (screen.width - w) / 2;
		var winhoehe = (screen.height - h) / 2;
		var scroll=yes;
		winprops = 'height='+h+',width='+w+',top='+winhoehe+',left='+winbreite+',scrollbars='+scroll+',resizable';
		win = window.open(url, "fenster2", winprops);
		win.window.focus(); 
}

function popWin(sUrl,bScroll,ix,iy)
{
	if (document.layers){ var winbreite = 200; }
	else { var winbreite = (screen.width - ix) / 2; }
	sTmp = "width=" + ix + ",height=" + iy + ",scrollbars=" + bScroll + ",status=0,left=" + winbreite + ",top=100,resizable=no";
	wTmp = document.location.href.split("/");
	wTmp = wTmp[eval(wTmp.length-1)].split(".");
	wTmp = wTmp[eval(wTmp.length-2)];
	if(!window.newWin || window.newWin.closed){
		window.newWin = window.open(sUrl,wTmp,sTmp);
	}
    else{
		window.newWin.close();
		window.newWin = null;
		window.newWin = window.open(sUrl,wTmp,sTmp);
    }
	window.newWin.focus();
}


function popWinTop(sUrl,bScroll,ix,iy, top)
{
	if (document.layers){ var winbreite = 200; }
	else { var winbreite = (screen.width - ix) / 2; }
	sTmp = "width=" + ix + ",height=" + iy + ",scrollbars=" + bScroll + ",status=0,left=" + winbreite + ",top="+top+",resizable=no";
	wTmp = document.location.href.split("/");
	wTmp = wTmp[eval(wTmp.length-1)].split(".");
	wTmp = wTmp[eval(wTmp.length-2)];
	if(!window.newWin || window.newWin.closed){
		window.newWin = window.open(sUrl,wTmp,sTmp);
	}
    else{
		window.newWin.close();
		window.newWin = null;
		window.newWin = window.open(sUrl,wTmp,sTmp);
    }
	window.newWin.focus();
}

function popArcor(url)
{
	if( is.ng3)
	{
		width=400;
		scrollbar="scrollbars=no";
		height=483;
	}
	else
	{
		width=400;
		scrollbar="scrollbars=no";
		height=444;
	}
	objWindow = window.open(url,'hilfe', scrollbar + ",width=" + width + ",height=" + height + ",resizable=no,left=100,top=90");
	objWindow.focus();
}
