ie5 = (document.getElementById && document.all);
ns6 = (document.getElementById && !document.all);

if (ie5 ||ns6) obj = document.getElementById("InlineFrame");

function showInlineFrame(url)
  {
   if (ie5 || ns6)
     {
      width  = 500;
      height = 350;

      obj.innerHTML = "<DIV ID=\"loading\" STYLE=\"position:absolute;z-index:11;background-color:#333333;border:1px solid #666666;width:"+width+";height"+height+"\"><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH="+width+" HEIGHT="+height+"><TR><TD ALIGN=\"center\"><FONT SIZE=5>Wird geladen...</FONT></TD></TR></TABLE></DIV>"
      + "<DIV STYLE=\"position:absolute;background:#555555;margin:2px;width:"+(width+2)+"px;height:"+(height+2)+"px;z-index:9\"></DIV>"
      + "<IFRAME SRC=\""+url+"\" SCROLLING=\"no\" WIDTH="+width+" HEIGHT="+height+" MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER=\"no\" STYLE=\"position:absolute;border:1px solid #666666;background-color:#E6E6E6;z-index:10\"></IFRAME>";

      posx = ((ie5)?(document.body.scrollLeft):(window.pageXOffset))+Math.round(((ie5)?(document.body.clientWidth):(window.innerWidth))/2)-Math.round(width/2);
      posy = ((ie5)?(document.body.scrollTop):(window.pageYOffset))+Math.round(((ie5)?(document.body.clientHeight):(window.innerHeight))/2)-Math.round(height/2);

      obj.style.left = posx;
      obj.style.top  = posy;

      obj.style.visibility = "visible";
     }
  }

function loadingComplete()
  {
   document.getElementById("loading").style.visibility = "hidden";
  }

function hideInlineFrame()
  {
   obj.style.visibility = "hidden";
  }