﻿
document.domain = "hfab.se";

function parentExists()
{
 return (parent.location == window.location)? false : true;
}

function reloadLoginFrame()
{
if(parentExists()) return parent.reloadLoginFrame();
else
return true;
}

$(document).ready(function() {
	
    parent.momentumlogin.location = 'sActionOnly.aspx?page=pgStatus';

    var myHeight;
    if (document.height) {
        myHeight = document.height + 'px';
    }
    else if (document.all) {
        if (document.compatMode && document.compatMode != 'BackCompat') {
            myHeight = document.documentElement.scrollHeight + 5 + 'px';
        }
        else {
            myHeight = document.body.scrollHeight + 5 + 'px';
        }
    }

    if (parentExists()) {
        return parent.setSize(window.self, myHeight);
    }
    else {
        return true;
    } 
});


