function newWin(name, param) {
	var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
	//alert(name);
	
	if(name=="additem") {
		url = "additem.php?relation="+param;
		w = 301;
		h = 301;
		scrollbars = "no";
	}
	
	if(name=="login") {
		url = "login.php?message="+param;
		w = 301;
		h = 301;
		scrollbars = "no";
	}
	
	if(name=="introduction") {
		url = "introduction.html";
		w = 441;
		h = 401;
		scrollbars = "no";
	}
	
	if(name=="faq") {
		url = "faq.html";
		w = 440;
		h = 440;
		scrollbars = "yes";
	}
	
	if(w==0) {alert("Nothing set for this name");}
	x = (screen.availWidth - w) / 2
	y = (screen.availHeight - h) / 2
	settings = 'width='+w+',height='+h+',screenX='+x+',screenY='+y+'menubar=no,resizable=yes,scrollbars='+scrollbars+',scrollable='+scrollbars+',status=yes, locationbar=no,dependent=yes'
	win = window.open(url,name,settings)
	if(InternetExplorer) {win.moveTo(x,y)}
	win.focus()
}
