function rowColor(check,warrItem){
	if(check == true || check == 'true') {
		document.getElementById(warrItem).style.backgroundColor = 'maroon';
		document.getElementById(warrItem).style.color = 'white';
		document.getElementById(warrItem).style.fontWeight = 'bold';
	} else {
		document.getElementById(warrItem).style.backgroundColor = '';
		document.getElementById(warrItem).style.color = 'black';
		document.getElementById(warrItem).style.fontWeight = 'normal';
	}
}



function fnRemoveOasis(){
	document.frmWarrantyOptions.chkOasisPackage.checked = false;
	document.frmWarrantyOptions.chkPrestigeHomeBuyer.checked = false;
	rowColor('false','chkPrestigeHomeBuyerTD');
	document.frmWarrantyOptions.chkEliteCoverage.checked = false;
	rowColor('false','chkEliteCoverageTD');
	document.frmWarrantyOptions.chkSwimmingPool.checked = false;
	rowColor('false','chkSwimmingPoolTD');
	document.frmWarrantyOptions.chkRefrigerator.checked = false;
	rowColor('false','chkRefrigeratorTD');
	document.frmWarrantyOptions.chkIceMaker.checked = false;
	rowColor('false','chkIceMakerTD');
	document.frmWarrantyOptions.chkLackMaintain.checked = false;
	rowColor('false','chkLackMaintainTD');
	document.frmWarrantyOptions.chkImproperInstall.checked = false;
	rowColor('false','chkImproperInstallTD');
	
	fnCalcTotal();	
}





function fnRemoveDesert(){
	document.frmWarrantyOptions.chkDesertPackage.checked = false;
	document.frmWarrantyOptions.chkPrestigeHomeBuyer.checked = false;
	rowColor('false','chkPrestigeHomeBuyerTD');
	document.frmWarrantyOptions.chkEliteCoverage.checked = false;
	rowColor('false','chkEliteCoverageTD');
	document.frmWarrantyOptions.chkIceMaker.checked = false;
	rowColor('false','chkIceMakerTD');
	document.frmWarrantyOptions.chkBubbleDripTimerSystem.checked = false;
	rowColor('false','chkBubbleDripTimerSystemTD');
	document.frmWarrantyOptions.chkRoofLeakRepair.checked = false;
	rowColor('false','chkRoofLeakRepairTD');
	document.frmWarrantyOptions.chkWasherDryer.checked = false;
	rowColor('false','chkWasherDryerTD');
	document.frmWarrantyOptions.chkLackMaintain.checked = false;
	rowColor('false','chkLackMaintainTD');
	document.frmWarrantyOptions.chkImproperInstall.checked = false;
	rowColor('false','chkImproperInstallTD');
	
	fnCalcTotal();
}





function fnRemoveFreedomChoice(){
	document.frmWarrantyOptions.chkFreedomChoice.checked = false;
	document.frmWarrantyOptions.chkFreedomRed.checked = false;	document.frmWarrantyOptions.chkFreedomWhite.checked = false;	document.frmWarrantyOptions.chkFreedomBlue.checked = false;
	rowColor('false','chkFreedomRedTD');
	rowColor('false','chkFreedomWhiteTD');
	rowColor('false','chkFreedomBlueTD');

	document.frmWarrantyOptions.chkIceMaker.checked = false;
	rowColor('false','chkIceMakerTD');
	document.frmWarrantyOptions.chkRefrigerator.checked = false;
	rowColor('false','chkRefrigeratorTD');
	document.frmWarrantyOptions.chkWasherDryer.checked = false;
	rowColor('false','chkWasherDryerTD');
	document.frmWarrantyOptions.chkSwimmingPool.checked = false;
	rowColor('false','chkSwimmingPoolTD');
	document.frmWarrantyOptions.chk13Seer.checked = false;
	rowColor('false','chk13SeerTD');	
	document.frmWarrantyOptions.chkRoofLeakRepair.checked = false;
	rowColor('false','chkRoofLeakRepairTD');
	fnCalcTotal();
}










