function RemoveFrames() { if (self.location != top.location) top.location = self.location; } function pPopUp(url,w,h,s,r){ var newWin=window.open(url,'ncmain','width='+w+',height='+h+',left=100,top=100,toolbar=no,status=no,menubar=no,location=no,scrollbars='+s+',resizable='+r+',dependent=0'); newWin.focus(); } function gPopUp(url,name,w,h,s,r,t,b){ if(b==null||b=='')b=1 var newWin=window.open(url,name,'width='+w+',height='+h+',left=100,top=100,toolbar='+t+',status='+b+',menubar=0,location=0,scrollbars='+s+',resizable='+r+',dependent=0'); newWin.focus(); } function doNothing(){} function saveSessionCookie(sSessionID, sExpDate) { var expdate = new Date(sExpDate); document.cookie = "SessionID=" + escape(sSessionID) + "; expires=" + expdate.toGMTString() + "; path=/"; } // saveSessionCookie() function GetHeightWidth(height, width) { var xposition=0, yposition=0, text; if((parseInt(navigator.appVersion) >= 4)) { xposition = (screen.width - width) / 2; yposition = (screen.height - height) / 2; } text = "height=" + height + ",width=" + width + ",screenx=" + xposition + ",screeny=" + yposition + ",left=" + xposition + ",top=" + yposition; return(text); } function OpenPopupWin(nPopupID) { window.open('/popup.asp?q=' + nPopupID, 'popup' + nPopupID.toString(), GetHeightWidth(300, 400) + ',location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,hotkeys=0'); } function openNewWindow(sPage, sProperties) { window.open(sPage, sPage.toString().substring(sPage.toString().lastIndexOf("/") + 1, sPage.toString().indexOf(".")), sProperties); } // openNewWindow() function helpPop(nHelpID, sProperties) { window.open('helppop.asp?h=' + nHelpID.toString(), 'helppop_' + nHelpID.toString(), sProperties); } // openNewWindow() function launchWindow(strURL, strName, intWidth, intHeight, strProperties) { var mywin; var intVersion; var dummyDate = new Date(); intVersion = navigator.appVersion.substring(0,1); if (strURL != "") { if (strURL.indexOf("?") != -1) { strURL = strURL + "&rnd=" } else { strURL = strURL + "?rnd=" } strURL = strURL + dummyDate.getTime(); strURL = Replace(strURL,"@","%40"); } if (strProperties == "") { strProperties = "scrollbars=yes,resizable=yes,menubar=no,location=no,directories=no,toolbar=no"; } strProperties = "status=yes,height=" + intHeight + ",width=" + intWidth + "," + strProperties; // replace all non-alphacharacters with X if(strName.replace) strName = strName.replace(/\W/g,"X"); // lower case the string strName = strName.toLowerCase(); mywin = window.open(strURL, strName, strProperties); mywin.name = strName if (mywin.opener == null) mywin.opener = self; } function ViewProfile (url,user,q) { var qs=q+"&un=" + user; gPopUp(url+'members/profile.asp?'+qs,'profile',635,620,1,0,0,0); }