function openNewWindow(url, name, width, height, resizable, scrollable) {
	var x = (screen.availWidth - width)/2;
	var y = (screen.availHeight - height)/2;
	var r = resizable ? "yes" : "no";
	var s = scrollable ? "yes" : "no";
	var features = "toolbar=no,location=no,status=yes,menubar=no,scrollbars="+s+",resizable="+r+",width="+width+",height="+height+",screenX="+x+",screenY="+y+",top="+y+",left="+x;
	window.open(url, name, features);
}

function popUp360(page){
	//var screenWidth = document.getElementById( this.flashContent ).width;
	//var screenHeight = document.getElementById( this.flashContent  ).height;
			
			
	//alert("width : " + screenWidth);
	var screenWidth = screen.width;
	var screenHeight = screen.height;
	
	var newX = (screenWidth/2) - 234;
	var newY = (screenHeight/2)  - 285;
	
	immersivewindow = window.open (page,"mywindow","location=0,status=0,scrollbars=0,resize=yes,width=468,height=600");
	immersivewindow.focus();
	
	
	immersivewindow.moveTo(newX,newY);
}


function spawn(url, nameW, w, h) {
	
	if (navigator.appVersion.indexOf('4') != -1) {
	// Vars for centering the new window on Version 4 Browsers
		x4 = screen.width/2 - (w/2);
		y4 = screen.height/2 - (h/2);
		popwin = window.open(url, nameW, 'height='+h+',width='+w+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + x4 + ',top=' + y4 + '');
	} else {
		popwin = window.open(url, nameW, 'height='+h+',width='+w+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=150,top=200');
	}
	popwin.remote = self;
}
	
function thisWindowFullSize() {
	
	var screenW;
	var screenH;
	
	if (parseInt(navigator.appVersion)>3) {
		//screenW = screen.width;
		//screenH = screen.height;
		screenW = screen.availWidth;
		screenH = screen.availHeight;
	} else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()) {
		var jToolkit = java.awt.Toolkit.getDefaultToolkit();
		var jScreenSize = jToolkit.getScreenSize();
		screenW = jScreenSize.width;
		screenH = jScreenSize.height;
	} 
		
	self.moveTo(0,0);
	self.resizeTo(screenW, screenH);
}

function popUnder(url, w, h){ 
            
           var x = (640 - w)/2; 
           var y = (480 - h)/2; 
            
           if (screen) { 
                var y = (screen.availHeight - w)/2; 
                var x = (screen.availWidth - h)/2; 
           } 
            
       
           window.open(url, 'newWindow', 'toolbar=no,location=no,scrollbars=no,status=no,resizable=Yes,fullscreen=no,width='+w+',height='+h+',screenX='+x+',screenY='+y+',top='+y+',left='+x); 
       
           window.focus(); 
      } 