
function replaceImage(which,image)
{
    if (document.images )
    {
        var newImg = new Image;
        newImg.src = image;
        var oldImg = document.getElementById(which);
        oldImg.setAttribute("src", newImg.src);
    }
}				    


function sp(url,n,p)
{
  var nazwa = "W_"+Math.ceil(Math.random()*100);
  window.open (url, nazwa,p);


}

function ow(url,w,h)
{
  var nazwa = "W_"+Math.ceil(Math.random()*100);
  window.open (url, nazwa,"toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,width="+w+",height="+h+",scrollbars=no");


}
