/*This script is necessary for the functioning of the CAPTCHA image verification of the srrcformmailer.php script and should not be altered or moved*/

var nReload = 5;

function NewVerifyImage()
{
    if (nReload <= 2)
        if (nReload <= 0)
        {
            alert("Sorry, you have reloaded the verification image too many times. You will have to hit your browser's reload button and fill out the form again.");
            return;
        }
        else
            alert("Only " + nReload + " more reloads of the image are allowed");
    nReload--;

        //
        // This code now works in both IE and FireFox
        //
    var         e_img;

    e_img = document.getElementById("vimg");
    if (e_img)
                //
                // FireFox attempts to "optimize" by not reloading
                // the image if the URL value doesn't actually change.
                // So, we make it change by adding a different
                // count parameter for each reload.
                //
        e_img.setAttribute("src",e_img.src+'?count='+nReload);
}
