function openSignUp() {
	height = screen.availHeight -500;
	width  = screen.availWidth - 550;	
	off_x  = Math.floor(width / 2);
	off_y  = Math.floor(height / 2);
	
	window.open("signup.php", "signuppage", "width=550,height=430,left=" + off_x + ",top=" + off_y + ",location=no,menubar=no,resizable=no,toolbar=no,status=no");
}

height = screen.availHeight -500;
width  = screen.availWidth - 700;	
off_x  = Math.floor(width / 2);
off_y  = 400;

function playersOnline() {
	window.open("stats/playersonline.php", "playersonline", "width=700,height=135,left=" + off_x + ",top=" + off_y + ",location=no,menubar=no,resizable=no,toolbar=no,status=no");
}

function characters() {
	window.open("stats/characters.php", "playercharacters", "width=700,height=135,left=" + off_x + ",top=" + off_y + ",location=no,menubar=no,resizable=no,toolbar=no,status=no");
}

function guilds() {
	window.open("stats/guilds.php", "playerguilds", "width=700,height=135,left=" + off_x + ",top=" + off_y + ",location=no,menubar=no,resizable=no,toolbar=no,status=no");
}

function accounts() {
	window.open("stats/accounts.php", "playeraccounts", "width=700,height=135,left=" + off_x + ",top=" + off_y + ",location=no,menubar=no,resizable=no,toolbar=no,status=no");
}

function murderCounts() {
	window.open("stats/counts.php", "playermurdercounts", "width=700,height=135,left=" + off_x + ",top=" + off_y + ",location=no,menubar=no,resizable=no,toolbar=no,status=no");
}

function guildWars() {
	window.open("stats/wars.php", "guildwars", "width=700,height=135,left=" + off_x + ",top=" + off_y + ",location=no,menubar=no,resizable=no,toolbar=no,status=no");
}

function ping() {
	height = screen.availHeight -500;
	width  = screen.availWidth - 696;	
	off_x  = Math.floor(width / 2);
	off_y  = 400;
	window.open("stats/ping.php", "ping", "width=695,height=122,left=" + off_x + ",top=" + off_y + ",location=no,menubar=no,resizable=no,toolbar=no,status=no");
}