
// error codes
ERR_CHG_PW = 'Incorrect Password.';
ERR_PW_MISMATCH = 'Your passwords did not match.';
ERR_USER_EXISTS = 'That user is already created.';
ERR_BAD_PW = 'Bad Username or Password';
ERR_USER_DISABLED = 'You need to validate this email first. Just click on the link we sent you.';
ERR_BAD_PASS = 'Sorry, that doesnt look like a valid password';
ERR_BAD_EMAIL = 'Sorry, that doesnt look like a valid email address';


// looks for the mainalertbox element on the page and then sets it with the given
// alert.
function showAlert(elem, errcode)
{
	var alertBox = document.getElementById(elem);
	alertBox.style.display='inline';
	alertBox.innerHTML = errcode;
}