"); } else if (navigator.appName.indexOf ("Microsoft")>=0) { window.parent.frames[3].document.write(""); } } return true; } function calculate(menu) { var calTotal=0; var proTotal=0; var fatTotal=0; if (top.parent.preferences.document.topForm.sound.checked) { if (navigator.appName.indexOf("Netscape")>=0) { window.parent.frames[3].document.write(""); } else if (navigator.appName.indexOf ("Microsoft")>=0) { window.parent.frames[3].document.write(""); } } // Total the appetizer part of breakfast if (document.menu.b11.checked==true) {calTotal += 56; proTotal += 0; fatTotal += 0;}// fresh fruit cup if (document.menu.b12.checked==true) {calTotal += 81; proTotal += 1; fatTotal += 1;}// stewed prunes if (document.menu.b13.checked==true) {calTotal += 49; proTotal += 0; fatTotal += 0;}// apple sauce // Total and validate the entree part of breakfast var qty=document.menu.QtyB21.options[document.menu.QtyB21.selectedIndex].value; if (document.menu.b21.checked==true) {calTotal += 287; proTotal += 8.6; fatTotal += 9.9;}// breakfast entree if (document.menu.b21.checked==false && (document.menu.b21a.checked==true || document.menu.b21b.checked==true || qty>0)) { window.alert("Please make sure the Breakfast 'Entree' box is checked if any of the sub-entree boxes are checked.\n\nOtherwise please uncheck all sub-entree boxes."); document.menu.b21.focus(); return false;} {calTotal += (qty * 37); fatTotal += (qty * 4.1); document.menu.QtyB21.blur()}// extra margarine if (document.menu.b21.checked==true && document.menu.b21a.checked==true) {calTotal -= 20; proTotal -= 0; fatTotal -= 0;}// w/o syrup if (document.menu.b21.checked==true && document.menu.b21b.checked==true) {calTotal -= 37; proTotal -= 0; fatTotal -= 4.1;}// w/o margarine if (document.menu.b21.checked==true && (document.menu.b21b.checked==true && qty > 0)) { window.alert("The 'w/o margarine' box may not be checked if the 'extra margarine' quantity is one or greater.\n\nPlease use only one of the above selections."); document.menu.b21b.focus(); document.menu.QtyB21.selectedIndex="0"; document.menu.b21b.checked=false; return false; } // Total and validate the cereal part of breakfast var qty=document.menu.QtyB31.options[document.menu.QtyB31.selectedIndex].value; if (document.menu.b31.checked==true) {calTotal += 190; proTotal += 12.5; fatTotal += 6.8;}// cereal appetizer if (document.menu.b31.checked==false && (document.menu.b31a.checked==true || document.menu.b31b.checked==true || document.menu.b31c.checked==true || document.menu.b31d.checked==true || qty > 0)) { window.alert("Please make sure the Cereal 'Appetizer' box is checked if any of the sub-appetizer boxes are checked.\n\nOtherwise please uncheck all sub-appetizer boxes."); document.menu.b31.focus(); document.menu.QtyB31.selectedIndex=0; return false;} {calTotal += (qty * 37); fatTotal += (qty * 4.1); document.menu.QtyB31.blur()}// extra margarine if (document.menu.b31.checked==true && document.menu.b31a.checked==true) {calTotal -= 60; proTotal -= 10.2; fatTotal -= 1.7;}// w/o lowfat scrambled eggs if (document.menu.b31.checked==true && document.menu.b31b.checked==true) {calTotal -= 76; proTotal -= 2.3; fatTotal -= 1; document.menu.b31c.checked=true; document.menu.b31d.checked=true;}// w/o toast if (document.menu.b31.checked==true && document.menu.b31c.checked==true) {calTotal -= 17; proTotal -= 0; fatTotal -= 0;}// w/o jelly if (document.menu.b31.checked==true && document.menu.b31d.checked==true) {calTotal -= 37; proTotal -= 0; fatTotal -= 4.1;}// w/o margarine if (document.menu.b31.checked==true && (document.menu.b31d.checked==true && qty > 0)) { window.alert("The 'w/o margarine' box may not be checked if the 'extra margarine' quantity is one or greater.\n\nPlease use only one of the above selections."); document.menu.b31c.focus(); document.menu.QtyB31.selectedIndex="0"; document.menu.b31d.checked=false; return false; } if (document.menu.b32.checked==true) {calTotal += 142; proTotal += 6.5; fatTotal += 3;}// Oatmeal if (document.menu.b33.checked==true) {calTotal += 120; proTotal += 6; fatTotal += 2;}// All Bran if (document.menu.b34.checked==true) {calTotal += 100; proTotal += 3; fatTotal += 0;}// Cream of Wheat if (document.menu.b35.checked==true) {calTotal += 71; proTotal += 4; fatTotal += .5;}// Bran Flakes if (document.menu.b36.checked==true) {calTotal += 82; proTotal += 2; fatTotal += 0;}// Cornflakes if (document.menu.b37.checked==true) {calTotal += 71; proTotal += 1; fatTotal += 0;}// Rice Krispies // Total the beverage part of breakfast if (document.menu.b41a.checked==true) {calTotal += 70; proTotal += 5; fatTotal += 2.5;}// 4oz reduced fat milk if (document.menu.b41b.checked==true) {calTotal += 140; proTotal += 10; fatTotal += 5;}// 8oz reduced fat milk if (document.menu.b42a.checked==true) {calTotal += 50; proTotal += 5; fatTotal += 0;}// 4oz nonfat milk if (document.menu.b42b.checked==true) {calTotal += 100; proTotal += 10; fatTotal += 0;}// 8oz nonfat milk // Total and validate the appetizer part of lunch if (document.menu.L11.checked==true) {calTotal += 223; proTotal += 5.2;}// lunch appetizer if (document.menu.L11.checked==false && (document.menu.L11a.checked==true || document.menu.L11b.checked==true || document.menu.L11c.checked==true)) { window.alert("Please make sure the Lunch 'Appetizer' box is checked if any of the sub-appetizer boxes are checked.\n\nOtherwise please uncheck all sub-appetizer boxes."); document.menu.L11.focus(); return false;} if (document.menu.L11.checked==true && document.menu.L11a.checked==true) {calTotal -= 68; proTotal -= .7;}// w/o tomato soup if (document.menu.L11.checked==true && document.menu.L11b.checked==true) {calTotal -= 61; proTotal -= 1.3;}// w/o salt-free crackers if (document.menu.L11.checked==true && document.menu.L11c.checked==true) {calTotal -= 94; proTotal -= 3.2;}// w/o low calorie rice pudding // Total the entree part of lunch if (document.menu.L21.checked==true) {calTotal += 356; proTotal += 20.1;}// chicken salad sandwich if (document.menu.L22.checked==true) {calTotal += 140; proTotal += 13.5;}// fruit & cottage cheese salad if (document.menu.L23.checked==true) {calTotal += 335; proTotal += 19.5;}// salisbury steak // Total the beverage part of lunch if (document.menu.L31a.checked==true) {calTotal += 70; proTotal += 5;}// 4oz reduced fat milk if (document.menu.L31b.checked==true) {calTotal += 140; proTotal += 10;}// 8oz reduced fat milk if (document.menu.L32a.checked==true) {calTotal += 50; proTotal += 5;}// 4oz nonfat milk if (document.menu.L32b.checked==true) {calTotal += 100; proTotal += 10;}// 8oz nonfat milk // Total and validate the Snacks var qty=document.menu.QtyS11.options[document.menu.QtyS11.selectedIndex].value; calTotal += (qty*100); proTotal += (qty*10); document.menu.QtyS11.blur();// nonfat milk var qty=document.menu.QtyS12.options[document.menu.QtyS12.selectedIndex].value; calTotal += (qty*140); proTotal += (qty*10); document.menu.QtyS12.blur();// reduced fat milk var qty=document.menu.QtyS13.options[document.menu.QtyS13.selectedIndex].value; calTotal += (qty*56); document.menu.QtyS13.blur();// fruit cup var qty=document.menu.QtyS14.options[document.menu.QtyS14.selectedIndex].value; calTotal += (qty*52); document.menu.QtyS14.blur();// fresh fruit var qty=document.menu.QtyS15.options[document.menu.QtyS15.selectedIndex].value; calTotal += (qty*85); proTotal += (qty*3.5); document.menu.QtyS15.blur();// low calorie pudding var qty=document.menu.QtyS16.options[document.menu.QtyS16.selectedIndex].value; calTotal += (qty*28); document.menu.QtyS16.blur();// regular crackers var qty=document.menu.QtyS16a.options[document.menu.QtyS16a.selectedIndex].value; calTotal += (qty*21); document.menu.QtyS16a.blur();// salt free crackers var qty=document.menu.QtyS17.options[document.menu.QtyS17.selectedIndex].value; calTotal += (qty*54); document.menu.QtyS17.blur();// graham crackers var qty=document.menu.QtyS18.options[document.menu.QtyS18.selectedIndex].value; if ((document.menu.s18a.checked==true && document.menu.s18b.checked==true) || (document.menu.s18a.checked==true && document.menu.s18c.checked==true) || (document.menu.s18b.checked==true && document.menu.s18c.checked==true)) { window.alert("Only check one of the Snack 'sandwiches' before calculating total."); document.location="#snack"; document.menu.s18a.focus(); return false; } /*if (qty>0 && (document.menu.s18a.checked==false && document.menu.s18b.checked==false && document.menu.s18c.checked==false)){ window.alert("Please check one of the Snack 'Sandwich' boxes if quantity is .5 or more.\n\nOtherwise change the quantity to zero."); document.location="#snack"; document.menu.s18a.focus(); return false;}*/ if (document.menu.s18a.checked==false && document.menu.s18b.checked==false && document.menu.s18c.checked==false) {document.menu.QtyS18.selectedIndex="0";} if (document.menu.s18a.checked==true) { if (qty==0) { window.alert("Please enter a quantity for the Snack 'Turkey Sandwich'.\n\nOtherwise uncheck the 'Turkey Sandwich' box."); document.location="#snack"; document.menu.QtyS18.focus(); return false} else {calTotal += (qty*301); proTotal += (qty*24);} } if (document.menu.s18b.checked==true) { if (qty==0) { window.alert("Please enter a quantity for the Snack 'Tuna Sandwich'.\n\nOtherwise uncheck the 'Tuna Sandwich' box."); document.location="#snack"; document.menu.QtyS18.focus(); return false} else {calTotal += (qty*301); proTotal += (qty*28);} } if (document.menu.s18c.checked==true) { if (qty==0) { window.alert("Please enter a quantity for the Snack 'Roast Beef Sandwich'.\n\nOtherwise uncheck the 'Roast Beef Sandwich' box."); document.location="#snack"; document.menu.QtyS18.focus(); return false} else {calTotal += (qty*326); proTotal += (qty*23);} } var qty=document.menu.QtyS19.options[document.menu.QtyS19.selectedIndex].value; calTotal += (qty*10); document.menu.QtyS19.blur();// low calorie gelatin // Total the appetizer part of dinner var qty=document.menu.QtyD11.options[document.menu.QtyD11.selectedIndex].value; if (document.menu.d11.checked==true) {calTotal += 153; proTotal += 4;}// dinner appetizer if (document.menu.d11.checked==false && (document.menu.d12.checked==true || document.menu.d12a.checked==true ||document.menu.d13.checked==true || document.menu.d13a.checked==true || qty > 0)) { window.alert("Please make sure the Dinner 'Appetizer' box is checked if any of the sub-appetizer boxes are checked.\n\nOtherwise please uncheck all sub-appetizer boxes."); document.location="#dinner"; document.menu.d11.focus(); return false;} calTotal += (qty*37); fatTotal += (qty * 4.1); document.menu.QtyD11.blur();// extra margarine if (document.menu.d11.checked==true && document.menu.d12.checked==true) {calTotal -= 18; proTotal -= 1.1; document.menu.d12a.checked=true;}// w/o green salad if (document.menu.d11.checked==true && document.menu.d12a.checked==true) {calTotal -= 8;}// w/o low calorie dressing if (document.menu.d11.checked==true && document.menu.d13.checked==true) {calTotal -= 90; proTotal -= 2.9; document.menu.d13a.checked=true;}// w/o dinner roll if (document.menu.d11.checked==true && document.menu.d13a.checked==true) {calTotal -= 37;}// w/o margarine if (document.menu.d11.checked==true && (document.menu.d13a.checked==true && qty > 0)) { window.alert("The 'w/o margarine' box may not be checked if the 'extra margarine' quantity is one or greater.\n\nPlease use only one of the above selections."); document.location="#dinner"; document.menu.d13a.focus(); document.menu.QtyD11.selectedIndex="0"; document.menu.d13a.checked=false; return false; } // Total the entree part of dinner if (document.menu.d21.checked==true) {calTotal += 371; proTotal += 26.7;}// chicken breast if (document.menu.d22.checked==true) {calTotal += 401; proTotal += 17.5;}// baked fish // Total the dessert part of dinner if (document.menu.d31.checked==true) {calTotal += 57; proTotal +=.9;}// fresh fruit if (document.menu.d32.checked==true) {calTotal += 236; proTotal += 3;}// angelfood cake // Total the beverage part of dinner if (document.menu.d41a.checked==true) {calTotal += 70; proTotal += 5;}// 4oz reduced fat milk if (document.menu.d41b.checked==true) {calTotal += 140; proTotal += 10;}// 8oz reduced fat milk if (document.menu.d42a.checked==true) {calTotal += 50; proTotal += 5;}// 4oz nonfat milk if (document.menu.d42b.checked==true) {calTotal += 100; proTotal += 10;}// 8oz nonfat milk calTotal=Math.round(calTotal);//*10)/10; proTotal=Math.round(proTotal*10)/10; fatTotal=Math.round(fatTotal*10)/10; var checkedCalories2= top.parent.preferences.document.topForm.calories.checked; var checkedProtein2= top.parent.preferences.document.topForm.protein.checked; var checkedFat2= top.parent.preferences.document.topForm.fat.checked; if (checkedCalories2) {top.parent.results.document.middleForm.TotalCalories.value = calTotal;} if (checkedProtein2) {top.parent.results.document.middleForm.TotalProtein.value = proTotal;} if (checkedFat2) {top.parent.results.document.middleForm.TotalFat.value = fatTotal;} return true; }

