function costume(picURL,winname,width,height)
{
  y = 0
  width=width+30
  height=height+40

  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/3)-(width/2)
  if (x < 0)
  {x=0
  }

  ustawienia="width="+width+",height="+ah
			+",top="+y+",left="+x
			+",screenY="+y+",screenX="+x
			+",resizable=1,status=0,scrollbars=1"

  windowName=window.open("../../load-image.php?img="+picURL,winname,ustawienia);
  windowName.focus()
}

function exnew(lang) {
	windowName2=window.open("../../explain_new.php?l="+lang, "explain", 
		"width=280,height=130,top=50,left=100,resizable=0,status=0,scrollbars=0")
	windowName2.focus()
}
