function checkCAPTCHA()
{
        var securityCode = document.forms['ContactForm'].elements['security_code'].value;
        var ajaxQuery = "security_code="+securityCode;
        
	new Ajax.Request("/Global/CheckCAPTCHA.php",{parameters:ajaxQuery,onSuccess:processCAPTCHA});	
}

function processCAPTCHA(t)
{
	if(t.responseText == "Yes")
	{
		MM_validateForm('first_name','','R','last_name','','R','email','','R','phone','','R','zip','','R');

		if(document.MM_returnValue)
			document.forms['ContactForm'].submit();
	}
	else
	{
		alert("The security code you entered does not match, please try again.");
	}
}
