var LOMSG = new String('Are you sure you want to logout?');

function init()
{
    if('function' == typeof cinit) 
    {
        cinit();
    }
    if('object' == typeof document.forms[0])
    {
        var frm = document.forms[0];
        var ilen = frm.length;
        for(var i = 0; i < ilen; i++)
        {
            var el = frm[i];
            if(el.type != 'hidden' && !el.disabled)
            {
                el.focus();
                break;
            }
        }
    }
}

function showObj(o)
{
    var str = '';
    try {
        for(x in o) str += x + ' is ' + o[x] + "\n";
        if(showObj.arguments.length > 1)
        {
            var winx = window.open();
            winx.document.write(str);
            winx.document.close();
            return;
        }
        alert(str);
    } catch(e) {
        alert(o + ' ' + e);
    }
}
