nn4 = (document.layers)? true : false;
ie4 = (document.all)? true : false;
dom = (document.createTextNode)? true : false;


var imgPreload = new Array();
imgPreload[0] = new Image();
imgPreload[1] = new Image();
imgPreload[2] = new Image();
imgPreload[0].src = '/_i/scut-feedback-over.gif';
imgPreload[1].src = '/_i/scut-search-over.gif';
imgPreload[2].src = '/_i/scut-home-over.gif';


function popup(fileUrl, winW, winH, winN) {
        var status = 'yes';
        var menubar = 'no';
        var scrollbars = 'yes';
        var winWidth = (winW)? winW : 700;
        var winHeight = (winH)? winH : 720;
        var winName = (winN)? winN : 'popupWin';
        if (nn4||ie4||dom) {
                if (screen.width < winWidth + 50) { winWidth = screen.width - 50; scrollbars = 'yes' }
                if (screen.height < winHeight + 180) { winHeight = screen.height - 180; scrollbars = 'yes' }
                posX = Math.round((screen.width - winWidth) / 2);
                posY = Math.round((screen.height - winHeight) / 2.5);
                posCode = ",screenX="+posX+",screenY="+posY+",left="+posX+",top="+posY;
        } else {
                posCode = "";
        }
        var popupWin = window.open(fileUrl, winName,"menubar="+menubar+",toolbar=no,resizable=yes,scrollbars="+scrollbars+",status="+status+",width="+winWidth+",height="+winHeight+posCode);
        if (popupWin) popupWin.focus();
        return false;
}


