function checkCaptcha() {
	if ( document.getElementById('CAPTCHA1') ) {
		if ( document.getElementById('CAPTCHA1').value.toLowerCase() != '10' ) {
			alert('Sorry, you did not answer the math problem correctly.');
			return false;
		}
		document.getElementById('contact_form1').action='http://www.motorcityinteractive.com/Scripts/webform.php';
	} else {
		if ( document.getElementById('CAPTCHA').value.toLowerCase() != '10' ) {
			alert('Sorry, you did not answer the math problem correctly.');
			return false;
		}
		document.getElementById('contact_form').action='http://www.motorcityinteractive.com/Scripts/webform.php';
	}
}

function checkCaptchaReg() {
	if ( document.getElementById('CAPTCHA').value.toLowerCase() != '10' ) {
		alert('Sorry, you did not answer the math problem correctly.');
		return false;
	}
	document.getElementById('contact_form').action='/contact-us/patient-registration/confirm/index.php';
}

