/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jim Stiles | www.jdstiles.com */
function startCalc(){
  interval = setInterval("calc()",1);
}
function calc(){
  one = document.autoSumForm.LodgeRoomSingleTotal.value;
  two = document.autoSumForm.LodgeRoomSharedTotal.value; 
  three = document.autoSumForm.ApartmentTotal.value; 
  four = document.autoSumForm.SuiteTotal.value; 
  five = document.autoSumForm.CabanaTotal.value;  
  six = document.autoSumForm.CampingRVFullHookUpTotal.value;  
  seven = document.autoSumForm.CampingRVPartialHookUpTotal.value;  
  eight = document.autoSumForm.MealsThurDinnerFriLunchTotal.value;  
  nine = document.autoSumForm.MealsFridayDinnerTotal.value;  
  ten = document.autoSumForm.MealsSatBreakfastSundayLunchTotal.value;  
  eleven = document.autoSumForm.MealsSunDinnerMonBreakfastTotal.value;  
  twelve = document.autoSumForm.ProgramFee.value;  
  document.autoSumForm.RegistrationTotal.value = (one * 1) + (two * 1) + (three * 1) + (four * 1) + (five * 1) + (six * 1) + (seven * 1) + (eight * 1) + (nine * 1) + (ten * 1) + (eleven * 1) + (twelve * 1);
}
function stopCalc(){
  clearInterval(interval);
}

function LodgeRoomSingleTotalPrice()
{
a = document.autoSumForm.LodgeRoomSinglePrice.value
b = document.autoSumForm.LodgeRoomSingleNumberofNites.value
 
c = a * b
 
document.autoSumForm.LodgeRoomSingleTotal.value = c
}


function LodgeRoomSharedTotalPrice()
{
a = document.autoSumForm.LodgeRoomSharedPrice.value
b = document.autoSumForm.LodgeRoomSharedNumberofNites.value
 
c = a * b
 
document.autoSumForm.LodgeRoomSharedTotal.value = c
}


function ApartmentTotalPrice()
{
a = document.autoSumForm.ApartmentPrice.value
b = document.autoSumForm.ApartmentNumberofNites.value
 
c = a * b
 
document.autoSumForm.ApartmentTotal.value = c
}


function SuiteTotalPrice()
{
a = document.autoSumForm.SuitePrice.value
b = document.autoSumForm.SuiteNumberofNites.value
 
c = a * b
 
document.autoSumForm.SuiteTotal.value = c
}


function CabanaTotalPrice()
{
a = document.autoSumForm.CabanaPrice.value
b = document.autoSumForm.CabanaNumberofNites.value
 
c = a * b
 
document.autoSumForm.CabanaTotal.value = c
}


function CampingRVFullHookUpTotalPrice()
{
a = document.autoSumForm.CampingRVFullHookUpPrice.value
b = document.autoSumForm.CampingRVFullHookUpNumberofNites.value
 
c = a * b
 
document.autoSumForm.CampingRVFullHookUpTotal.value = c
}


function CampingRVPartialHookUpTotalPrice()
{
a = document.autoSumForm.CampingRVPartialHookUpPrice.value
b = document.autoSumForm.CampingRVPartialHookUpNumberofNites.value
 
c = a * b
 
document.autoSumForm.CampingRVPartialHookUpTotal.value = c
}


function MealsThurDinnerFriLunchTotalPrice()
{
a = document.autoSumForm.MealsThurDinnerFriLunchPrice.value
b = document.autoSumForm.MealsThurDinnerFriLunchNumberofPeople.value
 
c = a * b
 
document.autoSumForm.MealsThurDinnerFriLunchTotal.value = c
}


function MealsFridayDinnerTotalPrice()
{
a = document.autoSumForm.MealsFridayDinnerPrice.value
b = document.autoSumForm.MealsFridayDinnerNumberofPeople.value
 
c = a * b
 
document.autoSumForm.MealsFridayDinnerTotal.value = c
}


function MealsSatBreakfastSundayLunchTotalPrice()
{
a = document.autoSumForm.MealsSatBreakfastSundayLunchPrice.value
b = document.autoSumForm.MealsSatBreakfastSundayLunchNumberofPeople.value
 
c = a * b
 
document.autoSumForm.MealsSatBreakfastSundayLunchTotal.value = c
}


function MealsSunDinnerMonBreakfastTotalPrice()
{
a = document.autoSumForm.MealsSunDinnerMonBreakfastPrice.value
b = document.autoSumForm.MealsSunDinnerMonBreakfastNumberofPeople.value
 
c = a * b
 
document.autoSumForm.MealsSunDinnerMonBreakfastTotal.value = c
}

