function wopen(url, name, w, h) {
    w += 32;
    h += 96;
    var win = window.open(url,
      'popup', 
      'width=' + w + ', height=' + h + ', ' +
      'location=no, menubar=no, ' +
      'status=no, toolbar=no, scrollbars=no, resizable=no');
    win.resizeTo(w, h);
    win.focus();

    return false;
}

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);
    }
}

function setimg(img, num) {
    document.getElementById('immm').src = "/images/catalog/" + img;
    for (i = 1; i<6; i++) {
        var it = document.getElementById('imtab' + i);
        if (it != null)
            it.className = "noact";
    }
    document.getElementById('imtab' + num).className = "act";    
}