	
	function donate_now(){
		
		SetBigBackground();		
		DonationForm();
		
	}

	function DonationForm(){
	
		document.getElementById("listing_records").innerHTML="<DIV id=loadingProducts><IMG height=13 alt=loading src='images/loading.gif' width=208></DIV>";
	
		var Url = "ajax/donation.php?r="+Math.random();  

		httpObj.open("GET", Url, true);
		httpObj.onreadystatechange = function FormDonationRecieve(){
			if (httpObj.readyState == 4) {
				document.getElementById("listing_records").innerHTML = httpObj.responseText;
			}
		};
		httpObj.send(null);
		
	}
	

	

	function validateDonationForm(){
			var frm = document.form1;
			
			if( ValidateRadioButtons(frm.CauseID,"Donation Cause")
				&& ValidateMandDecimalField(frm.Amount,"Amount")
				&& ValidateForBlank(frm.Name,"Your Name")
				&& ValidateForEmail(frm.Email)
				&& isEmail(frm.Email)
				&& ValidateOptPhoneNumber(frm.Phone)
				&& ValidateForTextareaOpt(frm.Address,"Address",10,500)
				&& ValidateForBlank(frm.State,"State")
				&& ValidateForBlank(frm.City,"City")
				&& isPostCode(frm.PostCode)
			){	

				var Url = "ajax/donation_confirm.php?Name="+escape(frm.Name.value)+"&CauseTitle="+escape(frm.SelectedCauseTitle.value)+"&SelectedCauseID="+escape(frm.SelectedCauseID.value)+"&Amount="+escape(frm.Amount.value)+"&Email="+escape(frm.Email.value)+"&Address="+escape(frm.Address.value)+"&City="+escape(frm.City.value)+"&State="+escape(frm.State.value)+"&country_id="+escape(frm.country_id.value)+"&PostCode="+escape(frm.PostCode.value)+"&Phone="+escape(frm.Phone.value)+"&r="+Math.random();
				//alert(Url);return false;
				document.getElementById("listing_records").innerHTML="<DIV id=loadingProducts><IMG height=13 alt=loading src='images/loading.gif' width=208></DIV>";

				httpObj.open("GET", Url, true);
				httpObj.onreadystatechange = function DonationConfirmtRecieve(){
					if (httpObj.readyState == 4) {
						document.getElementById("listing_records").innerHTML = httpObj.responseText;
					}
				};
				httpObj.send(null);
				
				return false;	

			}else{
				return false;
			}	

	}

	function setCauseID(CauseID,CauseTitle){
		document.getElementById("SelectedCauseID").value = CauseID;
		document.getElementById("SelectedCauseTitle").value = CauseTitle;
		
	}