﻿// JScript File
    var supportWindow = null;
        
    function messageBox(msg)
    {
        window.alert(msg);
    }
    function Redirect(path)
    {
        window.location = path;  
    }
    function openBlogWindow()
    {
        window.open("~/helpcenter/knowledgebase/en/default.aspx");
    }
    function openSupportWindow(path)
    {
        if (!supportWindow || supportWindow.closed) 
        {
            supportWindow = window.open(path);
        } 
        else {
            supportWindow.focus();
        }
    }
    function flagClick(culturestr)
    {
        location.href = culturestr;
    }        
    function objectLinkHover(elemID)
    {
        document.getElementById(elemID).style.cursor = "pointer";
    }
    function objectMenuItemMouseOver(elemID)
    {
        //window.alert(elemID);
        var elem = document.getElementById(elemID);
        elem.style.cursor = "pointer";
        elem.style.textDecoration = "underline";
    }
    function objectMenuItemMouseOut(elemID)
    {
        var elem = document.getElementById(elemID);
        elem.style.cursor = "";
        elem.style.textDecoration = "";
    }
    function objectEnable(elemID)
    {
        document.getElementById(elemID).disabled = false;
    }
    function objectDisable(elemID)
    {
        document.getElementById(elemID).disabled = true;
    }
