// JScript File
var contentElement = null;
var eB = true;

/*
if (eB) {
    window.moveTo(0,0);
    window.resizeTo (screen.availWidth, screen.availHeight);
}
*/

function flashPutHref(href) 
{ 
    location.href = href; 
}

function getLiveHeight(){
    if(window.innerHeight != null)
        return window.innerHeight;
    if (document.body.clientHeight != null)
        return document.body.clientHeight;
    return (null);
}

function getAllowedHeight()
{
/*
    var winHeight = getLiveHeight();        
    if(!winHeight || winHeight==null || winHeight < 565){        
        winHeight = 600;    
    }
    
    return winHeight;
    
*/
}

function doOnResize(){
    var height = getAllowedHeight() - 80;
    contentElement.style.height = height + "px";
    //alert(contentElement.style.height);
}
function setFocus(element)
{
    contentElement = document.getElementById("content");
    //doOnResize();
    try
    {        
	    var name = null;
	    if(element && element!=null)
	    {
	        name = element;
	    }else{
	        name = "viewer";
	    }
	    var obj = document.getElementById(name);    
        if(obj)
        {
            obj.focus();
        }    
    }catch(err)
    {
        //do nothing
        //alert(err);
    }
}
