
function ValidateSponsor()
{
  var f = document.frmSponsor;
  var pt = f.PaymentType;
  var sp = f.SponsorAmount;
  
  if (f.FirstName.value == "") {
    alert("Please Input First Name.");
    f.FirstName.focus();
    return (false);
  }
  
  if (f.LastName.value == "") {
    alert("Please Input Last Name.");
    f.LastName.focus();
    return (false);
  }
  
  if (f.Address.value == "") {
    alert("Please Input Address.");
    f.Address.focus();
    return (false);
  }
  
  if (f.City.value == "") {
    alert("Please Input City.");
    f.City.focus();
    return (false);
  }
  
  if (f.State.value == "") {
    alert("Please Input State.");
    f.State.focus();
    return (false);
  }
  
  if (f.ZipCode.value == "") {
    alert("Please Input Zip Code.");
    f.ZipCode.focus();
    return (false);
  }
  
  if (f.Phone.value == "") {
    alert("Please Input Phone Number.");
    f.Phone.focus();
    return (false);
  }
  
  if (f.Email.value == "") {
    alert("Please Input Email.");
    f.Email.focus();
    return (false);
  }
  
  var ptype="";
  var i;
  
  for (i=0;i<pt.length;i++)
    {
	    if (pt[i].checked)
	     {
		   ptype = pt[i].value;
	      }
    }
  
  if (ptype == ""){
      alert("Please Choose Payment Method.");
      return (false);
    }
  
  if (f.CardNumber.value == "") {
      alert("Please Input Credit Card Number.");
      f.CardNumber.focus();
      return (false);
    }
  
   if (f.ExpireDate.value == "") {
       alert("Please Input Expiration Date.");
       f.ExpireDate.focus();
       return (false);
     }
   
   if (f.NameOnCard.value == "") {
      alert("Please Input Signature.");
      f.NameOnCard.focus();
      return (false);
      }
   
   var samount="";
   
   for (i=0;i<sp.length;i++)
    {
	    if (sp[i].checked)
	     {
		   samount = sp[i].value;
	      }
    }
   
    if (samount == ""){
      alert("Please Choose your sponsor.");
      return (false);
    }
         
     return (true);
 }   
 


