// The following method is used to load an iframe after a page is loaded for page load speed considerations.
// The method is added to the onload stack.

loadIFrame = function(id,src){
   var src = src || null;
   var id = id || null;

   if(typeof(id) == "string" && typeof(src) == "string"){
      var  iframe = (document.getElementById) ? document.getElementById(id) : (document.all) ? document.all[id] : null;
      if(iframe != null){
        var iframeWin = null;
        if(window.frames && window.frames[id]) iframeWin = window.frames[id];
        else if(iframe.contentWindow) iframeWin = iframe.contentWindow;
        else if(iframe.contentDocument) iframeWin = iframe.contentDocument.defaultView;
        if(iframeWin != null) iframeWin.location.href = src;
        else{
          iframe.src = src;
        }
      }
   }
}

