		function globalTabOver(tabNumber){
			if (document.body.className != 'navscheme' + (tabNumber + 1)) {
				document.getElementById('globaltab'+tabNumber).className = 'on';
			}
		}
		
		function globalTabOut(tabNumber){							   
			if (document.body.className != 'navscheme' + (tabNumber + 1)) {
				document.getElementById('globaltab'+tabNumber).className = '';
			}
		}
			


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

		function globalNavOver(tabNumber){
			if (document.body.className != 'navscheme' + (tabNumber + 1)) {
				document.getElementById('globalNav'+tabNumber).className = 'on';
			}
		}
		
		function globalNavOut(tabNumber){							   
			if (document.body.className != 'navscheme' + (tabNumber + 1)) {
				document.getElementById('globalNav'+tabNumber).className = '';
			}
		}

function montre(id) {
if (document.getElementById) {
document.getElementById(id).style.display="block";
} else if (document.all) {
document.all[id].style.display="block";
} else if (document.layers) {
document.layers[id].display="block";
} } 
function cache(id) {
if (document.getElementById) {
document.getElementById(id).style.display="none";
} else if (document.all) {
document.all[id].style.display="none";
} else if (document.layers) {
document.layers[id].display="none";
} } 



function montre1(id) {
if (document.getElementById) {
document.getElementById(id).style.display="block";
} else if (document.all) {
document.all[id].style.display="block";
} else if (document.layers) {
document.layers[id].display="block";
} } 
function cache1(id) {
if (document.getElementById) {
document.getElementById(id).style.display="none";
} else if (document.all) {
document.all[id].style.display="none";
} else if (document.layers) {
document.layers[id].display="none";
} } 


//damit Parent aktualisiert wird
var pWin 
function setParent(){ 
    pWin = top.window.opener 
} 
function reloadParent(){ 
   pWin.location.reload(true) 
}


//holt sich den Wert aus der SelectBox
function newKalender($atr) {
    
    var selektiert = document.forms["form_jahreskalender"].elements["jahr"].selectedIndex;
    var jahr = document.forms["form_jahreskalender"].elements["jahr"].options[selektiert].value;
    
    popitup('applet.php' + $atr + '&man=1&jr=' + jahr,1000, 700);
    self.close();
}

//holt sich den Wert aus der SelectBox
function newKlinik($atr) {
    
    var selektiert = document.forms["form_Klinik"].elements["gkarten"].selectedIndex;
    var gk = document.forms["form_Klinik"].elements["gkarten"].options[selektiert].value;
    
    popitup('applet.php' + $atr + '&man=1&gk=' + gk,1000, 700);
    self.close();
}

//holt sich den Wert aus der SelectBox
function newExklusivkalender($atr) {
    
    var selektiert = document.forms["form_Exlusiv"].elements["jahr"].selectedIndex;
    var jahr = document.forms["form_Exlusiv"].elements["jahr"].options[selektiert].value;
    
    var selektiert = document.forms["form_Exlusiv"].elements["monat"].selectedIndex;
    var monat = document.forms["form_Exlusiv"].elements["monat"].options[selektiert].value;
    
    popitup('applet.php' + $atr + '&man=1&jr=' + jahr + '&mn=' + monat,1000, 700);
    self.close();
}

var newwindow = '';
//oeffnet neues Fenster und bringt Focus darauf
function popitup(url,breite,hoehe) {
    links = (screen.width/2)-(breite/2);
    oben = (screen.height/2)-(hoehe/2);

    if (!newwindow.closed && newwindow.location) {
        newwindow.location.href = url;
    }
    else {
        newwindow=pWin.window.open(url,"name","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links);
        if (!newwindow.opener) newwindow.opener = self;
    }
    if (window.focus) {newwindow.focus()}
    return false;
}

function winOpen(url, breite, hoehe) {
links = (screen.width/2)-(breite/2);
oben = (screen.height/2)-(hoehe/2);
window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links);
}

function winOpen1(url, breite, hoehe) {
links = (screen.width/2)-(breite/2);
oben = (screen.height/2)-(hoehe/2);
window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = yes,fullscreen = no,top ="+oben+",left ="+links);
} 
function winOpen2(url, breite, hoehe) {
links = (screen.width/2)-(breite/2);
oben = (screen.height/2)-(hoehe/2);
window.open(url,"popup2","height="+hoehe+",width="+breite+",status = yes,toolbar = yes,menubar = yes,location = yes,resizable = no,titlebar = yes,scrollbars = yes,fullscreen = no,top ="+oben+",left ="+links);
} 
function winOpen3(url, breite, hoehe) {
links = (screen.width/2)-(breite/2);
oben = (screen.height/2)-(hoehe/2);
window.open(url,"popup3","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = yes,fullscreen = no,top ="+oben+",left ="+links);
}

//oeffnet Fenster fuer Album
function openWindow_Album (bild,picB,picH) {
	
	tableW = picB;
	
	fak1 = 1.07;
	fak2 = 1.11;
	
	if (picB < picH) {
		fak1 = 1.11;
		fak2 = 1.07;
	}
	//setzt einen Rand um das Bild
	picB = parseInt(picB * fak1);
	picH = parseInt(picH * fak2);
	
	breite = picB + 50;
	hoehe = picH + 70;
	
	
	blindPic = './images/super.gif';
	style = 'background-repeat: no-repeat;background-position: center center;';
	
	posLeft = (screen.width/2)-(breite/2);
	posTop = (screen.height/2)-(hoehe/2);
	
	//newWindow = window.open('','popup','height='+hoehe+',width='+breite+',status="no",toolbar="no",menubar="no",location="no",resizable="no",titlebar=no,scrollbars = no,fullscreen = no,top='+posTop+',left='+posLeft'' );
	newWindow = window.open('','popup','height='+hoehe+',width='+breite+',status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=no,fullscreen=no');
		
	newWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
	newWindow.document.write('<html><head><title>Detail</title>');
	newWindow.document.write('<meta name="description" content="Digitalbilder, Digitalfotos, Fotolabor, digitalphotos, Fotos entwickeln, fotoentwicklung, Bilderdienste">');
	newWindow.document.write('<meta name="keywords" content="Digitalfoto, Digitalbilder gratis in 24h, Fotolabor, fotoservice">');
	newWindow.document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="./css/style1.css">');
	newWindow.document.write('</head>');
	newWindow.document.write('<body>');
	newWindow.document.write('<table width="'+ tableW +'" align="center" border="0" cellspacing="0" cellpadding="0">');
	newWindow.document.write('<tr> ');
	newWindow.document.write('<td class="border_pic" style="background-image: url('+ bild +');'+ style +'">');
	newWindow.document.write('<img src="'+ blindPic +'" width="'+ (picB) +'" height="'+ (picH) +'"/></td>');
	newWindow.document.write('</tr>');
	newWindow.document.write('<tr> ');
	newWindow.document.write('<td height="30" align="center"><a href="javascript:void(0)" class="button1" onClick="self.close();return false" ><span class="fett">schlie&szlig;en</span></a></td>');
	newWindow.document.write('</tr>');
	newWindow.document.write('</table>');
	newWindow.document.write('</body>');
	newWindow.document.write('</html>');
	newWindow.document.close();
	newWindow.focus();
}