Cycle 2

Breakfast


Appetizer

Fresh Fruit Cup

Stewed Prunes

Applesauce

Entree
French Toast
Qtyextra margarine
w/o low calorie syrup
w/o margarine
Cereals
Cereal Appetizer
Qtyextra margarine
w/o lowfat scrambled eggs
w/o toast
       w/o low calorie jelly
       w/o margarine
   Oatmeal
   All Bran
   Cream of Wheat
   Bran Flakes
   Cornflakes
   Rice Krispies
Beverages

Reduced Fat Milk
4oz size
8oz size
NonFat Milk
4oz size
8oz size

Go To:  Breakfast   Lunch/Snack   Dinner  

Lunch                                                       Snack


Appetizer

Lunch Appetizer
w/o tomato soup
w/o salt-free crackers
w/o rice pudding
Entree

Chicken Salad Sandwich

Fruit & Cottage Cheese Salad

Salisbury Steak

Beverages
Reduced Fat Milk
4oz size
8oz size
NonFat Milk
4oz size
8oz size
Snack

QtyNonfat Milk
QtyReduced Fat Milk
QtyFruit Cup
QtyFresh Fruit
QtyLow Calorie Pudding
QtyCrackers
QtyCrackers(salt-free)
QtyGraham Crackers
Qty Sandwich
                 Turkey
                 Tuna
                 Roast Beef
QtyLow Calorie Gelatin

Go To:  Breakfast   Lunch/Snack   Dinner  

Dinner


Appetizer

Appetizer
Qtyextra margarine
w/o green salad
       w/o dressing
w/o dinner roll
       w/o margarine
Entree

Chicken Breast

Baked Fish

Dessert

Fresh Fruit

Angelfood Cake

Beverages
Reduced Fat Milk
4oz size
8oz size
NonFat Milk
4oz size
8oz size

Go To:  Breakfast   Lunch/Snack   Dinner  

Top of Menu

© Copyright 2000 Mark Aldridge
All Rights Reserved
This program is licensed, not sold