// JavaScript Document

function soBeIt(myform,mypwd,mymd5pwd){
    var pass = document.forms[myform].elements[mypwd].value;
    var buf = MD5(pass);
    document.forms[myform].elements[mypwd].value = '';
    document.forms[myform].elements[mymd5pwd].value = buf;

    return true;
}

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    TopPosition = TopPosition-20;
    settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
    win = window.open(mypage, myname, settings)
}

var expand = '';
function toggle(idTbody) {
    if (expand != 'no')
    {
        if (document.getElementById(idTbody).style.display == 'none')
        {
            document.getElementById(idTbody).style.display = '';
        }
        else if (document.getElementById(idTbody).style.display == '')
        {
            document.getElementById(idTbody).style.display = 'none';
        }
    }
}

