function OnResetPasswordHTMLLoaded() {
	//alert('you are here');
  try{ 
    $('.error').hide();  
    $(".button").click(function() {
      $('.error').hide();
			var Username_reset = $("input#Username_reset").val();
       if (Username_reset == "") {  
        $("label#Username_reset_error").show();  
        $("input#Username_reset").focus();  
        return false;  
      }  
	    var dataString = (
			  'request=ResetPassword' +
    	  '&Username_reset=' + Username_reset);
      //alert (dataString);return false;
      $.ajax({
        type: "POST",
        url: "/reg_sys/pwd_reset.php",
        data: dataString,
        success: function() {
          $('#ajax_content').html("<div id='message'></div>");
          $('#message').html("<h2>Password Reset Successfull!</h2>")
          .append("<p>Your password was reset and emailed to the address provided during registration.</p>")
          .hide()
          .fadeIn(1500, function() {
            $('#message').append("<img id='checkmark' src='images/login/check.png' />");
          });
        }
      });
      return false;
    });
	}
	catch(err){
		alert("Bad");
	  return false;
	}  
};