function stopDef(e) {
if (e &&e.preventDefault) e.preventDefault();
else if (window.event && window.event.returnValue)
window.eventReturnValue = false;
}
function validsub() { 
	var spam_ans = -999;							   	
	var spam_ans = parseInt($("#spam_ans").val());
	var val_1 = parseInt($("#val_1").attr("rel"));
	var val_2 = parseInt($("#val_2").attr("rel"));
	var spamcheck = val_1 + val_2;
	if (spam_ans != spamcheck) { 
		alert("Spam verification has failed. Please enter the correct sum of the two digits to verify you are a real person");
		stopDef();
		return false;
	}
}

$(document).ready(function() {
});