
//** Surpress error messages
function suppressError() {
    return true;
}

//** Sets the background position
function setBgStyles(iHeigthThreshold) {
    if(screen.height > iHeigthThreshold) {
        var iHeight = windowHeight();

        if(iHeight > iHeigthThreshold) {
            document.body.className='bodyTallWindow';
            document.getElementById("outerAlignTable").className='outerAlignTableTallWindow';
            document.getElementById("outerAlignTd").className='outerAlignTdTallWindow';
        } else {
            document.body.className='bodyDefault';
            document.getElementById("outerAlignTable").className='outerAlignTableDefault';
            document.getElementById("outerAlignTd").className='outerAlignTdDefault';
        }
    }
}

//** Get the height of the current window
function windowHeight() {
    var iHeight = 0;
    if( typeof( window.innerHeight ) == 'number' ) {
        iHeight = window.innerHeight; //Non-IE
    } else if( document.documentElement && ( document.documentElement.clientHeight || document.documentElement.clientHeight ) ) {
        iHeight = document.documentElement.clientHeight; //IE 6+ in 'standards compliant mode'
    } else if( document.body && document.body.clientHeight ) {
        iHeight = document.body.clientHeight; //IE 4 compatible
    }
    return iHeight;
}
