function xAddLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    }
    else {
        window.onload = function() {
            if (oldonload) {
                oldonload();
            }
            func();
        }

    }
}

function xGetElementById(e) {
    if (typeof (e) == 'string') {
        if (document.getElementById) e = document.getElementById(e);
        else if (document.all) e = document.all[e];
        else e = null;
    }
    return e;
}

//Shortcut to GetElementById
function el(e) {
    return xGetElementById(e);
}

function IE6()
{
    if(navigator.appName == 'Microsoft Internet Explorer' && navigator.appVersion.indexOf('MSIE 6.0') > 0)
        return true;
    else
        return false;
}

function IE() {
    if (navigator.appName == 'Microsoft Internet Explorer')
        return true;
    else
        return false;
}

var strOldStatusText;
function SetStatusBar(strStatus)
{
    strOldStatusText = window.status;
    window.status = strStatus;
}

function RestoreStatusBar()
{
    window.status = strOldStatusText;
}
