function turnOnMail(){
		// By John Bell. Takes a reversed <span class='activemail'> and turns it into an active link.
		// Have to do this in two steps since there is no getElementsByClassName yet. 8P
		var spans = document.getElementsByTagName('span');
		for(i=0; i<spans.length; i++){
			if(spans[i].className == 'activemail'){
				// There's no string.reverse(), either. 8P
				var reversed = spans[i].innerHTML;
				var address = '';
				for(j=reversed.length - 1; j>=0; j--) address += reversed.charAt(j);
				spans[i].innerHTML = '<a href="mailto:'+address+'">'+address+'</a>';
			}
		}
}

// TODO: replace this with something more intuitive in PHP
function doForgotPassword() {
    var form = document.getElementById('formLogin');
    if (form.login_email.value.indexOf('@') == -1 || form.login_email.value.indexOf('.') == -1) {
  	  alert("Please enter your email address in the Sign In area's \"email\" field.  This is the email address we will send your password to.");
  		return;
  	}
    if (confirm("Pressing 'Ok' will send your password to the email address you have entered above.  Are you sure you wish to send your password to the email address?")) {
  	  form.action.value = 'doForgotPassword';
  		form.submit();
  	}
  	return;
}
