function initBuy() {
	init();
	updateProgram();
}
	
function updateProgram() {
	for (var i = 0; i < document.paypalForm.product.length; i++) {
		if (document.paypalForm.product[i].checked == true) {
			document.paypalForm.purchaseButton.disabled = false;
		}
	}
}

function updateEmailField() {
	var enabled = document.paypalForm.list.checked;
	document.paypalForm.email.disabled = !enabled;
	if (enabled)
		document.paypalForm.email.focus();
	else
		document.paypalForm.email.value = "";
}

function joinList() {
	var join = document.paypalForm.list.checked;
	if (join) {
		var email = document.paypalForm.email.value;
		if (email != "") {
			var address = 'http://likethought.com/lists/join/?list=opacity&email=' + email;
			window.open(address,'','width=540,height=240');
		}
	}
}
