// Javascript-Library //

//opens a window with an image
function show_photo(pImage, pTitle, pCaption, pWidth, pHeight) {
// specify window parameters
  winWidth = pWidth + 60;
  winHeight = pHeight + 70;
  photoWin = window.open("", "zgksphoto","width="+ winWidth +",height="+ winHeight +",status,scrollbars=no,resizable,screenX=40,screenY=60,left=40,top=60");
  
  // write content to window
  photoWin.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">');
  photoWin.document.write('<html><head><!-- PageID 768 - published by RedDot 7.5 - 7.5.0.27 - 15886 --><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />');
  photoWin.document.write('<link rel="stylesheet" href="" type="text/css" />');
  photoWin.document.write('<title>' +  pTitle + '</title>');
  photoWin.document.write('<style type="text/css"><!-- body {background-image: url();margin: 8px 8px 8px 8px;} //--></style>');
  photoWin.document.write('</he');
  photoWin.document.write('ad><bo');
  photoWin.document.write('dy><div id="popup"><b></b><br />');
  photoWin.document.write('<a href="javascript:window.close()"><img src="' + pImage + '" alt="' + pTitle + '" width="' + pWidth + '" height="' + pHeight + '" class="mitarbeiterImg" border="0"></a>');
  photoWin.document.write('<br /><a href="javascript:window.close()">Fenster schliessen</a>');
  photoWin.document.write('</div></body></html>');
  photoWin.focus();
  photoWin.document.close();
 }
// ----------------------------------------------------------------------------------------
// Printing
// ---------------------------------------------------------------------------------------- 

function openWindow(url,winName,w,h)  {
 
 PopupWindow=null; 
 var LeftPos=20;
 var TopPos=20;
 features = 'width='+ w + ',height='+ h + ',top=' + TopPos + ',left=' + LeftPos + ',location=no,directories=no,menubar=yes,toolbar=yes,status=no,scrollbars=yes,resizable=yes,dependent=yes';
      PopupWindow = open(url,winName,features);
      if (PopupWindow != null) { 
          PopupWindow.focus();
     }
}
function printPage() {
if (window.print) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}

// ----------------------------------------------------------------------------------------
// Direkteinstieg: Dropdown for direct access
// ---------------------------------------------------------------------------------------- 

function loadPage(list) {
  location.href=list.options[list.selectedIndex].value
}

//-->