function exportHtml(destinationDoc,exportElem,parentId)
 {if (exportElem!=null && exportElem!="")
    {if (navigator.userAgent.indexOf("Chrome")!=-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)
        }
    }
 }
