function changeFocus(currentForm) {
  if (currentForm == "google") {
    var thisAmount = document.getElementById('googleAmount');
	var otherAmount = document.getElementById('paypalAmount');
  }
  else if (currentForm == "paypal") {
    var thisAmount = document.getElementById('paypalAmount');
	var otherAmount = document.getElementById('googleAmount');
  }
  thisAmount.value = "";
  otherAmount.value = "Enter Amount";
  thisAmount.style.color = "#000000";
  otherAmount.style.color = "#808080";
}
function makeDonation(type) {
  var error = "";
  var validAmount = /^\d+(\.\d\d)?$/;
  if (type == "google") {
    var amount = document.getElementById('googleAmount');
  }
  else if (type == "paypal") {
    var amount = document.getElementById('paypalAmount');
  }
  if (validAmount.test(amount.value)!=true) {
	var error = "-Enter a valid donation amount";
  }
  else {
    switch (amount.value) {
      case "": var error = "-Enter a donation amount";
	  case "0": var error = "-Enter a valid donation amount";
      case "Enter Amount": var error = "-Enter a donation amount";
      break;
	}
  }
  if (error != "") {
	var error = "Before proceeding with your donation, please:\n\n" + error;
	amount.value = "";
	alert(error);
	return false;
  }
  else {
	if(type=="paypal"){
		var form=document.getElementById('paypal');
		if(document.getElementById('recur').checked==false){
			form.item_name.value="Donation";
			form.cmd.value="_donations";
			form.amount.value=amount.value;
		} else {
			form.item_name.value="Monthly Donation";
			form.cmd.value="_xclick-subscriptions";
			form.a3.value=amount.value;
		}
	}
	return true;
  }
}