function checkRegFrm(frm) {
	if (frm.email_address.value == '') { alert('Please enter your e-mail address.'); frm.email_address.focus(); return false; }
	if (frm.bday_month.value == '') { alert('Please enter your birth date.'); frm.bday_month.focus(); return false; }
	if (frm.bday_day.value == '') { alert('Please enter your birth date.'); frm.bday_day.focus(); return false; }
	if (frm.bday_year.value == '') { alert('Please enter your birth date.'); frm.bday_year.focus(); return false; }
}

function openForums() {
	window.open('http://www.namco.com/forums/viewforum.php?f=73', 'arcforums');
}

function openRegistration() {
	openWinCentered('remote/registration_check.php', 'arcreg', 516, 500, 1, 1);
}

function openWallpaper(i) {
	window.open('downloads/wallpapers/'+i);
}

function openIcon(i) {
	openWinCentered('icon.php?n='+i, 'icon', 500, 250, 0, 0);
}

function openVid(vid, format, ver) {
	openWinCentered('video.php?vid='+vid+'-'+ver+'&format='+format, 'arcvid', 500, 400, 0, 0);
}

function openGame() {
	//return false;
	window.open('http://www.hypemakers.net/arc-game/');
}

function openWin(url, name, w, h, perc, scroll, resize) {
	var winX = (screen.availWidth - w)*perc*.01;
	var winY = (screen.availHeight - h)*perc*.01;
	popupWin = window.open(url, name,'width=' + w + ',height=' + h + ',left=' + winX + ',top=' + winY + ',scrollbars=' + scroll + ',resizable=' + resize);
}

function openWinCentered(mypage, myname, w, h, scroll, resize) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resize;
	win = window.open(mypage, myname, winprops)
}