﻿/// <reference path="../jquery/jquery.pack.vsdoc.js" />
Ajax_handle_verifycode_url = "/ajaxService/sys/VerifyCode.ashx";
$(function() {
    $("#verifyimg")
    .prepend('<img id="imgVerify" style="vertical-align:middle;" />')
    .find("img#imgVerify")
    .attr({ src: Ajax_handle_verifycode_url,title: $(".tbVerify").attr("title") })
    .click(function() { refreshVerifyCode(); })
    .end()
    .find("a")
    .focus(function () {this.blur();})
    .click(function() { refreshVerifyCode(); });
});
function refreshVerifyCode() {
    var obj = $("img#imgVerify");
    obj.attr("src", Ajax_handle_verifycode_url + "?token=" + Math.round((Math.random()) * 100000000));
}
