window.name = 'main';

function getHeight()
{
    var ph; var ys; var wh;
    if (window.innerHeight && window.scrollMaxY) ys = window.innerHeight + window.scrollMaxY;
    else if (document.body.scrollHeight > document.body.offsetHeight) ys = document.body.scrollHeight;
    else if (document.documentElement && document.documentElement.scrollHeight > document.documentElement.offsetHeight) ys = document.documentElement.scrollHeight;
    else ys = document.body.offsetHeight;
    
    if (self.innerHeight) wh = self.innerHeight;
    else if (document.documentElement && document.documentElement.clientHeight) wh = document.documentElement.clientHeight;
    else if (document.body) wh = document.body.clientHeight;
    
    if(ys < wh) ph = wh;
    else ph = ys;
    
    h = (ph - 152) + "px";
    $('lhmenu').style.minHeight = h;
    $('lhmenu2').style.height = ph + "px";
}
function c_login()
{
    if(($('login').value != '') && ($('pass').value != '')) return 1;
    else return 0;
}
function c_login2($key)
{
    if(($('login').value != '') && ($('pass').value != '') && ($key == 13)) return 1;
    else return 0;
}
function delfile($id)
{
    if(document.getElementById($id).style.display == 'inline') document.getElementById($id).style.display = 'none';
    else document.getElementById($id).style.display = 'inline';
}


