#534168: refactored code for getting posted CAPTCHA info (makes code cleaner) and added workaround for IE7 issue