function calc_info()
{
  //set variables to zero
  var vcalories = 0;
  var vcalories_from_fat = 0;
  var vtotal_fat = 0;
  var vDVtotal_fat = 0;
  var vsat_fat = 0;
  var vDVsat_fat = 0;
  var vcholesterol = 0;
  var vDVcholesterol = 0;
  var vsodium = 0;
  var vDVsodium = 0;
  var vcarbs = 0;
  var vDVcarbs = 0;
  var vdietary_fiber = 0;
  var vDVdietary_fiber = 0;
  var vsugars = 0;
  var vprotein = 0;
  var vvit_a = 0;
  var vvit_c = 0;
  var vcalcium = 0;
  var viron = 0;
  var vingredients = "";

  if (document.myForm.yoggi.checked == true) {
    vcalories = vcalories + 123;
    vtotal_fat = vtotal_fat + 0;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 82;
    vcarbs = vcarbs + 27.3;
    vdietary_fiber = vdietary_fiber + 0;
    vprotein = vprotein + 4.1;
	vingredients = vingredients + "Yoggi, ";
  }

  if (document.myForm.yogurtparfait.checked == true) {
	vcalories = vcalories + 232;
    vtotal_fat = vtotal_fat + 5.7;
    vsat_fat = vsat_fat + 3.7;
    vcholesterol = vcholesterol + 22;
    vsodium = vsodium + 257;
    vcarbs = vcarbs + 25.9;
    vdietary_fiber = vdietary_fiber + 0;
    vprotein = vprotein + 19.3;
	vingredients = vingredients + "Yogurt Parfait, ";
  }

  if (document.myForm.slowcookedoatmeal.checked == true) {
    vcalories = vcalories + 192;
    vtotal_fat = vtotal_fat + 3.6;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 156;
    vcarbs = vcarbs + 32.4;
    vdietary_fiber = vdietary_fiber + 6;
    vprotein = vprotein + 8.4;
	vingredients = vingredients + "Slow Cooked Oatmeal, ";
  }

  if (document.myForm.bananas.checked == true) {
    vcalories = vcalories + 33;
    vtotal_fat = vtotal_fat + 0.1;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 0;
    vcarbs = vcarbs + 8.6;
    vdietary_fiber = vdietary_fiber + 1;
    vprotein = vprotein + 0.4;
	vingredients = vingredients + "Bananas, ";
  }

    if (document.myForm.toastedalmonds.checked == true) {
    vcalories = vcalories + 160;
    vtotal_fat = vtotal_fat + 14;
    vsat_fat = vsat_fat + 1;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 10;
    vcarbs = vcarbs + 6;
    vdietary_fiber = vdietary_fiber + 3;
    vprotein = vprotein + 6;
	vingredients = vingredients + "Toasted Almonds, ";
  }

  if (document.myForm.chocolatechips.checked == true) {
    vcalories = vcalories + 42;
    vtotal_fat = vtotal_fat + 2.4;
    vsat_fat = vsat_fat + 1.8;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 0;
    vcarbs = vcarbs + 6.1;
    vdietary_fiber = vdietary_fiber + 0.6;
    vprotein = vprotein + 0;
	vingredients = vingredients + "Chocolate Chips, ";
  }

  if (document.myForm.strawberries.checked == true) {
    vcalories = vcalories + 13;
    vtotal_fat = vtotal_fat + 0.25;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 1;
    vcarbs = vcarbs + 3;
    vdietary_fiber = vdietary_fiber + 1;
    vprotein = vprotein + 0.25;
	vingredients = vingredients + "Strawberries, ";
  }

  if (document.myForm.walnuts.checked == true) {
    vcalories = vcalories + 180;
    vtotal_fat = vtotal_fat + 18;
    vsat_fat = vsat_fat + 1.5;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 0;
    vcarbs = vcarbs + 4;
    vdietary_fiber = vdietary_fiber + 2;
    vprotein = vprotein + 4;
	vingredients = vingredients + "Walnuts, ";
  }
  
    if (document.myForm.vanillachips.checked == true) {
    vcalories = vcalories + 268;
    vtotal_fat = vtotal_fat + 14.7;
    vsat_fat = vsat_fat + 3.7;
    vcholesterol = vcholesterol + 2;
    vsodium = vsodium + 25;
    vcarbs = vcarbs + 28.2;
    vdietary_fiber = vdietary_fiber + 0.9;
    vprotein = vprotein + 5.3;
	vingredients = vingredients + "Vanilla Chips, ";
  }

  if (document.myForm.blueberries.checked == true) {
    vcalories = vcalories + 20;
    vtotal_fat = vtotal_fat + 0;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 2;
    vcarbs = vcarbs + 5.32;
    vdietary_fiber = vdietary_fiber + 1.18;
    vprotein = vprotein + 0;
	vingredients = vingredients + "Blueberries, ";
  }

  if (document.myForm.raisins.checked == true) {
    vcalories = vcalories + 130;
    vtotal_fat = vtotal_fat + 0;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 10;
    vcarbs = vcarbs + 31;
    vdietary_fiber = vdietary_fiber + 2;
    vprotein = vprotein + 1;
	vingredients = vingredients + "Raisins, ";
  }

  if (document.myForm.crumbledoreos.checked == true) {
    vcalories = vcalories + 113;
    vtotal_fat = vtotal_fat + 4.5;
    vsat_fat = vsat_fat + 1.5;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 94;
    vcarbs = vcarbs + 16.5;
    vdietary_fiber = vdietary_fiber + 0.8;
    vprotein = vprotein + 0.8;
	vingredients = vingredients + "Crumbled Oreos, ";
  }

  if (document.myForm.greenapples.checked == true) {
    vcalories = vcalories + 19;
    vtotal_fat = vtotal_fat + 0;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 0;
    vcarbs = vcarbs + 4.75;
    vdietary_fiber = vdietary_fiber + 0.75;
    vprotein = vprotein + 0;
	vingredients = vingredients + "Green Apples, ";
  }

  if (document.myForm.toastedsunflowerseeds.checked == true) {
    vcalories = vcalories + 170;
    vtotal_fat = vtotal_fat + 14;
    vsat_fat = vsat_fat + 1.5;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 105;
    vcarbs = vcarbs + 6;
    vdietary_fiber = vdietary_fiber + 3;
    vprotein = vprotein + 5;
	vingredients = vingredients + "Toasted Sunflower Seeds, ";
  }

 if (document.myForm.reecespieces.checked == true) {
    vcalories = vcalories + 266;
    vtotal_fat = vtotal_fat + 14;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 84;
    vcarbs = vcarbs + 35;
    vdietary_fiber = vdietary_fiber + 0;
    vprotein = vprotein + 7;
	vingredients = vingredients + "Reeces Pieces, ";
  }

if (document.myForm.mango.checked == true) {
    vcalories = vcalories + 27;
    vtotal_fat = vtotal_fat + 0;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 1;
    vcarbs = vcarbs + 7;
    vdietary_fiber = vdietary_fiber + 0.75;
    vprotein = vprotein + 0.25;
	vingredients = vingredients + "Mango, ";
  }

 if (document.myForm.driedcranberries.checked == true) {
    vcalories = vcalories + 90;
    vtotal_fat = vtotal_fat + 0;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 0;
    vcarbs = vcarbs + 21;
    vdietary_fiber = vdietary_fiber + 2;
    vprotein = vprotein + 0;
	vingredients = vingredients + "Dried Cranberries, ";
  }
  
    if (document.myForm.brownsugar.checked == true) {
    vcalories = vcalories + 180;
    vtotal_fat = vtotal_fat + 0;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 0;
    vcarbs = vcarbs + 48;
    vdietary_fiber = vdietary_fiber + 0;
    vprotein = vprotein + 0;
	vingredients = vingredients + "Brown Sugar, ";
  }
  
    if (document.myForm.cinnamon.checked == true) {
    vcalories = vcalories + 6;
    vtotal_fat = vtotal_fat + 0.1;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 1;
    vcarbs = vcarbs + 1.8;
    vdietary_fiber = vdietary_fiber + 1.2;
    vprotein = vprotein + 0.1;
	vingredients = vingredients + "Cinnamon, ";
  }

 if (document.myForm.organicgranola.checked == true) {
    vcalories = vcalories + 149;
    vtotal_fat = vtotal_fat + 7.4;
    vsat_fat = vsat_fat + 1.4;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 7;
    vcarbs = vcarbs + 16.1;
    vdietary_fiber = vdietary_fiber + 2.6;
    vprotein = vprotein + 4.5;
	vingredients = vingredients + "Organic Granola, ";
  }
  
  if (document.myForm.maplesyrup.checked == true) {
    vcalories = vcalories + 200;
    vtotal_fat = vtotal_fat + 0;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 5;
    vcarbs = vcarbs + 53;
    vdietary_fiber = vdietary_fiber + 0;
    vprotein = vprotein + 0;
	vingredients = vingredients + "Maple Syrup, ";
  }

if (document.myForm.mandarinoranges.checked == true) {
    vcalories = vcalories + 70;
    vtotal_fat = vtotal_fat + 0;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 10;
    vcarbs = vcarbs + 17;
    vdietary_fiber = vdietary_fiber + 1;
    vprotein = vprotein + 1;
	vingredients = vingredients + "Mandarin Oranges, ";
  }

  if (document.myForm.honey.checked == true) {
    vcalories = vcalories + 256;
    vtotal_fat = vtotal_fat + 0;
    vsat_fat = vsat_fat + 0;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 0;
    vcarbs = vcarbs + 68;
    vdietary_fiber = vdietary_fiber + 0;
    vprotein = vprotein + 0;
	vingredients = vingredients + "Honey, ";
  }

  if (document.myForm.fruitypebbles.checked == true) {
    vcalories = vcalories + 36;
    vtotal_fat = vtotal_fat + 0.30;
    vsat_fat = vsat_fat + 0.3;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 63;
    vcarbs = vcarbs + 8.6;
    vdietary_fiber = vdietary_fiber + 1;
    vprotein = vprotein + 0.3;
	vingredients = vingredients + "Fruity Pebbles, ";
  }

  if (document.myForm.coconut.checked == true) {
    vcalories = vcalories + 71;
    vtotal_fat = vtotal_fat + 6.7;
    vsat_fat = vsat_fat + 5.9;
    vcholesterol = vcholesterol + 0;
    vsodium = vsodium + 4;
    vcarbs = vcarbs + 3;
    vdietary_fiber = vdietary_fiber + 1.8;
    vprotein = vprotein + 0.7;
    vingredients = vingredients + "Coconut, ";
  }


  document.myForm.calories.value = Math.round(vcalories);
  document.myForm.protein.value = Math.round(vprotein) + 'g';
  document.myForm.total_fat.value = Math.round(vtotal_fat) + 'g';
  document.myForm.sat_fat.value = Math.round(vsat_fat) + 'g';
  document.myForm.cholesterol.value = Math.round(vcholesterol) + 'mg';
  document.myForm.sodium.value = Math.round(vsodium) + 'mg';
  document.myForm.carbs.value = Math.round(vcarbs) + 'g';
  document.myForm.dietary_fiber.value = Math.round(vdietary_fiber) + 'g';
  document.myForm.ingredients.value = vingredients;

  
}


