var NewWinPopWindow=null; function NewWinPop(mypage,myname,type,w,h,pos,infocus,scrollbar,resize) { if(type=='normal') { if(pos=='random') { LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100; TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100; } if(pos=='center') { LeftPosition=(screen.width)?(screen.width-w)/2:100; TopPosition=(screen.height)?(screen.height-h)/2:100; } else if((pos!='center' && pos!='random') || pos==null) { LeftPosition=0;TopPosition=0; } settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=' + scrollbar + ',resizable=' + resize + ',dependent=yes'; NewWinPopWindow=window.open('',myname,settings); } else { settings='fullscreen=yes'; NewWinPopWindow=window.open('',myname,settings); } if(infocus=='front') { NewWinPopWindow.focus(); } NewWinPopWindow.location=mypage; } function NewWinModeless(url,mwidth,mheight) { if (document.all&&window.print) //if ie5 eval('window.showModelessDialog(url,"","help:0;resizable:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")') else eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=0,scrollbars=0")') }