function onloadouter() {
    var iframe = document.getElementById('iframe');
    if (iframe != null) {
        if (getBrowserHeight()>790) {
            iframe.height = getBrowserHeight() - 222 + 'px';
        } else {
            iframe.height = getBrowserHeight() - 180 + 'px';
        }
    }
}

function onloadinner() {
    var iframe = document.getElementById('iframe');
    if (iframe != null) {
        iframe.height = getBrowserHeight() - 145;
    }
}

function getBrowserHeight()
{
    if (window.innerHeight) {
        return window.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientHeight != 0) {
        return document.documentElement.clientHeight;
    }
    else if (document.body) {
        return document.body.clientHeight;
    }
    return 0;
}

function goSubUrl(_url, _url2) {
  if (_url!='') {
    window.location.href = _url;
  } else {
    window.location.href = _url2;
  }
  return false;
}
function finishPage() {
    $(document).ready(function() {
        $('#preloader').hide();
        $('#contentPlace').removeClass('isoTablePortletContainer');
        $('#contentPlace').show();
    });
}
