function checkForm() {

 if (document.login.email.value == "")
	{
		alert('Please enter your email address');
		return false;
	}	
 else if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.login.email.value))
	{
		alert('Please enter a valid email address');
		return false;
	}
 else if (!(document.login.password.value.match(/^[a-zA-Z0-9]+$/)))
	{
		alert('Password can contain letters and numbers only');
		return false;
	}		
	return true;	
}

function openHowtoWin() {
	window.open("how-to-sell.php","window","width=490,height=440,left=50,top=50,location=0,menubar=0,scrollbars=1,status=0,titlebar=1,toolbar=0");
}

function openTermsWin() {
	window.open("terms-popup.php","window","width=590,height=460,left=50,top=50,location=0,menubar=0,scrollbars=1,status=0,titlebar=1,toolbar=0");
}
