
//calCulateAll();
  function chkins()
    {
  var val= document.getElementById('chk').value;
  //alert(document.getElementById('chk').checked);
  if(document.getElementById('chk').checked==true)
    {
    document.getElementById('Insprice').innerHTML='$ 1.49';
document.getElementById('InsTot').value='1.49';
}
else
{
   document.getElementById('Insprice').innerHTML='$ 0.00';
   document.getElementById('InsTot').value='0';
}
/////calculate grand total////////////
calCulateAll();
}

function calCulateAll()
  {
     var p =document.getElementById('prodTot').value;
 var s =document.getElementById('shipTot').value;
 var c =document.getElementById('coupTot').value;
//os_added
/*s1=s.split("</script>");
s = s1[1];*/

// var i =document.getElementById('InsTot').value;
 var tot=parseFloat(p)+parseFloat(s)-parseFloat(c);
     document.getElementById('gtotal').innerHTML='$' + tot.toFixed(2);
  }