function winPop(url, wHeight, wWidth){
  var winwidth      = wWidth;
  var winheight     = wHeight;
  var desktopHeight = screen.availHeight;
  var desktopWidth  = screen.availWidth; 

  var top   = (desktopHeight - winheight) / 2;
  var left  = (desktopWidth - winwidth) / 2;

  var urlPrefix = "";
  var winurl    = url;

  var winname   = "ebrochure";
  var winopt    = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,resizable=0,width="+winwidth+",height="+winheight+",left="+left+",top="+top;
  var newwin    = window.open(winurl,winname,winopt);
}
function popImage(picture_location,window_title){

        // if window for big picture is still open from a previous session, close it!

        if (typeof(big_pic_win)!='undefined'&&big_pic_win.closed==false)big_pic_win.close();

        // create new window for big pictur (note: resizable=yes is necessary for Netscape 4.x)

        big_pic_win_props ="height=480";
        big_pic_win_props+=",width=640";
        big_pic_win_props+=",top="+(screen.availHeight-480)/2;
        big_pic_win_props+=",left="+(screen.availWidth-640)/2;
        big_pic_win_props+=",scrollbars=no";
        big_pic_win_props+=",dependent=yes";
        big_pic_win_props+=",resizable=yes";
        big_pic_win=window.open("about:blank","big_picture",big_pic_win_props);

        // write new content into window (incl. page-, header-, body-, etc. tags)
        // note: when page is loaded (onLoad), function of opener-window is called
        //       to resize and relocate window. Margins are all set to 0 and style 
        //       display:block in image tag is used, to ensure that the window can be
        //       made as big as the image (only for NS6+)

        body_properties='marginwidth="0" marginheight="0" topmargin="0" leftmargin="0"';
        with (big_pic_win.document){
          clear();
          writeln('<html>');
          writeln('  <head>');
          writeln('    <title>'+window_title+'</title>');
          writeln('  </head>');
          writeln('  <body onLoad="javascript:void(opener.resize_big_pic())" '+body_properties+'>');

          if(typeof(window.sizeToContent)=='function') img_style="style='display:block')";
          else                                         img_style="";

          writeln('    <img src="'+picture_location+'" '+img_style+'>');
          writeln('  </body>');
          writeln('</html>');
          close();
        }

        // set focus on new window

        big_pic_win.focus();
      }

      // function to resize and relocate new window (called by new window via opener-object)

      function resize_big_pic(){

        // check if image is really loaded, otherways wait some time and recall this function

        if (typeof(big_pic_win.document.images[0].width)=='undefined'||big_pic_win.document.images[0].width==0){
          my_timeout=setTimeout("resize_big_pic()",50);
        }else{

          // make window first bigger than image (necessary for NS6+, because only with downsizing scrollbars can be
          // avoided! We only use relative-resizing ("resizeBy") because this is the only way, we now how big the
          // window is at every time (at starting point it was 100*100)

          big_pic_win.window.resizeBy(big_pic_win.document.images[0].width,big_pic_win.document.images[0].height);

          // if function "sizeToContent" is available (NS6+), then use this function otherways
          // downsize by 100*100, because the window is now exactly 100*100 to big (does not
          // work really with NS6+ thats why we use the "sizeToContent"-function)

          if (typeof(window.sizeToContent)=='undefined')big_pic_win.window.resizeBy(-100,-100);
          else                                          big_pic_win.window.sizeToContent();

          // according to the new size, relocate window on screen (window-size in IE can only be detected via body.offset)

          if (document.all) big_pic_win.window.moveTo((screen.availWidth-big_pic_win.document.body.offsetWidth)/2,(screen.availWidth-big_pic_win.document.body.offsetWidth)/2);
          else              big_pic_win.window.moveTo((screen.availWidth-big_pic_win.outerWidth)/2,(screen.availHeight-big_pic_win.outerHeight)/2);

          // set focus on new window again

          big_pic_win.focus();
        }
      }