 
function openWindow(url, width, height)
        {
                agent=navigator.userAgent.toLowerCase();
                major=parseInt(navigator.appVersion);
                minor=parseFloat(navigator.appVersion);
                ns=((agent.indexOf('mozilla')!=-1)&&((agent.indexOf('spoofer')==-1)&&(agent.indexOf('compatible')==-1)));
                ns3=(ns&&(major==3));
                ns4=(ns&&(major>=4));
                ie=(agent.indexOf('msie')!=-1);
                ie3=(ie&&(major==2));
                ie4=(ie&&(major>=4));
                op3=(agent.indexOf('opera')!=-1);
				var vindo;

                if (ie3||ns3||op3)
                {
                        options='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,';
                        options=options+'resizable=0,'+',width='+width+',height='+height;
                        vindo=window.open(url,'diapo',options);
                }
                else if (ie4||ns4)
                {
                        x=(screen.width/2)-(width/2);
                        y=(screen.height/2)-(height/2);
                        options='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,';
                        options=options+'resizable=0,'+'left='+x+',top='+y;
                        options=options+',width='+width+',height='+height;
                        vindo=window.open(url,'diapo',options);
                }
				if (ie3||ns3||op3||ie4||ns4) vindo.focus();
        }

