function getSponsorValue() {
 theGroup = document.frm_sponsor.sponsor;
 for (i=0; i< theGroup.length; i++)
   if(theGroup[i].checked==true)
	 return theGroup[i].value;
 return 0;
}

function getSponsorId() {
 theGroup = document.frm_sponsor.sponsor;
 for (i=0; i< theGroup.length; i++)
   if(theGroup[i].checked==true)
	 return theGroup[i].id;
 return 'not selected';
}

function clickSponsor() {
  res = 0;
  if(parseInt(getSponsorValue())) {
    res = res + parseInt(getSponsorValue());
	document.mainform.fv_sponsor.value = getSponsorId();
  }
  if(parseInt(document.mainform.fv_evtickets.value))
	res = res + parseInt(document.mainform.fv_evtickets.value)*75;
  document.mainform.fv_total.value = res;
  document.getElementById('IdSpanTotal').innerHTML = '$'+res;
}
