<!--
function new_window(theURL,winName,features,myWidth,myHeight,isCenter) {
  if(window.screen)if(isCenter)if(isCenter == 'true') {
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function new_imagepopup(theURL,winName,altName,features,myWidth,myHeight,isCenter) {
  if(window.screen)if(isCenter)if(isCenter == 'true') {
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  imagepopup = window.open('','',features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
  with (imagepopup) {
    document.open();
    document.write('<title>'+winName+'</title>');
    document.write('<meta http-equiv="imagetoolbar" content="no">');
    document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="no">');
    document.write('<a href="javascript:self.close()">');
    document.write('<img src="'+theURL+'" border="0" alt="'+altName+'" title="'+altName+'">');
    document.write('</a></body>');
    document.close();
  }
}

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    for (var i=0; i<preloadImages.arguments.length; i++) {
      rslt = newImage(preloadImages.arguments[i]);
    }
    preloadFlag = true;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}
//-->
<!--- Hide script from old browsers
// (c) 2002 M.Bothge - Schwarzheide
// BILD IN NEUEM ZENTRIERTEN FENSTER ÖFFNEN
//
function OpenNewWindow(Picture,Breit,Hoch)
{
xsize = Breit+44;// Zusatz für Rand rechts und links
ysize = Hoch+120; //Zusatz für Rand oben und unten - damit Button angezeit werden kann

ScreenWidth = screen.availWidth;
ScreenHeight = screen.availHeight;

xpos = (ScreenWidth/2)-(xsize/2);
ypos = (ScreenHeight/2)-(ysize/2);

NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
NewWindow.document.write ("<html><head><title>Shots");
NewWindow.document.write ("</title></head>");
NewWindow.document.write ("<body bgcolor='#FFFFFF' onload='focus()'>");
NewWindow.document.write ("<table align='center'><tr>");
NewWindow.document.write ("<td align='center' valign='top'>");
NewWindow.document.write ("<table border='0' cellpadding='0' cellspacing='0'><tr><td align='center'>");
NewWindow.document.write ("<img src=");
NewWindow.document.write (Picture);
NewWindow.document.write (">");
NewWindow.document.write ("</tr></table>");
NewWindow.document.write ("</td></tr><tr>");
NewWindow.document.write ("<td align='center' valign='bottom'>");
NewWindow.document.write ("<br><center><form><input type='button' value='FENSTER SCHLIESSEN' style='font-family: Verdana; font-size: 10px' onClick='self.close()'>");
NewWindow.document.write ("</td></tr></table>");
NewWindow.document.write ("</form></body></html>");
NewWindow.document.close();
NewWindow.resizeTo(xsize,ysize);
}
