var x = 0;
function refreshCaptcha()
{
    var captcha = document.getElementById("captchaimg");
    captcha.setAttribute('src', '../captcha.php#' + x);
    ++x;
}


