function acceptRules()
{
	if(document.enabler.check.checked) {
		document.enabler.button.disabled=false;
	}
	else {
		document.enabler.button.disabled=true;
	}
}

function updateLink()
{
	var selector = document.getElementById('amount');
	var selected = selector.options[selector.selectedIndex];
	var returnInput = document.getElementById('return');
	returnInput.value=returnInput.value+'&amount='+selected.value;
}

function Popup(site,w,h) {
	var l = Math.floor((screen.width-w)/2);
	var t = Math.floor((screen.height-h)/2);
	window.open(site,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}