function updatebox() {
       var closeamount = document.getElementById('closeamount').value;
       var ratecardtotalprice = document.getElementById('ratecardtotalprice').value;
       if (closeamount == "")
           closeamount = 0;
       if (ratecardtotalprice == "")
           ratecardtotalprice = 0;

       var discount = parseInt(ratecardtotalprice) - parseInt(closeamount);
       var discountrate= (discount/parseInt(ratecardtotalprice)*100).toFixed(2);
       if (!isNaN(discount)) {
           document.getElementById('discountbox').value = discount;
           document.getElementById('discountrate').value = discountrate;
       }
   }

  function updatebreakdown() {
    var itembreakbox = document.getElementById("itembreakbox");
    var values = [];

    if(document.getElementById('cb11').checked) {
        values.push("NTV Sponsorship");
   
  var ntvsponsor = prompt("Which program do u want to sponsor");
  document.getElementById("ntvsponsor").innerHTML = ntvsponsor;
  
  $("#ntvsponsor").show();
  
    }
	
    if(document.getElementById('cb12').checked) {
        values.push("NTV Spotby");
    }
    if(document.getElementById('cb13').checked) {
        values.push("NTV LiveBroadcast");
    }
    if(document.getElementById('cb14').checked) {
        values.push("NTV Documentary");
    }
    if(document.getElementById('cb15').checked) {
        values.push("NTV Talkshow");
    }
    if(document.getElementById('cb16').checked) {
        values.push("NTV SqueezeBack");
    }
    if(document.getElementById('cb17').checked) {
        values.push("NTV Scroll");
    }

 itembreakbox.value = values.join("                             ");
  }