/* marc 10.03.01 */

function dowindow(m,t,l,w,h,u,i,s1,s2,s3,s4,s5,s6)
{
if (m==1)
{ if (document.all)
  { w=w-30; h=h-145;
    l=(screen.availwidth-9-w)/2,t=(screen.availheight-100-h)/2;
    if (t<=0) {t=0} } else
  { w=w-30; h=h-145;
    l=(screen.width-9-w)/2,t=(screen.height-100-h)/2;
    if (t<=0) {t=0} }
}
if (m==2)
{ if (document.all)
  { w=screen.availwidth-9-l; h=screen.availheight-25-t; } else
  { w=screen.width-9; h=screen.height-25; }
  if (s4==1) {h-=25};if (s1==1) {h-=44};if (s2==1) {h-=25};if (s3==1) {h-=25}
}
var newwindow=window.open(u,i,"toolbar="+s1+",location="+s2+",directories=0,status="+s3+",menubar="+s4+",scrollbars="+s5+",copyhistory=0,resizable="+s6+",Width="+w+",Height="+h+",screenX="+l+",screenY="+t+",left="+l+",top="+t);
//setTimeout("dowindow2()",600);

  newwindow.focus();
  //newwindow.location=u;
}

function dowindow2()
{ newwindow.opener=self;
  newwindow.focus();
}
