function whoareSubs(no,name) {
    popWin = window.open('misc.cgi?state=whoaresubs&no='+no+'&name='+name,"popWin","width=600,height=300,resizable=yes,scrollbars=yes,left=1,top=1")
    popWin.focus()
}
function whoisRWGroup() {
    if( document.mform.rwgroup.value == '') {
        alert('You must select a group first!')
    }
    else {
        popWin = window.open('misc.cgi?state=whoisgroup&sgroup='+document.mform.rwgroup.value,"popWin","width=600,height=300,resizable=yes,scrollbars=yes,left=1,top=1")
    popWin.focus()
    }
}

function whoisROGroup() {
    if( document.mform.rogroup.value == '') {
        alert('You must select a group first!')
    }
    else {
        popWin = window.open('misc.cgi?state=whoisgroup&sgroup='+document.mform.rogroup.value,"popWin","width=600,height=300,resizable=yes,scrollbars=yes,left=1,top=1")
        popWin.focus()
    }
}
function whoisGroup() {
    if( document.sform.sgroup.value == '') {
        alert('You must select a group first!')
    }
    else {
        popWin = window.open('misc.cgi?state=whoisgroup&sgroup='+document.sform.sgroup.value,"popWin","width=600,height=300,resizable=yes,scrollbars=yes,left=1,top=1")
        popWin.focus()
    }
}

function submitCdocs(s,no) {
    document.formdir.state.value = s
    document.formdir.docno.value = no
    document.formdir.action = 'cdocs.cgi'
}
function submitCdocsGetdir(s,no) {
    document.formdir.state.value = s
    document.formdir.docno.value = no
    document.formdir.dirno.value = '-1'
    document.formdir.action = 'cdocs.cgi'
}
function submitDirSort(newdir,sort) {
    document.formdir.state.value = 'dir'
    document.formdir.action = 'cdocs.cgi'
    document.formdir.dirno.value = newdir
    document.formdir.smode.value = sort
}
function selectDownload() {
    document.sform.lock.value = ''
    document.sform.psbox.value = ''
    document.sform.pdocno.value = ''
    document.sform.action = 'download.cgi'
}
//alert('cdocs');

