/* Dynamic IFrame code:
   www.expertsrt.com/articles/Cd/alt-popup.shtml : 20061129
*/

function putIF(hldr,x,y,w,h,url) 
       // description of the arguments below
{
   holder=document.getElementById(hldr); //wrap around div
   holder.style.display='block';  // the div gets styled
   holder.style.left=x;
   holder.style.top=y;
   holder.style.width=w;
   IF=document.createElement('iframe');  // iframe is created in the DOM
   IF.setAttribute('height', h);  // simple DOM methods
   IF.setAttribute('width', w);
   IF.setAttribute("src", url);
   holder.appendChild(IF); // now we add it to the div
   holder.innerHTML+='<button onclick="closeIF(this.parentNode)">Close</button>';
     // final step is to put in additional controls
}
   function closeIF(obj)
     // the close is simple we just clear out the div
   {
      obj.innerHTML='';
      obj.style.display='none';
   }
