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 = document.body.clientHeight/2 - 230;
      xxx = document.body.clientWidth/2 - 350;
      styl = 'z-index: 3; 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", 700);
         obj.setAttribute("height", 430);
         obj.setAttribute("frameborder", 0);
         obj.setAttribute("marginwidth", 0);
         obj.setAttribute("marginheight", 0);
         obj.setAttribute("style",styl)
         d_vbs.appendChild(obj);
      } else {      
         d_vbs.insertAdjacentHTML('beforeEnd',
         '<iframe src="'+ur+'" id="iframe'+nr+'" scrolling="'+scr+'" frameborder="0" '
         +'marginwidth="0" marginheight="0" width="700" height="430" '
         +'style="'+styl+'></iframe>');
      }
   }
//}
//kasowanie:
function deleteIframe(nr) {
   if (document.getElementById('iframe'+nr)) {
      document.getElementById('vbs').removeChild(document.getElementById('iframe'+nr));
   }
}
