// JavaScript Document

function renderPasswordReset() { 
    $.ajax({
        url: 'includes/spryPush/login/renderPasswordReset.php',
        success: function(html){
            $("#loginForm").html(html);
            $("#passReset").ajaxForm(function(msg){
                $("#msg").html("<span class='reset_msg'>"+msg+"</span>");
            })
        }
    })
}

$(document).ready(function(){
    $("#reset_request").live("click", function(){
        $("#passReset").submit();
    })
    
    $("#txtUsername").keypress(function(e){
        if(e.keyCode==13){
            document.loginForm.submit()
        }
    })
    
    $("#txtPassword").keypress(function(e){
        if(e.keyCode==13){
            document.loginForm.submit()
        }
    })
})
