﻿function GetInnerHeight(optObj)
{
    if ( optObj != null ) return optObj.offsetHeight;
    
    if( typeof( window.innerWidth ) == 'number' ) 
    { 
        //Non-IE
        return window.innerHeight;
    } 
    else if( document.documentElement && document.documentElement.clientHeight )
    {
        //IE 6+ in 'standards compliant mode'    
        return document.documentElement.clientHeight;
    } 

    return 800; //standard height
}

function GetInnerWidth(optObj)
{
    if ( optObj != null ) return optObj.offsetWidth;

    if( typeof( window.innerWidth ) == 'number' ) 
    {
        return window.innerWidth; //Non-IE
    } 
    else if( document.documentElement && document.documentElement.clientWidth )
    {
        return document.documentElement.clientWidth; //IE 6+ in 'standards compliant mode'
    } 

    return 1000; //standard width
}
