//functions based on  http://www.expertsrt.com/articles/Cd/alt-popup.shtml

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 ='<a href="#" onclick="closeIF(this.parentNode); return false;">[X] Click here to close this form</a><br />'
                     + holder.innerHTML;

}
   function closeIF(obj)
     // the close is simple we just clear out the div
   {
      obj.innerHTML='';
      obj.style.display='none';
   }

   /*

     hldr the div layer to hold, position and size the iframe
     x the left position of the popup including a valid unit for positioning
     y the top position of the popup including a valid unit for positioning
     w the width of the popup including a valid unit for dimensions
     h the height of the popup including a valid unit for dimensions
     url The name of the page or page generation script that will populate the popup

   */
