function refreshCaptcha() { var captchaImage = document.getElementById('captchaImage'); captchaImage.src = '/Account/GenerateCaptcha?' + new Date().getTime(); }