$(document).ready(function(){
	$('#reglink').click(function(){
		$('#enter').slideUp(function(){
			$('#register').css({visibility: 'visible'});
		});
		return false;
	});
	$('#goregister').click(function() {
		$('#regresults').load('reg.php', {rlogin: document.getElementById('rlogin').value, rpassword: document.getElementById('rpassword').value});
		return false;
	});
	$('#enterform').submit(function() {
		$('#regresults').load('reg.php', {elogin: document.getElementById('elogin').value, epassword: document.getElementById('epassword').value});
		return false;
	});
});