function openWebcam() {
  var left = Math.floor((screen.width-750)/2);
  var top  = Math.floor((screen.height-660)/2);

  window.open("webcam.html", "Aet_Webam_Hamburg", "width="+750+",height="+660+",left="+left+",top="+top+",toolbar=0, resizable=no");
}


function getWinSize(win) {
  if(!win) win = window;
  var s = new Object();
  if(typeof win.innerWidth != 'undefined') {
    s.width = win.innerWidth;
    s.height = win.innerHeight;
  }
  else {
    var obj = getBody(win);
    s.width = parseInt(obj.clientWidth);
    s.height = parseInt(obj.clientHeight);
  }
  return s;
}


function getBody(w) {
  return (w.document.compatMode && w.document.compatMode == "CSS1Compat")
  				? w.document.documentElement
  				: w.document.body || null;
}
