function wopen(url, name, w, h) {
    w += 32;
    h += 96;
    var win = window.open(url,
      name, 
      'width=' + w + ', height=' + h + ', ' +
      'location=no, menubar=no, ' +
      'status=no, toolbar=no, scrollbars=no, resizable=no');
    win.resizeTo(w, h);
    win.focus();
}

function showsub(id) {
    document.getElementById('scrmenu'+id).style.display = 'block';
}

function hidesub(id) {
    document.getElementById('scrmenu'+id).style.display = 'none';
}

function chsub(id) {
    var dsp = document.getElementById('scrmenu'+id).style.display;
    if (dsp == 'none')
        showsub(id);
    else
        hidesub(id);
}
