function checkJavascript() {
	


document.getElementById('noJavascriptLinks').style.display = 'none';


document.getElementById('javascriptLinks').style.display = 'block';


}

function generateURL() {

var userID = 'A1134591';
var product = 'Donation+$';
var units = '1';
var urlString = 'http://ww8.aitsafe.com/cf/add.cfm?userid=';


var price;

var amount = document.contributeForm.contributionAmount;


for (var i=0; i<amount.length;i++) 
	{
		if(amount[i].checked) 
			{
				price = amount[i].value;
			}
	}

if (price == 'other') {
	
		price = document.contributeForm.otherAmount.value;
		 var string = price;
		 var regexp = /^[-]?\d*\.?\d$/;
		 string = string.toString();
		 if (!string.match(regexp)) {
		 
		 alert("Please enter a number in the text field");
		 return false;
		 
		 }
	
	}
	
if (!price) {

	alert("Please choose an amount by clicking a radio button");
	return false;
}


var createURL = urlString + userID + '&product=' + product + price + '&price=' + price + '&units=' + units;

window.location.href=createURL;


}
