function slide(winURL,winname)
{
  width=711
  height=561

  y = 0

  if(height > screen.availHeight-30)
  { ah = screen.availHeight-30
  }
  else 
  { ah=height;
    if (screen.availHeight-height > 100)
    {  y = (screen.availHeight-height)/5
  }
  }

  x = (screen.width/4)-(width/3)
  if (x < 0)
  {x=0
  }
  
  if (ah<height)
   { width=width+15
     scrolling="auto"
   }
   else
   { scrolling="no"
   }
  winURL=winURL+"&scroll="+scrolling

  ustawienia="width="+width+",height="+ah
			+",top="+y+",left="+x
			+",screenY="+y+"screenX="+x
			+",resizable=1,status=0,scrollbars=0"

  windowName=window.open(winURL,winname,ustawienia)
  windowName.focus()
}
