/* Javascript Alken Maes */

function printDoc(){
    window.print();
}

function getobj(id){
    return document.getElementById(id);
}

function setMainPic(url, grooturl){
    var mnPic = getobj('imgMain');
    var mnLink = getobj('lnkMain');
    
    mnPic.src = url;
    mnPic.style.display = '';
    
    mnLink.href = grooturl;
}

function setFooter() {
    var docHoog = GetHeight();
    var BodyHoog = document.forms[0].offsetHeight;
    
    if (BodyHoog < docHoog) {
        document.getElementById('footer').style.marginTop = (docHoog - BodyHoog) + 'px';
    }else{
        document.getElementById('footer').style.marginTop = '0px';
    }
    
    window.onresize = setFooter;
}

function GetHeight() {
    var myHeight = 0;

    if(typeof(window.innerHeight) == 'number') {
        //Non-IE
        myHeight = window.innerHeight;
    } else if(document.documentElement && document.documentElement.clientHeight) {
        //IE 6+ in 'standards compliant mode'
        myHeight = document.documentElement.clientHeight;
    } else if(document.body && document.body.clientHeight) {
        //IE 4 compatible
        myHeight = document.body.clientHeight;
    }
    return myHeight;
}

