var captchaimg = 'CAPTCHA code'; document.write (captchaimg)