/* This script enables the "Submit Comment" button only when the "I have read and agree to the Terms and Conditions checkbox is selected */

$(document).ready(function() {
	$("form#commentform input#submit").attr("disabled","disabled");
	
	$("form#commentform input#agree_to_terms").change(function() {
		if (this.checked) {
			$("form#commentform input#submit").attr("disabled","");
		} else {
			$("form#commentform input#submit").attr("disabled","disabled");
		}
	});
});