function exportHtml(destinationDoc,exportElem,exportPopup,exportScript,parentId)
 {if (exportElem!=null)
    {if (navigator.appName.indexOf("Netscape")!=-1) attachElem=exportElem;
      else
        {attachElem=destinationDoc.createElement(exportElem.tagName.toLowerCase())
         attachElem.innerHTML=exportElem.innerHTML
        }

     if (typeof(parentId)!='string') destinationDoc.body.insertBefore(attachElem,destinationDoc.body.firstChild)
      else
        {parentElem = destinationDoc.getElementById(parentId)
         if (parentElem==null) destinationDoc.body.insertBefore(attachElem,destinationDoc.body.firstChild)
          else parentElem.appendChild(attachElem)
        }
    }

  if (exportPopup!=null)
    {if (navigator.appName.indexOf("Netscape")!=-1) attachPopup=exportPopup;
      else
        {attachPopup=destinationDoc.createElement(exportPopup.tagName.toLowerCase())
         attachPopup.innerHTML=exportPopup.innerHTML
        }
     destinationDoc.body.insertBefore(attachPopup,destinationDoc.body.firstChild)
    }

  if (exportScript!=null)
    {attachScript=destinationDoc.createElement(exportScript.tagName.toLowerCase())
     attachScript.language=exportScript.language
     attachScript.src=exportScript.src
     destinationDoc.body.insertBefore(attachScript,destinationDoc.body.firstChild)
    }
 }
