﻿function RefreshCaptcha()
{

    var control = arguments[0];//
    var control1 = $('img_SpecificCode');
    if(control.id == 'img_SpecificCode')
        control1 = $('img_SpecificCode1');
    new Ajax.Request("../VNVN_Web/VNVN_19_Server.aspx",
    {
        method: "post", // Setup Method            
        parameters: 
        {
            cmd     : 2030
        }, // Add Parameters
        onSuccess: function(transport)
        {            
            control.src = transport.responseText; 
            control1.src = transport.responseText; 
        },   
        onFailure: function(){ alert(sError);return false;} // Event Failure --> do...     
        
    });
      
}
function SetCaptcha()
{
    var control1 = $('img_SpecificCode1');
    var control = $('img_SpecificCode');
    if(control)
        control.onclick = this.RefreshCaptcha.handle(this,control);
    if(control1)
        control1.onclick = this.RefreshCaptcha.handle(this,control1);
}
function SetCaptcha111(id)
{
    if($(id))
        $(id).onclick = this.RefreshCaptcha.handle(this,$(id));
}