//function formSubmit(){
function getPostAnswer(){
		var response;
		var temp;
		var main;
		var second;

		var content = document.getElementById('content');
		var informationbar = document.getElementById('informationbar');
		var email = document.lostpw.email.value;
		
		var ajax = newAjax();
		ajax.open("POST", "lostpw.php",true);
		ajax.onreadystatechange=function() {
			if (ajax.readyState==4) {
			
				document.getElementById('formEmail').className = "MediumFormItem";
				informationbar.className ="ActiveIB"
			
				response = ajax.responseText;
				
				if (response == "error=0"){
					main = "Please check your email.";
					second = "You will receive instructions for password recovery.";
					informationbar.innerHTML = '<table width="600" border="0" cellpadding="0" cellspacing="0" class="GreenInformationBar"><tr><td height="5" id="ibupper"></td></tr><tr><td id="ibmiddle"><table width="600" border="0" cellspacing="0" cellpadding="0"><tr><td width="5"></td><td width="590"><table width="590" border="0" cellspacing="0" cellpadding="0"><tr><td id="ibmaintxt">'+main+'</td><td id="ibclosetxt"><span class="Link" onclick="closeInformationBar()">close</span></td></tr><tr><td id="ibsecondtxt">'+second+'</td><td></td></tr></table></td><td width="5"></td></tr></table></td></tr><tr><td height="5" id="iblower"></td></tr></table>';
					content.innerHTML = '';
				} else {
					main = "Please check the information you submitted.";
					temp = response.substr(6);
					switch(temp){
						case "1":
							second = "Invalid email address.";
							document.getElementById('formEmail').className = "MediumFormItemError";
							break;
						case "2":
							second = "You forgot to enter your email address.";
							document.getElementById('formEmail').className = "MediumFormItemError";
							break;
						case "3":
							second = "No records found matching your email address.";
							document.getElementById('formEmail').className = "MediumFormItemError";
							break;
						default:
							second = "Unknown error:<br>"+response;
							break;
					}
					informationbar.innerHTML = '<table width="600" border="0" cellpadding="0" cellspacing="0" class="RedInformationBar"><tr><td height="5" id="ibupper"></td></tr><tr><td id="ibmiddle"><table width="600" border="0" cellspacing="0" cellpadding="0"><tr><td width="5"></td><td width="590"><table width="590" border="0" cellspacing="0" cellpadding="0"><tr><td id="ibmaintxt">'+main+'</td><td id="ibclosetxt"><span class="Link" onclick="closeInformationBar()">close</span></td></tr><tr><td id="ibsecondtxt">'+second+'</td><td></td></tr></table></td><td width="5"></td></tr></table></td></tr><tr><td height="5" id="iblower"></td></tr></table>';
				}
			} else {
				//Sending...
			}
		}
		ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
		ajax.send("email="+email);
	}
	
	function closeInformationBar(){
		document.getElementById('informationbar').className ="HiddenIB";
		document.getElementById('informationbar').innerHTML = "<!-- Information Bar -->";	
	}