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 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);
}