//
theform = document.forms.captcha.innerHTML;
if(theform.indexOf("domain") >0){ // the error messages is something like "isn't authorized for this domain"
  location.pathname = "/contact/webmail.php?proxy=yes";
}

