function fnDosubmit(){
	if ($("#form").valid()){
		$('#dialog').jqmShow();
		$.postJSON("services/forgotten_password.php",$("#form").serialize(),
			function(data){
				if (data.status=='0'){
					$("#form_area").html("<img src=\"images/spacer.gif\" width=\"1\" height=\"80\" border=\"0\" alt=\"\" /><h1 align=\"center\">Mail Sent. Thank You!!!</h1><img src=\"images/spacer.gif\" width=\"1\" height=\"100\" border=\"0\" alt=\"\" />");
				}else if (data.status=='1'){
					alert('The code did not match. Please try again.');
					document.getElementById('captcha').src = 'includes/securimage/securimage_show.php?' + Math.random();
				}else if(data.status=='2'){
					alert('Check that your email address is correct.');
					document.getElementById('captcha').src = 'includes/securimage/securimage_show.php?' + Math.random();
				}else{
					alert('An error occured, please try again later.');
					document.getElementById('captcha').src = 'includes/securimage/securimage_show.php?' + Math.random();
				}
				$('#dialog').jqmHide();
			});
	}
}
$.postJSON = function(url, data, callback) {
	$.post(url, data, callback, "json");
};