function popup(theURL, winName, features) { //v2.0

    //window.open(theURL,winName,features);

    window.open(theURL, 'artnet', 'scrollbars=yes,resizable=yes,width=998,height=590');

}



function internpopup(theURL, winName, features) { //v2.0

    window.open(theURL, winName, features);

}

function printpopup(id, type) { //v2.0

    window.open('print.jsp?type=' + type + '&id=' + id, 'Print', 'scrollbars=yes,resizable=yes,width=600,height=590');

}



var _win = null;

function openGuide() {

    if (_win != null && !_win.closed) {

        _win.focus();

    } else {

        _win = window.open('/productguide.do', 'guide', 'scrollbars=yes,resizable=yes,width=850,height=590');

        if (_win.opener == null) {

            _win.opener = self;

        }

        _win.focus();

    }

}



function serach() {
    oForm = document.createElement("form");
    oForm.action = "./regado.jsp";
    oForm.method = "POST";
    oHdn = document.createElement("input");
    oHdn.type = "hidden";
    oHdn.name = "query";
    oHdn.value = document.getElementById("query").value;
    oForm.appendChild(oHdn);
    oType = document.createElement("input");;
    oType.type = "hidden";
    oType.name = "type";
    oType.value = "search";
    oForm.appendChild(oType);
    document.body.appendChild(oForm);
    oForm.submit();
}