function hardydiesel(form) {{{{{{{

//Start Lighting

lbulb1 = form.lbulb1.value; lwatt1 = form.lwatt1.options[form.lwatt1.selectedIndex].value; lhr1 = form.lhr1.value;
lbulb2 = form.lbulb2.value; lwatt2 = form.lwatt2.options[form.lwatt2.selectedIndex].value; lhr2 = form.lhr2.value;
lbulb3 = form.lbulb3.value; lwatt3 = form.lwatt3.options[form.lwatt3.selectedIndex].value; lhr3 = form.lhr3.value;
lbulb4 = form.lbulb4.value; lwatt4 = form.lwatt4.options[form.lwatt4.selectedIndex].value; lhr4 = form.lhr4.value;
lbulb5 = form.lbulb5.value; lwatt5 = form.lwatt5.options[form.lwatt5.selectedIndex].value; lhr5 = form.lhr5.value;
lbulb6 = form.lbulb6.value; lwatt6 = form.lwatt6.options[form.lwatt6.selectedIndex].value; lhr6 = form.lhr6.value;
lqty1 = form.lqty1.value; lwatt7 = form.lwatt7.value; lhr7 = form.lhr7.value;
lqty2 = form.lqty2.value; lwatt8 = form.lwatt8.value; lhr8 = form.lhr8.value;
lqty3 = form.lqty3.value; lwatt9 = form.lwatt9.value; lhr9 = form.lhr9.value;

//Start Kitchen
kfreezer = form.kfreezer.options[form.kfreezer.selectedIndex].value; khr1 = form.khr1.options[form.khr1.selectedIndex].value;
krefrigerator = form.krefrigerator.options[form.krefrigerator.selectedIndex].value; khr2 = form.khr2.options[form.khr2.selectedIndex].value;
ktoaster = form.ktoaster.options[form.ktoaster.selectedIndex].value; khr3 = form.khr3.options[form.khr3.selectedIndex].value;
kstove = form.kstove.options[form.kstove.selectedIndex].value; khr4 = form.khr4.options[form.khr4.selectedIndex].value;
koven = form.koven.options[form.koven.selectedIndex].value; khr5 = form.khr5.options[form.khr5.selectedIndex].value;
kmicrowave = form.kmicrowave.options[form.kmicrowave.selectedIndex].value; khr6 = form.khr6.options[form.khr6.selectedIndex].value;
kcoffee = 250; if (form.kcoffee.checked==true) {khr7=form.khr7.options[form.khr7.selectedIndex].value;} else {khr7 = 0;}
kqty1 = form.kqty1.value; kwatt1 = form.kwatt1.value; khr8 = form.khr8.value;
kqty2 = form.kqty2.value; kwatt2 = form.kwatt2.value; khr9 = form.khr9.value;
kqty3 = form.kqty3.value; kwatt3 = form.kwatt3.value; khr10 = form.khr10.value;

//Start Household
hvacuum = form.hvacuum.options[form.hvacuum.selectedIndex].value; hhr1 = form.hhr1.options[form.hhr1.selectedIndex].value;
hradio = 5; if (form.hradio.checked==true) {hhr2 = form.hhr2.options[form.hhr2.selectedIndex].value;} else {hhr2 = 0;}
hpc = 75; hqty1 = form.hqty1.value; if (form.hpc.checked==true) {hhr3 = form.hhr3.options[form.hhr3.selectedIndex].value;} else {hhr3 = 0;}
hsound = 100; if (form.hsound.checked==true) {hhr4 = form.hhr4.options[form.hhr4.selectedIndex].value;} else {hhr4 = 0;}
hcable = 12.5; if (form.hcable.checked==true) {hhr5 = form.hhr5.options[form.hhr5.selectedIndex].value;} else {hhr5 = 0;}
hcfan = 60; hqty2 = form.hqty2.value; if (form.hcfan.checked==true) {hhr6 = form.hhr6.options[form.hhr6.selectedIndex].value;} else {hhr6 = 0;}
htv1 = form.htv1.options[form.htv1.selectedIndex].value; hqty3 = form.hqty3.value; hhr7 = form.hhr7.options[form.hhr7.selectedIndex].value;
htv2 = form.htv2.options[form.htv2.selectedIndex].value; hqty8 = form.hqty8.value; hhr12 = form.hhr12.options[form.hhr12.selectedIndex].value;
htv3 = form.htv3.options[form.htv3.selectedIndex].value; hqty9 = form.hqty9.value; hhr13 = form.hhr13.options[form.hhr13.selectedIndex].value;
hfan = form.hfan.options[form.hfan.selectedIndex].value; hqty4 = form.hqty4.value; hhr8 = form.hhr8.options[form.hhr8.selectedIndex].value;
hqty5 = form.hqty5.value; hwatt1 = form.hwatt1.value; hhr9 = form.hhr9.value;
hqty6 = form.hqty6.value; hwatt2 = form.hwatt2.value; hhr10 = form.hhr10.value;
hqty7 = form.hqty7.value; hwatt3 = form.hwatt3.value; hhr11 = form.hhr11.value;

//Start Miscellaneous and 240V loads
mac = form.mac.options[form.mac.selectedIndex].value; mhr1 = form.mhr1.options[form.mhr1.selectedIndex].value;
mwaterheater = form.mwaterheater.options[form.mwaterheater.selectedIndex].value; mhr2 = form.mhr2.options[form.mhr2.selectedIndex].value;
mwasher = form.mwasher.options[form.mwasher.selectedIndex].value; mhr3 = form.mhr3.options[form.mhr3.selectedIndex].value;
mdryer = form.mdryer.options[form.mdryer.selectedIndex].value; mhr4 = form.mhr4.options[form.mhr4.selectedIndex].value;
mwell = form.mwell.options[form.mwell.selectedIndex].value; mhr5 = form.mhr5.options[form.mhr5.selectedIndex].value;
mbooster = form.mbooster.options[form.mbooster.selectedIndex].value; mhr6 = form.mhr6.options[form.mhr6.selectedIndex].value;
mqty1 = form.mqty1.value; mwatt1 = form.mwatt1.value; mhr7 = form.mhr7.value;
mqty2 = form.mqty2.value; mwatt2 = form.mwatt2.value; mhr8 = form.mhr8.value;
mqty3 = form.mqty3.value; mwatt3 = form.mwatt3.value; mhr9 = form.mhr9.value;

{
light1 = lbulb1*lwatt1*lhr1; light2 = lbulb2*lwatt2*lhr2; light3 = lbulb3*lwatt3*lhr3; light4 = lbulb4*lwatt4*lhr4; light5 = lbulb5*lwatt5*lhr5; light6 = lbulb6*lwatt6*lhr6; light7 = lqty1*lwatt7*lhr7; light8 = lqty2*lwatt8*lhr8; light9 = lqty3*lwatt9*lhr9;
kitchen1 = kfreezer * khr1 ; kitchen2 = krefrigerator * khr2 ; kitchen3 = ktoaster * khr3 ; kitchen4 = kstove * khr4 ; kitchen5 = koven * khr5 ; kitchen6 = kmicrowave * khr6 ; kitchen7 = kcoffee * khr7; kitchen8 = kqty1*kwatt1*khr8; kitchen9 = kqty2*kwatt2*khr9; kitchen10 = kqty3*kwatt3*khr10;
house1 = hvacuum * hhr1; house2 = hradio * hhr2 ; house3 = hqty1 * hpc * hhr3 ; house4 = hsound * hhr4 ; house5 = hcable * hhr5 ; house6 = hqty2 * hcfan * hhr6 ; house7 = hqty3 * htv1 * hhr7; house8 = hqty4 * hfan * hhr8 ; house9 = hqty5*hwatt1*hhr9; house10 = hqty6*hwatt2*hhr10; house11 = hqty7*hwatt3*hhr11; house12 = hqty8 * htv2 * hhr12; house13 = hqty9 * htv3 * hhr13;
misc1 = mac * mhr1; misc2 = mwaterheater * mhr2; misc3 = mwasher * mhr3; misc4 = mdryer * mhr4; misc5 = mwell * mhr5; misc6 = mbooster * mhr6; misc7 = mqty1*mwatt1*mhr7; misc8 = mqty2*mwatt2*mhr8; misc9 = mqty3*mwatt3*mhr9

light = light1 + light2 + light3 + light4 + light5 + light6 + light7 + light8 + light9;
kitchen = kitchen1 + kitchen2 + kitchen3 + kitchen4 + kitchen5 + kitchen6 + kitchen7 + kitchen8 + kitchen9 + kitchen10;
house = house1 + house2 + house3 + house4 + house5 + house6 + house7 + house8 + house9 + house10 + house11 + house12 + house13;
misc = misc1 + misc2 + misc3 + misc4 + misc5 + misc6 + misc7 + misc8 + misc9;
lvolts = form.lvolts.value;
lamps = form.lamps.value;
lwatts = lamps * lvolts;
kvolts = form.kvolts.value;
kamps = form.kamps.value;
kwatts = kamps * kvolts;
hvolts = form.hvolts.value;
hamps = form.hamps.value;
hwatts = hamps * hvolts;
mvolts = form.mvolts.value;
mamps = form.mamps.value;
mwatts = mamps * mvolts;
{

total = light + kitchen + house + misc + .005;
	totalstring = "" + total;
lentocent = totalstring.indexOf(".") +0;
newtotal = totalstring.substring(0,lentocent);
form.gensize.value = newtotal; }

total = light + .005;
	totalstring = "" + total;
lentocent = totalstring.indexOf(".") +0;
newtotal = totalstring.substring(0,lentocent);
form.light.value = newtotal; }

total = kitchen + .005;
	totalstring = "" + total;
lentocent = totalstring.indexOf(".") +0;
newtotal = totalstring.substring(0,lentocent);
form.kitchen.value = newtotal; }

total = house + .005;
	totalstring = "" + total;
lentocent = totalstring.indexOf(".") +0;
newtotal = totalstring.substring(0,lentocent);
form.house.value = newtotal; }

total = misc + .005;
	totalstring = "" + total;
lentocent = totalstring.indexOf(".") +0;
newtotal = totalstring.substring(0,lentocent);
form.misc.value = newtotal; }

//Watts Calculators

total = lwatts + .005;
	totalstring = "" + total;
lentocent = totalstring.indexOf(".") + 2;
newtotal = totalstring.substring(0,lentocent);
form.lwatts.value = newtotal; }

total = kwatts + .005;
	totalstring = "" + total;
lentocent = totalstring.indexOf(".") + 2;
newtotal = totalstring.substring(0,lentocent);
form.kwatts.value = newtotal; }

total = hwatts + .005;
	totalstring = "" + total;
lentocent = totalstring.indexOf(".") + 2;
newtotal = totalstring.substring(0,lentocent);
form.hwatts.value = newtotal; }

total = mwatts + .005;
	totalstring = "" + total;
lentocent = totalstring.indexOf(".") + 2;
newtotal = totalstring.substring(0,lentocent);
form.mwatts.value = newtotal; }
