function addIframe(nr, ur, x, y, h, w, mw, mh, scr, frbo, pos, vm, alp, br, st, co) {
   if (!document.getElementById('iframe'+nr)) {
      nrr = Number(nr)+1;
      mozalp = alp*0.01;
      d_vbs = document.getElementById('vbs')
      yyy = Number(d_vbs.offsetTop)+Number(y);
      xxx = Number(d_vbs.offsetLeft)+Number(x);
      styl = 'z-index:'+nrr+';filter:Alpha(Opacity='+alp+');-moz-opacity: '+mozalp+';'
      +'position: '+pos+';border: '+br+'px '+st+' '+co+';visibility: '+vm+';'
      +'left: '+xxx+'px;top: '+yyy+'px;"';
      if (typeof HTMLElement != "undefined"){
         obj = document.createElement("iframe");
         obj.setAttribute("src", ur);
         obj.setAttribute("id", "iframe"+nr);
         obj.setAttribute("width", w);
         obj.setAttribute("height", h);
         obj.setAttribute("frameborder", frbo);
         obj.setAttribute("marginwidth", mw);
         obj.setAttribute("marginheight", mh);
         obj.setAttribute("style",styl)
         d_vbs.appendChild(obj);
      } else {      
         d_vbs.insertAdjacentHTML('beforeEnd',
         '<iframe src="'+ur+'" id="iframe'+nr+'" scrolling="'+scr+'" frameborder="'+frbo+'" '
         +'marginwidth="'+mw+' marginheight="'+mh+'" width="'+w+'" height="'+h+'" '
         +'style="'+styl+'></iframe>');
      }
   }
}
//kasowanie:
function deleteIframe(nr) {
   if (document.getElementById('iframe'+nr)) {
      document.getElementById('vbs').removeChild(document.getElementById('iframe'+nr));
   }
}

