home *** CD-ROM | disk | FTP | other *** search
- var PrxLC=new Date(0);
- var PrxModAtr=0;
- var PrxInst;
- if(!PrxInst++) PrxRealOpen=window.open;
-
- function PrxOMUp(){PrxLC=new Date();}
- function PrxNW(){return(this.window);}
-
- function PrxOpen(url,nam,atr){
- if(PrxLC){
- var cdt=new Date();
- cdt.setTime(cdt.getTime()-PrxLC.getTime());
- if(cdt.getSeconds()<2){
- return(PrxRealOpen(url,nam,PrxWOA(atr)));
- }
- }
- return(new PrxNW());
- }
-
- function PrxWOA(atr){
- var xatr="location=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes";
- if(!PrxModAtr) return(atr);
- if(atr){
- var hm;
- hm=atr.match(/height\=[0-9]+/i);
- if(hm) xatr+="," + hm;
- hm=atr.match(/width\=[0-9]+/i);
- if(hm) xatr+="," + hm;
- }
- return(xatr);
- }
-
- window.open=PrxOpen;
-