function fnCalcTotal(me)
{
	var totalCost = 0;
	document.frmWarrantyOptions.chkFreedomChoice.checked = true;

	if(document.frmWarrantyOptions.chkFreedomRed.checked == false && document.frmWarrantyOptions.chkFreedomWhite.checked == false && document.frmWarrantyOptions.chkFreedomBlue.checked == false)
	{
	document.frmWarrantyOptions.chkFreedomChoice.checked = false;
	}


	if(document.frmWarrantyOptions.chkPrestigeHomeBuyer.checked == true && document.frmWarrantyOptions.chkOasisPackage.checked == false && document.frmWarrantyOptions.chkDesertPackage.checked == false)
	{totalCost = totalCost + 305.00;}


	



	if(document.frmWarrantyOptions.chkPrestigeHomeBuyerPC.checked == true)
	{totalCost = totalCost + 295.00;}


	if(document.frmWarrantyOptions.chkBasicHomeBuyer.checked == true)
	{totalCost = totalCost + 245.00;}
	
	if(document.frmWarrantyOptions.chkPrestigeHomeOwner.checked == true)
	{totalCost = totalCost + 345.00;}
	
	if(document.frmWarrantyOptions.chkPrestigeRenewal.checked == true)
	{totalCost = totalCost + 395.00;}
	
	if(document.frmWarrantyOptions.chkCondoHomeBuyer.checked == true)
	{totalCost = totalCost + 280.00;}
	
	if(document.frmWarrantyOptions.chkAirHeaterHomeSeller.checked == true)
	{totalCost = totalCost + 100.00;}
	
	if(document.frmWarrantyOptions.chkDuplex.checked == true)
	{totalCost = totalCost + 495.00;}
	
	if(document.frmWarrantyOptions.chk5YearNewHome.checked == true)
	{totalCost = totalCost + 525.00;}

	if(document.frmWarrantyOptions.chkTriplex.checked == true)
	{totalCost = totalCost + 625.00;}
	
	if(document.frmWarrantyOptions.chkFourPlex.checked == true)
	{totalCost = totalCost + 795.00;}
	
	if(document.frmWarrantyOptions.chk90DayWarranty.checked == true)
	{totalCost = totalCost + 75.00;}
	
	if(document.frmWarrantyOptions.chkHomeWarrantyInspectionFee.checked == true)
	{totalCost = totalCost + 35.00;}
	
	if(document.frmWarrantyOptions.chkEliteCoverage.checked == true && document.frmWarrantyOptions.chkOasisPackage.checked == false && document.frmWarrantyOptions.chkDesertPackage.checked == false)
	{totalCost = totalCost + 75.00;}

	if(document.frmWarrantyOptions.chkEliteCoveragePC.checked == true)
	{totalCost = totalCost + 55.00;}


	if(document.frmWarrantyOptions.chk13Seer.checked == true && document.frmWarrantyOptions.chkFreedomChoice.checked == false)
	{totalCost = totalCost + 35.00;}
	
	if(document.frmWarrantyOptions.chkAdditionalAC.checked == true)
	{totalCost = totalCost + 65.00;}
	
	if(document.frmWarrantyOptions.chkSwimmingPool.checked == true && document.frmWarrantyOptions.chkOasisPackage.checked == false && document.frmWarrantyOptions.chkFreedomChoice.checked == false)
	{totalCost = totalCost + 150.00;}
	
	if(document.frmWarrantyOptions.chkSaltWaterPool.checked == true)
	{totalCost = totalCost + 350.00;}
	

	if(document.frmWarrantyOptions.chkPortableSpa.checked == true)
	{totalCost = totalCost + 150.00;}
	



	if(document.frmWarrantyOptions.chkRefrigerator.checked == true && document.frmWarrantyOptions.chkOasisPackage.checked == false && document.frmWarrantyOptions.chkDesertPackage.checked == false && document.frmWarrantyOptions.chkFreedomChoice.checked == false)
	{totalCost = totalCost + 55.00;}
	
	if(document.frmWarrantyOptions.chkRefrigerator.checked == true && document.frmWarrantyOptions.chkTucson.checked == false && document.frmWarrantyOptions.chkOasisPackage.checked == false && document.frmWarrantyOptions.chkDesertPackage.checked == true && document.frmWarrantyOptions.chkFreedomChoice.checked == false)
	{totalCost = totalCost + 55.00;}
	

	if(document.frmWarrantyOptions.chkIceMaker.checked == true && document.frmWarrantyOptions.chkOasisPackage.checked == false && document.frmWarrantyOptions.chkDesertPackage.checked == false && document.frmWarrantyOptions.chkFreedomChoice.checked == false)
	{totalCost = totalCost + 25.00;}
	

	if(document.frmWarrantyOptions.chkRefrigeratorSubZero.checked == true)
	{totalCost = totalCost + 125.00;}
	
	if(document.frmWarrantyOptions.chkFreestandIceMaker.checked == true)
	{totalCost = totalCost + 50.00;}
	
	if(document.frmWarrantyOptions.chkRefrigeratorWetBar.checked == true)
	{totalCost = totalCost + 25.00;}

	if(document.frmWarrantyOptions.chkWineCooler.checked == true)
	{totalCost = totalCost + 25.00;}
	


	if(document.frmWarrantyOptions.chkWaterSoftener.checked == true)
	{totalCost = totalCost + 50.00;}
	
	if(document.frmWarrantyOptions.chkRoofLeakRepair.checked == true && document.frmWarrantyOptions.chkFreedomChoice.checked == false && document.frmWarrantyOptions.chkTucson.checked == true && document.frmWarrantyOptions.chkDesertPackage.checked == false)
	{totalCost = totalCost + 110.00;}

	if(document.frmWarrantyOptions.chkRoofLeakRepair.checked == true && document.frmWarrantyOptions.chkFreedomChoice.checked == false && document.frmWarrantyOptions.chkTucson.checked == false)
	{totalCost = totalCost + 110.00;}

	if(document.frmWarrantyOptions.chkAdditionalPool.checked == true)
	{totalCost = totalCost + 75.00;}
	
	if(document.frmWarrantyOptions.chkWasherDryer.checked == true && document.frmWarrantyOptions.chkDesertPackage.checked == false && document.frmWarrantyOptions.chkFreedomChoice.checked == false)
	{totalCost = totalCost + 75.00;}
	
	if(document.frmWarrantyOptions.chkWasherDryer.checked == true && document.frmWarrantyOptions.chkTucson.checked == false && document.frmWarrantyOptions.chkDesertPackage.checked == true)
	{totalCost = totalCost + 75.00;}
	


	if(document.frmWarrantyOptions.chkWasherDryerRefrigerator.checked == true)
	{totalCost = totalCost + 110.00;}
	
	if(document.frmWarrantyOptions.chkWellPump.checked == true)
	{totalCost = totalCost + 100.00;}
	
	if(document.frmWarrantyOptions.chkWellPumpBoosterJetPump.checked == true)
	{totalCost = totalCost + 150.00;}
	
	if(document.frmWarrantyOptions.chkBubbleDripTimerSystem.checked == true && document.frmWarrantyOptions.chkDesertPackage.checked == false)
	{totalCost = totalCost + 65.00;}
	
	if(document.frmWarrantyOptions.chkSepticCoverage.checked == true)
	{totalCost = totalCost + 80.00;}
	
	if(document.frmWarrantyOptions.chkPostCardWasherDryer.checked == true)
	{totalCost = totalCost + 85.00;}
	
	if(document.frmWarrantyOptions.chkRenewRoofLeakRepair.checked == true)
	{totalCost = totalCost + 110.00;}
	
	
	if(document.frmWarrantyOptions.chkLackMaintain.checked == true && document.frmWarrantyOptions.chkDesertPackage.checked == false && document.frmWarrantyOptions.chkOasisPackage.checked == false)
	{totalCost = totalCost + 195.00;}


	if(document.frmWarrantyOptions.chkImproperInstall.checked == true && document.frmWarrantyOptions.chkDesertPackage.checked == false && document.frmWarrantyOptions.chkOasisPackage.checked == false)
	{totalCost = totalCost + 75.00;}


	if(document.frmWarrantyOptions.chkRenewPoolSpa.checked == true)
	{totalCost = totalCost + 150.00;}



	if(document.frmWarrantyOptions.chkPestControl.checked == true)
	{totalCost = totalCost + 35.00;}
		
	if(document.frmWarrantyOptions.chkFreePestControl.checked == true)
	{totalCost = totalCost + 0.00;}
	
	if(document.frmWarrantyOptions.chkPromiseTermite.checked == true)
	{totalCost = totalCost + 150.00;}
	







<!--- Freedom Red --->
	if(document.frmWarrantyOptions.chkFreedomRed.checked == true)
	{
	rowColor('true','chkFreedomRedTD');
	document.frmWarrantyOptions.chkSwimmingPool.checked = true;
	rowColor('true','chkSwimmingPoolTD');
	document.frmWarrantyOptions.chkIceMaker.checked = true;
	rowColor('true','chkIceMakerTD');
	document.frmWarrantyOptions.chkRefrigerator.checked = true;
	rowColor('true','chkRefrigeratorTD');
	document.frmWarrantyOptions.chkWasherDryer.checked = true;
	rowColor('true','chkWasherDryerTD');
	document.frmWarrantyOptions.chkRoofLeakRepair.checked = true;
	rowColor('true','chkRoofLeakRepairTD');
	document.frmWarrantyOptions.chk13Seer.checked = true;
	rowColor('true','chk13SeerTD');
	totalCost = totalCost + 495.00;
	}




<!--- Freedom White --->
	if(document.frmWarrantyOptions.chkFreedomWhite.checked == true)
	{
	rowColor('true','chkFreedomWhiteTD');
	document.frmWarrantyOptions.chkSwimmingPool.checked = true;
	rowColor('true','chkSwimmingPoolTD');
	document.frmWarrantyOptions.chkIceMaker.checked = true;
	rowColor('true','chkIceMakerTD');
	document.frmWarrantyOptions.chkRefrigerator.checked = true;
	rowColor('true','chkRefrigeratorTD');
	document.frmWarrantyOptions.chkWasherDryer.checked = true;
	rowColor('true','chkWasherDryerTD');
	document.frmWarrantyOptions.chkRoofLeakRepair.checked = true;
	rowColor('true','chkRoofLeakRepairTD');
	document.frmWarrantyOptions.chk13Seer.checked = true;
	rowColor('true','chk13SeerTD');
	totalCost = totalCost + 295.00;
	}
		



<!--- Freedom Blue --->
	if(document.frmWarrantyOptions.chkFreedomBlue.checked == true)
	{
	rowColor('true','chkFreedomBlueTD');
	document.frmWarrantyOptions.chkSwimmingPool.checked = true;
	rowColor('true','chkSwimmingPoolTD');
	document.frmWarrantyOptions.chkIceMaker.checked = true;
	rowColor('true','chkIceMakerTD');
	document.frmWarrantyOptions.chkRefrigerator.checked = true;
	rowColor('true','chkRefrigeratorTD');
	document.frmWarrantyOptions.chkWasherDryer.checked = true;
	rowColor('true','chkWasherDryerTD');
	document.frmWarrantyOptions.chkRoofLeakRepair.checked = true;
	rowColor('true','chkRoofLeakRepairTD');
	document.frmWarrantyOptions.chk13Seer.checked = true;
	rowColor('true','chk13SeerTD');
	totalCost = totalCost + 95.00;
	}
		

	



<!--- Oasis --->
	if(document.frmWarrantyOptions.chkOasisPackage.checked == true)
	{
	document.frmWarrantyOptions.chkPrestigeHomeBuyer.checked = true;
	rowColor('true','chkPrestigeHomeBuyerTD');
	document.frmWarrantyOptions.chkEliteCoverage.checked = true;
	rowColor('true','chkEliteCoverageTD');
	document.frmWarrantyOptions.chkSwimmingPool.checked = true;
	rowColor('true','chkSwimmingPoolTD');
	document.frmWarrantyOptions.chkIceMaker.checked = true;
	rowColor('true','chkIceMakerTD');
	document.frmWarrantyOptions.chkLackMaintain.checked = true;
	rowColor('true','chkLackMaintainTD');
	document.frmWarrantyOptions.chkImproperInstall.checked = true;
	rowColor('true','chkImproperInstallTD');
	totalCost = totalCost + 500.00;
	}
		



<!--- Desert --->
	if(document.frmWarrantyOptions.chkDesertPackage.checked == true && document.frmWarrantyOptions.chkTucson.checked == false)
	{
	document.frmWarrantyOptions.chkPrestigeHomeBuyer.checked = true;
	rowColor('true','chkPrestigeHomeBuyerTD');
	document.frmWarrantyOptions.chkEliteCoverage.checked = true;
	rowColor('true','chkEliteCoverageTD');
	document.frmWarrantyOptions.chkIceMaker.checked = true;
	rowColor('true','chkIceMakerTD');
	document.frmWarrantyOptions.chkRoofLeakRepair.checked = true;
	rowColor('true','chkRoofLeakRepairTD');
	document.frmWarrantyOptions.chkWasherDryer.checked = true;
	rowColor('true','chkWasherDryerTD');
	document.frmWarrantyOptions.chkBubbleDripTimerSystem.checked = true;
	rowColor('true','chkBubbleDripTimerSystemTD');
	document.frmWarrantyOptions.chkLackMaintain.checked = true;
	rowColor('true','chkLackMaintainTD');
	document.frmWarrantyOptions.chkImproperInstall.checked = true;
	rowColor('true','chkImproperInstallTD');
	totalCost = totalCost + 500.00;
	}




<!--- Desert Tucson --->
	if(document.frmWarrantyOptions.chkDesertPackage.checked == true && document.frmWarrantyOptions.chkTucson.checked == true)
	{
	document.frmWarrantyOptions.chkPrestigeHomeBuyer.checked = true;
	rowColor('true','chkPrestigeHomeBuyerTD');
	document.frmWarrantyOptions.chkEliteCoverage.checked = true;
	rowColor('true','chkEliteCoverageTD');
	document.frmWarrantyOptions.chkIceMaker.checked = true;
	rowColor('true','chkIceMakerTD');
	document.frmWarrantyOptions.chkRoofLeakRepair.checked = true;
	rowColor('true','chkRoofLeakRepairTD');
	document.frmWarrantyOptions.chkRefrigerator.checked = true;
	rowColor('true','chkRefrigeratorTD');
	document.frmWarrantyOptions.chkWasherDryer.checked = true;
	rowColor('true','chkWasherDryerTD');
	document.frmWarrantyOptions.chkBubbleDripTimerSystem.checked = true;
	rowColor('true','chkBubbleDripTimerSystemTD');
	document.frmWarrantyOptions.chkLackMaintain.checked = true;
	rowColor('true','chkLackMaintainTD');
	document.frmWarrantyOptions.chkImproperInstall.checked = true;
	rowColor('true','chkImproperInstallTD');
	document.frmWarrantyOptions.chkTucsonPestAnalysis.checked = true;
	rowColor('true','chkTucsonPestAnalysisTD');
	totalCost = totalCost + 500.00;
	}
	





	
	document.frmWarrantyOptions.txtTotalCost.value = totalCost;
	calcOrderTotal();
}

		
