// JavaScript Document

function calculatesqft()
{
	var tot = 0;
	
	var deskqty = document.form1.deskqty.value;
	var chairqty = document.form1.chairqty.value;
	var filingqty = document.form1.filingqty.value;
	var computerqty = document.form1.computerqty.value;
	var archivesqty = document.form1.archivesqty.value;
	var printerqty = document.form1.printerqty.value;
	var copiersqty = document.form1.copiersqty.value;
	
 	var threesetteeqty = document.form1.threesetteeqty.value;
	var twosetteeqty = document.form1.twosetteeqty.value;
	var armchairqty = document.form1.armchairqty.value;
	var footstoolqty = document.form1.footstoolqty.value;
	var tvqty = document.form1.tvqty.value;
	var videoqty = document.form1.videoqty.value;
	var pictureqty = document.form1.pictureqty.value;
	var coffeqty = document.form1.coffeqty.value;
	var nestqty = document.form1.nestqty.value;
	var hifiqty = document.form1.hifiqty.value;
	var tvcabinetqty = document.form1.tvcabinetqty.value;
	var fivewideqty = document.form1.fivewideqty.value;
	var threewideqty = document.form1.threewideqty.value;
 	
 	var diningtableqty = document.form1.diningtableqty.value;
	var diningchairqty = document.form1.diningchairqty.value;
	var sideboardqty = document.form1.sideboardqty.value;
	var whelshdresserqty = document.form1.whelshdresserqty.value;
 
 	var cookerqty = document.form1.cookerqty.value;
	var freezeqty = document.form1.freezeqty.value;
	var washingqty = document.form1.washingqty.value;
	var tumbleqty = document.form1.tumbleqty.value;
	var dishwashersqty = document.form1.dishwashersqty.value;
	var microwaveqty = document.form1.microwaveqty.value;
	var vacuumqty = document.form1.vacuumqty.value;

	var singlebedqty = document.form1.singlebedqty.value;
	var singleheadqty = document.form1.singleheadqty.value;
	var doublebedqty = document.form1.doublebedqty.value;
	var doubleheadqty = document.form1.doubleheadqty.value;
	var kingbedqty = document.form1.kingbedqty.value;
	var kingheadqty = document.form1.kingheadqty.value;
	var bedsidecabinetqty = document.form1.bedsidecabinetqty.value;
	var chestdrawersqty = document.form1.chestdrawersqty.value;
	var wardrobeqty = document.form1.wardrobeqty.value;
	var dressingtabelqty = document.form1.dressingtabelqty.value;
	var blanketsqty = document.form1.blanketsqty.value;
	var chevalqty = document.form1.chevalqty.value;

	var highqty = document.form1.highqty.value;
	var pramqty = document.form1.pramqty.value;
	var pushchairqty = document.form1.pushchairqty.value;
	var cotqty = document.form1.cotqty.value;
	var kidsbicycleqty = document.form1.kidsbicycleqty.value;
	var adultbicycleqty = document.form1.adultbicycleqty.value;
	var golfqty = document.form1.golfqty.value;
	var exerciseqty = document.form1.exerciseqty.value;
	var extendingqty = document.form1.extendingqty.value;
	var wheelbarrowqty = document.form1.wheelbarrowqty.value;
	var lawnmowerqty = document.form1.lawnmowerqty.value;
	var gardentoolsqty = document.form1.gardentoolsqty.value;
	var patioqty = document.form1.patioqty.value;
	var loungerqty = document.form1.loungerqty.value;
	var bbqqty = document.form1.bbqqty.value;
	
	var smallqty = document.form1.smallqty.value;
	var mediumqty = document.form1.mediumqty.value;
	var largeqty = document.form1.largeqty.value;
	var plasticqty = document.form1.plasticqty.value;


	
	var desktot = (deskqty * 10);
	document.form1.desktotal.value = desktot;
	
	var chairtot = (chairqty * 5);
	document.form1.chairtotal.value = chairtot;
	
	var filingtot = (filingqty * 5);
	document.form1.filingtotal.value = filingtot;
	
	var computertot = (computerqty * 5);
	document.form1.computertotal.value = computertot;
	
	var archivestot = (archivesqty * 5);
	document.form1.archivestotal.value = archivestot;
	
	var printertot = (printerqty * 5);
	document.form1.printertotal.value = printertot;
	
	var copierstot = (copiersqty * 5);
	document.form1.copierstotal.value = copierstot;



	var threesetteetot = (threesetteeqty * 50);
	document.form1.threesetteetotal.value = threesetteetot;
	
	var twosetteetot = (twosetteeqty * 30);
	document.form1.twosetteetotal.value = twosetteetot;
	
	var armchairtot = (armchairqty * 20);
	document.form1.armchairtotal.value = armchairtot;
	
	var footstooltot = (footstoolqty * 2.5);
	document.form1.footstooltotal.value = footstooltot;
	
	var tvtot = (tvqty * 5);
	document.form1.tvtotal.value = tvtot;
	
	var videotot = (videoqty * 3);
	document.form1.videototal.value = videotot;
	
	var picturtot = (pictureqty * 1);
	document.form1.picturtotal.value = picturtot;
	
	var coffetot = (coffeqty * 5);
	document.form1.coffetotal.value = coffetot;
	
	var nesttot = (nestqty * 5);
	document.form1.nesttotal.value = nesttot;
	
	var hifitot = (hifiqty * 10);
	document.form1.hifitotal.value = hifitot;
	
	var tvcabinettot = (tvcabinetqty * 10);
	document.form1.tvcabinettotal.value = tvcabinettot;
	
	var fivewidetot = (fivewideqty * 40);
	document.form1.fivewidetotal.value = fivewidetot;
	
	var threewidetot = (threewideqty * 25);
	document.form1.threewidetotal.value = threewidetot;
	
	var diningtabletot = (diningtableqty * 25);
	document.form1.diningtabletotal.value = diningtabletot;
	
	var diningchairtot = (diningchairqty * 6);
	document.form1.diningchairtotal.value = diningchairtot;
	
	var sideboardtot = (sideboardqty * 20);
	document.form1.sideboardtotal.value = sideboardtot;
	
	var whelshdressertot = (whelshdresserqty * 50);
	document.form1.whelshdressertotal.value = whelshdressertot;
	
	var cookertot = (cookerqty * 15);
	document.form1.cookertotal.value = cookertot;
	
	var freezetot = (freezeqty * 20);
	document.form1.freezetotal.value = freezetot;
	
	var washingtot = (washingqty * 12);
	document.form1.washingtotal.value = washingtot;
	
	var tumbletot = (tumbleqty * 12);
	document.form1.tumbletotal.value = tumbletot;
	
	var dishwasherstot = (dishwashersqty * 12);
	document.form1.dishwasherstotal.value = dishwasherstot;
	
	var microwavetot = (microwaveqty * 4);
	document.form1.microwavetotal.value = microwavetot;
	
	var vacuumtot = (vacuumqty * 3);
	document.form1.vacuumtotal.value = vacuumtot;
	
	var singlebedtot = (singlebedqty * 30);
	document.form1.singlebedtotal.value = singlebedtot;
	
	var singleheadtot = (singleheadqty * 2);
	document.form1.singleheadtotal.value = singleheadtot;
	
	var doublebedtot = (doublebedqty * 45);
	document.form1.doublebedtotal.value = doublebedtot;
	
	var doubleheadtot = (doubleheadqty * 4);
	document.form1.doubleheadtotal.value = doubleheadtot;
	
	var kingbedtot = (kingbedqty * 50);
	document.form1.kingbedtotal.value = kingbedtot;
	
	var kingheadtot = (kingheadqty * 4);
	document.form1.kingheadtotal.value = kingheadtot;
	
	var bedsidecabinettot = (bedsidecabinetqty * 10);
	document.form1.bedsidecabinettotal.value = bedsidecabinettot;
	
	var chestdrawerstot = (chestdrawersqty * 15);
	document.form1.chestdrawerstotal.value = chestdrawerstot;
	
	var wardrobetot = (wardrobeqty * 30);
	document.form1.wardrobetotal.value = wardrobetot;
	
	var dressingtabeltot = (dressingtabelqty * 20);
	document.form1.dressingtabeltotal.value = dressingtabeltot;
	
	var blanketstot = (blanketsqty * 10);
	document.form1.blanketstotal.value = blanketstot;
	
	var chevaltot = (chevalqty * 10);
	document.form1.chevaltotal.value = chevaltot;
	
	var hightot = (highqty * 7);
	document.form1.hightotal.value = hightot;
	
	var pramtot = (pramqty * 15);
	document.form1.pramtotal.value = pramtot;
	
	var pushchairtot = (pushchairqty * 4);
	document.form1.pushchairtotal.value = pushchairtot;
	
	var cottot = (cotqty * 10);
	document.form1.cottotal.value = cottot;
	
	var kidsbicycletot = (kidsbicycleqty * 10);
	document.form1.kidsbicycletotal.value = kidsbicycletot;
	
	var adultbicycletot = (adultbicycleqty * 15);
	document.form1.adultbicycletotal.value = adultbicycletot;
	
	var golftot = (golfqty * 15);
	document.form1.golftotal.value = golftot;
	
	var exercisetot = (exerciseqty * 20);
	document.form1.exercisetotal.value = exercisetot;
	
	var extendingtot = (extendingqty * 25);
	document.form1.extendingtotal.value = extendingtot;
	
	var wheelbarrowtot = (wheelbarrowqty * 15);
	document.form1.wheelbarrowtotal.value = wheelbarrowtot;
	
	var lawnmowertot = (lawnmowerqty * 5);
	document.form1.lawnmowertotal.value = lawnmowertot;
	
	var gardentoolstot = (gardentoolsqty * 5);
	document.form1.gardentoolstotal.value = gardentoolstot;
	
	var patiotot = (patioqty * 20);
	document.form1.patiototal.value = patiotot;
	
	var loungertot = (loungerqty * 10);
	document.form1.loungertotal.value = loungertot;
	
	var bbqtot = (bbqqty * 10);
	document.form1.bbqtotal.value = bbqtot;
	
	var smalltot = (smallqty * 2);
	document.form1.smalltotal.value = smalltot;
	
	var mediumtot = (mediumqty * 4);
	document.form1.mediumtotal.value = mediumtot;
	
	var largetot = (largeqty * 6);
	document.form1.largetotal.value = largetot;
	
	var plastictot = (plasticqty * 3);
	document.form1.plastictotal.value = plastictot;
	
	

	
	
	
	tot = (desktot + chairtot + filingtot + computertot + archivestot + printertot + copierstot + threesetteetot + twosetteetot + armchairtot + footstooltot + tvtot + videotot + picturtot + coffetot + nesttot + hifitot + tvcabinettot + fivewidetot + threewidetot + diningtabletot + diningchairtot + sideboardtot + whelshdressertot + cookertot + freezetot + washingtot + tumbletot + dishwasherstot + microwavetot + vacuumtot + singlebedtot + singleheadtot + doublebedtot + doubleheadtot + kingbedtot + kingheadtot + bedsidecabinettot + chestdrawerstot + wardrobetot + dressingtabeltot + blanketstot + chevaltot + hightot + pramtot + pushchairtot + cottot + kidsbicycletot + adultbicycletot + golftot + exercisetot + extendingtot + wheelbarrowtot + lawnmowertot + gardentoolstot + patiotot + loungertot + bbqtot + smalltot + mediumtot + largetot + plastictot);
//	alert(tot);	
	document.form1.totalcuft.value = tot;
}

function numeralsOnly(evt, notNumberFunction) {
    evt = (evt) ? evt : event;
    var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode :
        ((evt.which) ? evt.which : 0));

	//handle control chars
	if(evt.charCode == 0)
		if((charCode == 8) || (charCode == 46) || (charCode == 13) || (charCode == 9) || ((charCode > 36)&&(charCode < 41)))
			return true;

    if (charCode > 31 && (charCode < 48 || charCode > 57)) {
        if(notNumberFunction != null)
		notNumberFunction();

        return false;
    }
    return true;
};
