function loadOuter(doc) {
    document.getElementById("hiddenContent").src = doc
    if (!document.getElementById("hiddenContent").onload) {
        setTimeout("transferHTML()", 1000)
    }
}
function transferHTML() {
    var srcFrame = document.getElementById("hiddenContent")
    var srcContent = (srcFrame.contentDocument) ? 
    srcFrame.contentDocument.getElementsByTagName("BODY")[0].innerHTML : 
    (srcFrame.contentWindow) ? 
    srcFrame.contentWindow.document.body.innerHTML : ""
    document.getElementById("outerDisplay").innerHTML = srcContent
}

/* popraw to jeszcze raz */
var linki = document.getElementsTagName('iframe');
for(i=0; i < linki.length; i++)
{
if (linki[i].id=='hiddenContent')
linki[i].onload = transferHTML;  // nazwa funkcji bez ()!

}
/* poprawne dołączanie sekcji background wg http://pornel.net/onclick */
/* działa tylko FireFox oraz Opera - 28 sierpień 2010 */
/* można też użyć: linki[i].onlick = function() {return costam(para,metry);} */
