// JQUERY on ready check paypal validation
jQuery(document).ready(function() {
	jQuery('form').submit(function() {
		if (jQuery('input.verify_tc', this).length > 0) {
			if (jQuery('input.verify_tc', this).attr('checked') == false) {
				alert("You must agree to our Terms and Conditions in order to purchase this product.");
				return false;
			}
		}
	});
});

// JavaScript Document
/*
window.onload = function()
{
	var theButton = document.getElementById('paypalButton');
	var agreed 		= false;
	var theCheckbox = document.getElementById('verify_t+c');

	theButton.onclick = function()
	{
		if(!agreed)
		{
			alert("You must agree to our Terms and Conditions in order to purchase this product.");

			// Return false if they've not agreed to the terms:
			return false;
		}
	}

	// A function to toggle the agreement when they click on the checkbox:
	theCheckbox.onclick = function()
	{
		agreed = this.checked;
	}
}
*/