function updateIFrame( height ) {
    //alert( 'Updating IFrame height to '+height );
    var iframe = document.getElementById( 'forumiframe' );
    //iframe.setAttribute( 'height', height );
    iframe.style.height = height + "px";
}

function setLink(forum){   
    return;
    //for testing links for forum through anchor didn't work
    //setTimeout("alert('hello');location.hash=forum.split(';')[0];alert('hello');", 5000);
   //setTimeout("alert('hello')", 5000);
    //location.hash=forum.split(';')[0];
}

function anchorToParam(){
    return;
    //for testing links for forum through anchor didn't work
    //alert('anch to param ' + location.hash.length);
    if (location.hash.length > 3) {
        var curUrl = window.location.href.split("?");
        var anchor = location.hash;
        location.hash = '';
        anchor = anchor.substring(1, anchor.length);        
        //alert('change location: ' + curUrl[0].split('#')[0] + '?forum=' + anchor);
        window.location = curUrl[0].split('#')[0] + '?forum=' + anchor;
        location.hash = '';
    }
}
