﻿// JScript File

//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
function ReloadWindow() {
    window.location.href = window.location.href;    
}

//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
function CloseWindow() {
    window.close();    
}

//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
function OpenWindow(url, name, width, height) {
    alert("text");
    OpenWindow(url, name, height, width, false);
}

//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
function OpenWindow(url, name, width, height, enableScrollbars) {
    OpenWindow(url, name, height, width, enableScrollbars, false);
}

//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
function OpenWindow(url, name, width, height, enableScrollbars, resizable) {
	if(navigator.appName.indexOf("WebTV")!=-1)
		window.location.href=url;
	else
	{
	    winhandle=window.open(url, name, "width=" + width + ",height=" + height + ",scrollbars=" + GetWindowBoolString(enableScrollbars) + ",resizable=" + GetWindowBoolString(resizable) + ",status=no,menubar=no");
		winhandle.focus();
	}
}

//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
function GetWindowBoolString(value) {
    if(value) 
        return "yes";
    else
        return "no";   
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
function showDiv(layerName) {
	document.getElementById(layerName).style.display="block";
} 
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
function hideDiv(layerName) {
	document.getElementById(layerName).style.display="none";
} 

//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
function ActivateObjects() {
    if(navigator.appName == "Microsoft Internet Explorer") {
        var objects = document.getElementsByTagName("object");
        for (var i = 0; i < objects.length; i++)
        {
            objects[i].outerHTML = objects[i].outerHTML;
        }
    }
}
