        function openBrWindow(theURL,winName,features) {
  		    x = window.open(theURL,winName,features);
  		    x.focus();
        }

        function opendownloadwin(url) {
            downloadwin = this.open(url, "Download", "menubar=no,toolbar=yes,status=yes,innerheight=430,innerwidth=430,width=430,height=430,scrollbars=yes,resizable=yes");
            downloadwin.focus();
            return false;
        }

        function openpopupwin(url, w, h, fixed, pName) {
            if (!w) {
                w = 430;
            }
            if (!h) {
                h = 430;
            }
            if (!pName) {
                pName = 'PopUp';
            }

            if (fixed == true){
                popupwin = this.open(url, pName, "innerwidth="+w+",innerheight="+w+",width="+w+",height="+h+",scrollbars=no,resizable=no,status=no");
            } else {
                popupwin = this.open(url, pName, "innerwidth="+w+",innerheight="+w+",width="+w+",height="+h+",scrollbars=yes,resizable=yes,status=yes");
            }
            
            popupwin.focus();
            
            return false;
        }
