function nowaramka(szer,wys,posx,posy)
{document.getElementById("rama").style.height=wys;
 document.getElementById("rama").style.width=szer;
 
 document.getElementById("ramadiv").style.height=wys;
 document.getElementById("ramadiv").style.width=szer;

 document.getElementById("ramadiv").style.top=posy;
 document.getElementById("ramadiv").style.left=posx;
 
 document.getElementById("ramadiv").style.clip="rect(" + 2 + "px " + wys + "px " + szer + 
      "px " + 2 + "px)";

 /*
 alert(document.getElementById("ramadiv").style.height);
 alert(document.getElementById("ramadiv").style.width);
 alert(document.getElementById("rama").style.height);
 alert(document.getElementById("rama").style.width);
*/
 }
