function CJpopupbox(url, name, w, h, scroll, no, yes) {
        
	if(arguments.length == 7) {
        var z = window.open(url, name, 'width='+ w + ',' + 'height='+ h + ',' + 'location='+ no + ',' + 'scrollbars=' + scroll + ',' + 'status='+ no + ',' + 'directories='+ no + ',' + 'menubar='+ no + ',' + 'resizable='+ yes + ',' + 'screenX=Window.screenX' + ',' + 'left=screenX' + ',' + 'screenY=Window.screenY' + ',' + 'top=Window.screenY');
   	z.focus();
	} else if(arguments.length == 8) {
		
			if(arguments[7] == 'center') {		
				var a = "toolbar=" + no + ",location=0,directories=0,status=0,menubar=" + no + ",scrollbars=" + scroll;
				var b = ",resizable=0";
				var c = ",width="+w+",height="+h;
				if (document.all)
				{
					w = w - 0; h = h - 0;
					w += 12;
					h += 38;
				}
				
				var windowW = w;
				var windowH = h;
			        
				var windowX = Math.ceil((window.screen.width  - windowW) / 2);
				var windowY = Math.ceil((window.screen.height - windowH) / 2);
		
				var aol_browser_detect = /([AOL])/;
				var aol_browser_result = aol_browser_detect.exec(navigator.userAgent);
	
				if (navigator.appName == "Netscape") {
					var splashWin = window.open(url, name, ""+a+""+b+c);
					splashWin.moveTo(windowX , windowY);
					splashWin.focus();
						
				} else if (aol_browser_result) {// Tested on AOL 6.0
					//alert("you are using an AOL browser");
					var splashWin = window.open(url,name, "fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+c)
				} else {
					var splashWin = window.open(url, name, ""+a+""+b+c);
					splashWin.moveTo(Math.ceil(windowX) , Math.ceil(windowY));
					splashWin.resizeTo(Math.ceil(w) , Math.ceil(h));
					//window.blur();
					splashWin.focus();
				}	
			}

	}		   


	       
}
