function OpenWindow(BILD,WIDTH,HEIGHT) { 
  WIDTH  += 50;
  HEIGHT += 180;
  
  if (WIDTH > screen.availWidth-20) {
    WIDTH=screen.availWidth-20;
  }
  
  if (HEIGHT > (screen.availHeight-20)) {
    HEIGHT=screen.availHeight-20;
  }
  
  F1 = window.open(BILD,"Image","width="+WIDTH+",height="+HEIGHT+
		   ",resizable=yes,menu=no,menubar=no,locationbar=no,toolbar=no,directories=no,location=no,dependent=no,status=no,hotkeys=yes,screenX=0,screenY=0,innerWidth="+(WIDTH-50)+",innerHeight="+(HEIGHT-50)+",scrollbars=yes");
  
  F1.resizeTo(WIDTH,HEIGHT);
  F1.innerWidth=WIDTH-50;
  F1.innerHeight=HEIGHT-50;
  F1.screenX = 20;
  F1.screenY = 20;
  F1.moveTo(20,20);
  F1.focus();
}

function CSClickReturn() {
  var bAgent = window.navigator.userAgent; 
  var bAppName = window.navigator.appName;
  if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
    return true; // dont follow link
  else return false; // dont follow link
}

