window.onload=Loaded;

function Loaded() {
  TotalPrice();
}


function TotalPrice() {

  var price_Individual="154";
  var price_Corporate="352";
  var price_Additional="66";
  var price_Student="93.5";

  var total=0;
    membershipType=eval("document.ApplicationForm.membershipType.options[document.ApplicationForm.membershipType.selectedIndex].value");

      if (membershipType=="1")
       total = price_Individual; 
      else if (membershipType=="2")
       total = price_Corporate; 
      else if (membershipType=="3")
       total = price_Additional; 
	  else if (membershipType=="4")
       total = price_Student; 
      else
        alert("ERROR: Bad guest type");
		
  var processed_total = total*100; 
  var nice_total=NicePrice(total);
  

    document.ApplicationForm.total.value=nice_total;
  document.ApplicationForm.vpc_Amount.value=processed_total;

} 



