function popUp(page,width,height,name) {
	var wleft = (screen.width - width) / 2;
	var wtop = (screen.height - height) / 10;
	winprops = 'height='+height+',width='+width+',top='+wtop+',left='+wleft+',menubar=yes,resizable=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=no'
	var newwin = window.open(page, name, winprops);
	newwin.focus();
}

function joinPopUp(option) {
	popUp('/joinus/index.php?',800,700,'joinus');
}

function passwordPopUp(option) {
	popUp('/lostpassword.php',800,700,'password');
}

function popUp2(page,width,height,name) {
	var wleft = (screen.width - width) / 2;
	var wtop = (screen.height - height) / 10;
	winprops = 'height='+height+',width='+width+',top='+wtop+',left='+wleft+',menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=no'
	var newwin = window.open(page, name, winprops);
	newwin.focus();
}