function loadTop(doc) {
    document.getElementById("topContent").src = doc
    if (!document.getElementById("topContent").onload) {
        setTimeout("transferHTML()", 1000)
    }
}
function transferHTML() {
    var srcFrame = document.getElementById("topContent")
    var srcContent = (srcFrame.contentDocument) ? 
    srcFrame.contentDocument.getElementsByTagName("BODY")[0].innerHTML : 
    (srcFrame.contentWindow) ? 
    srcFrame.contentWindow.document.body.innerHTML : ""
    document.getElementById("topDisplay").innerHTML = srcContent
}
function loadLinks(doc) {
    document.getElementById("linksContent").src = doc
    if (!document.getElementById("linksContent").onload) {
        setTimeout("transferLinksHTML()", 1000)
    }
}
function transferLinksHTML() {
    var srcFrame = document.getElementById("linksContent")
    var srcContent = (srcFrame.contentDocument) ? 
    srcFrame.contentDocument.getElementsByTagName("BODY")[0].innerHTML : 
    (srcFrame.contentWindow) ? 
    srcFrame.contentWindow.document.body.innerHTML : ""
    document.getElementById("linksDisplay").innerHTML = srcContent
}
function loadFeed(doc) {
    document.getElementById("feedContent").src = doc
    if (!document.getElementById("feedContent").onload) {
        setTimeout("transferLinksHTML()", 1000)
    }
}
function transferFeedHTML() {
    var srcFrame = document.getElementById("feedContent")
    var srcContent = (srcFrame.contentDocument) ? 
    srcFrame.contentDocument.getElementsByTagName("BODY")[0].innerHTML : 
    (srcFrame.contentWindow) ? 
    srcFrame.contentWindow.document.body.innerHTML : ""
    document.getElementById("feedDisplay").innerHTML = srcContent
}
function loadBottom(doc) {
    document.getElementById("bottomContent").src = doc
    if (!document.getElementById("bottomContent").onload) {
        setTimeout("transferBottomHTML()", 1000)
    }
}
function transferBottomHTML() {
    var srcFrame = document.getElementById("bottomContent")
    var srcContent = (srcFrame.contentDocument) ? 
    srcFrame.contentDocument.getElementsByTagName("BODY")[0].innerHTML : 
    (srcFrame.contentWindow) ? 
    srcFrame.contentWindow.document.body.innerHTML : ""
    document.getElementById("bottomDisplay").innerHTML = srcContent
}

