function new_captcha()
{

    // loads new freeCap image
    if(document.getElementById)
    {

        // extract image name from image source (i.e. cut off ?randomness)
        thesrc = document.getElementById("captcha1").src;
        //thesrc = thesrc.substring(0,thesrc.lastIndexOf(".")+4);
        thesrc = thesrc.substring(0,thesrc.lastIndexOf("/")+1);

        // add ?(random) to prevent browser/isp caching
        document.getElementById("captcha1").src = thesrc+"?"+Math.round(Math.random()*100000);
        
    } else {
        alert("Sorry, cannot autoreload captcha image\nSubmit the form and a new captcha will be loaded");
    }
}