﻿// JScript File
// For registering namespaces
window.Namespace = {
    
    Register : function(_Name)
    {
        var o = window;
        var x = false;
        for (var a = _Name.split("."); a.length > 0;)
        {
            var s = a.shift();
            if(a.length==0){ if(o[s]){x=true;} }
            if(!o[s]){o[s]={};}
            o = o[s];
        }
        
        if(x){ return 1; }
    }
}

window.System={};



window.GetElement = function(name)
{
    return document.all?document.all[name]:document.getElementById(name);
}
window.GetForm = function(name)
{
 var theForm = document.forms[name];
    if (!theForm)
        theForm = document.name;
    return theForm;
}
