function showDonations(target)
{
   document.body.className = "showDonations";
   if(target >= 0)
   {
      document.forms["donationForm"].radDonation[target].checked = true;
      updateForm(document.forms["donationForm"].radDonation[target]);
   }
}

function hideDonations()
{
   document.body.className = "";
}

function hideParent()
{
   document.getElementById("DonationWindow").className = "";
}

function showParent()
{
   document.getElementById("DonationWindow").className = "parent";
}

function hideCurrentProduction()
{
   document.getElementById("DonationWindow").className = "";
}

function showCurrentProduction()
{
   document.getElementById("DonationWindow").className = "currentProduction";
}

function hideDonorLevels()
{
   document.getElementById("DonationWindow").className = "";
}

function showDonorLevels()
{
   document.getElementById("DonationWindow").className = "donorLevels";
}

function hideSponsor()
{
   document.getElementById("DonationWindow").className = "";
}

function showSponsor()
{
   document.getElementById("DonationWindow").className = "sponsor";
}

function updateForm(s)
{
   var hiddenForm = document.getElementById("HiddenForm");
   hiddenForm.className = s.value;
}

function processParentForm(f)
{
   f.COMMENT2.value = "PA DEPOSIT:  " + f.clientFName.value + "  " + f.clientID.value;
   f.DESCRIPTION.value = f.COMMENT2.value;
   f.AMOUNT.value = f.dollars.value + "." + f.cents.value;
}

function submitForm(f)
{
   //https://payments.verisign.com/payflowlink?LOGIN=HeritageRTC5600&PARTNER=verisign
   
   //radHeritage -        &DESCRIPTION=THE%20HERITAGE%20SCHOOL%20FOUNDATION:%20Pharmaceuticals/Medical%20Services%20(uninsured%20youth)
   //radCapitalCampaign - &DESCRIPTION=HERITAGE%20CENTER%20STAGE%20-%20CAPITAL%20CAMPAIGN:%20Heritage%20Center%20Stage%20Founder%20*%20$5,000%20or%20More
   //radOngoingCosts -    &DESCRIPTION=HERITAGE%20CENTER%20STAGE%20-%20THEATRICAL%20PRODUCTION%20SUPPORT:%20TITLE%20SPONSOR%20*%20$5,000
   //radTickets -         &DESCRIPTION=PURCHASE%20TICKETS:%20my%20instructions
   //radAccountPymt -     &DESCRIPTION=ACCOUNT%20PAYMENT:%20my%20instructions
   
   var url = "https://payments.verisign.com/payflowlink?LOGIN=HeritageRTC5600&PARTNER=verisign&TYPE=s";

   var comment1 = "";
   var comment2 = "";
   
   if(f.radDonation[0].checked)//radHeritage
   {
      url += "&AMOUNT=" + f.txtDonation0.value + "." + f.txtDonationCents0.value;
      comment1 = escape("THE HERITAGE SCHOOL FOUNDATION");
      comment2 = escape(f.ddlEarmarked[f.ddlEarmarked.selectedIndex].value);
   }
   else if(f.radDonation[1].checked)//radCapitalCampaign
   {
      url += "&AMOUNT=" + f.txtDonation1.value + "." + f.txtDonationCents1.value;
      comment1 = escape("HERITAGE CENTER STAGE - CAPITAL CAMPAIGN");
      comment2 = escape(f.ddlCapitalCampaign[f.ddlCapitalCampaign.selectedIndex].value);
   }
   else if(f.radDonation[2].checked)//radOngoingCosts
   {
      url += "&AMOUNT=" + f.txtDonation2.value + "." + f.txtDonationCents2.value;
      comment1 = escape("HERITAGE CENTER STAGE - THEATRICAL PRODUCTION SUPPORT");
      comment2 = escape(f.ddlTheatricalProduction[f.ddlTheatricalProduction.selectedIndex].value);
   }
   else if(f.radDonation[3].checked)//radTickets
   {
      url += "&AMOUNT=" + f.txtDonation3.value + "." + f.txtDonationCents3.value;
      comment1 = escape("PURCHASE TICKETS");
      comment2 = escape(f.txtSpecialInstrux3.value);
   }
   else if(f.radDonation[4].checked)//radAccountPymt
   {
      url += "&AMOUNT=" + f.txtDonation4.value + "." + f.txtDonationCents4.value;
      comment1 = escape("ACCOUNT PAYMENT");
      comment2 = escape(f.txtSpecialInstrux4.value);
   }
   
   url += "&COMMENT1=" + comment1;
   url += "&COMMENT2=" + comment2;
   url += "&DESCRIPTION=" + comment1 + ":" + comment2;
   
   document.location = url;
   return false;
}