//alert('writing constants');
/******************************************************************************
Global multiplier
******************************************************************************/
var x = 1;
/*
var transLandfillFactor = -0.0046363636364;
var transCombustionFactor = -0.0046363636364;
var transRecycleFactor = 0.1344545454545;
var transCompostFactor = -0.0046363636364;
*/
var cnstTransportationFactor = 0.000038; //default to MTCE
var energyUnits = false;
function setglobalmultiplier(xValue){
    if (xValue == "MTCO2E")	{
        x = 44/12;
        cnstTransportationFactor = 0.000038 * 44/12;
        energyUnits = false;
    }
    else if (xValue == "MTCE") {
        x = 1;
        cnstTransportationFactor = 0.000038;
        energyUnits = false;
    }
    else {
        x = 0;
        cnstTransportationFactor = 0.001927463;
        energyUnits = true;
    }
}
/******************************************************************************
getAluminumCanConstants()  
******************************************************************************/
function getAluminumCanConstants(){
    if (energyUnits) { // Aluminum Cans
        cnstSrcReduction     = -126.1841464;
        cnstRecycling        = -206.4222195;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = 0.668254755;
        cnstCompost          = 0;
    } else { // Aluminum Cans
        cnstSrcReduction     = -2.261902574 * x;
        cnstRecycling        = -3.728396287 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0.016774217 * x;
        cnstCompost          = 0;
    }
    
    return true;
    
}// end getAluminumCanConstants()  
/******************************************************************************
getSteelCanConstants()  
******************************************************************************/
function getSteelCanConstants(){
    if (energyUnits) { // Steel Cans
        cnstSrcReduction     = -30.78837594;
        cnstRecycling        = -19.96620105;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = -17.08061172;
        cnstCompost          = 0;
    } else { // Steel Cans
        cnstSrcReduction     = -0.869293014 * x;
        cnstRecycling        = -0.489886048 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = -0.418799341 * x;
        cnstCompost          = 0;
    }
    
    return true;
    
}// end getSteelCanConstants()  
/******************************************************************************
getCopperWireConstants()  
******************************************************************************/
function getCopperWireConstants(){
    if (energyUnits) { // Copper Wire
        cnstSrcReduction     = -122.3076863;
        cnstRecycling        = -82.58964421;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = 0.598916181;
        cnstCompost          = 0;
    } else { // Copper Wire
        cnstSrcReduction     = -2.019720977 * x;
        cnstRecycling        = -1.35530319 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0.015027185 * x;
        cnstCompost          = 0;
    }
    
    return true;
    
}// end getCopperWireConstants()
/******************************************************************************
getGlassConstants()  
******************************************************************************/
function getGlassConstants(){
    if (energyUnits) { // Glass
        cnstSrcReduction     = -7.534443873;
        cnstRecycling        = -2.12540982;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = 0.557313037;
        cnstCompost          = 0;
    } else { // Glass
        cnstSrcReduction     = -0.157142719 * x;
        cnstRecycling        = -0.076045908 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0.013978966 * x;
        cnstCompost          = 0;
    }
    return true;
    
}// end getGlassConstants()
/******************************************************************************
getHDPEConstants()  
******************************************************************************/
function getHDPEConstants(){
    if (energyUnits) { // HDPE
        cnstSrcReduction     = -63.68260215;
        cnstRecycling        = -50.90402796;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = -20.43507883;
        cnstCompost          = 0;
    } else { // HDPE
        cnstSrcReduction     = -0.491171184 * x;
        cnstRecycling        = -0.382799502 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0.247066443 * x;
        cnstCompost          = 0;
    }
    return true;
    
}// end getHDPEConstants()  
/******************************************************************************
getLDPEConstants()  
******************************************************************************/
function getLDPEConstants(){
    if (energyUnits) { // LDPE
        cnstSrcReduction     = -73.91970335;
        cnstRecycling        = -56.01033483;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = -20.43507883;
        cnstCompost          = 0;
    } else { // LDPE
        cnstSrcReduction     = -0.623345077 * x;
        cnstRecycling        = -0.465880599 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0.247066443 * x;
        cnstCompost          = 0;
    }
    return true;
    
}// end getLDPEConstants()  
/******************************************************************************
getPETConstants()  
******************************************************************************/
function getPETConstants(){
    if (energyUnits) { // PET
        cnstSrcReduction     = -70.67352903;
        cnstRecycling        = -52.83194641;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = -10.46696547;
        cnstCompost          = 0;
    } else { // PET
        cnstSrcReduction     = -0.575814572 * x;
        cnstRecycling        = -0.4229944 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0.291871215 * x;
        cnstCompost          = 0;
    }
    
    return true;
    
}// end getPETConstants() 
/******************************************************************************
getCorrugatedBoxConstants()
******************************************************************************/
function getCorrugatedBoxConstants(){
    if (energyUnits) { // Corrugated Cardboard
        cnstSrcReduction     = -21.90531936;
        cnstRecycling        = -15.41816266;
        cnstLandfillNatAve   = 0.215492189;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -0.507628866;
        cnstCombustion       = -7.517025195;
        cnstCompost          = 0;
    } else { // Corrugated Cardboard
        cnstSrcReduction     = -1.525682921 * x;
        cnstRecycling        = -0.84841898 * x;
        cnstLandfillNatAve   = 0.090678438 * x;
        cnstLandfillNoRec    = 0.405298069 * x;
        cnstLandfillFlare    = -0.058844788 * x;
        cnstLandfillEnergyRec= -0.126519938 * x;
        cnstCombustion       = -0.179459412 * x;
        cnstCompost          = 0;
    }
    return true;
}
/******************************************************************************
getMagazinesConstants()
******************************************************************************/
function getMagazinesConstants(){
    if (energyUnits) { // Magazines/third-class mail
        cnstSrcReduction     = -33.2090539;
        cnstRecycling        = -0.685651516;
        cnstLandfillNatAve   = 0.401459344;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.109480957;
        cnstCombustion       = -5.53671553;
        cnstCompost          = 0;
    } else { // Magazines/third-class mail
        cnstSrcReduction     = -2.362506244 * x;
        cnstRecycling        = -0.837418473 * x;
        cnstLandfillNatAve   = -0.089518639 * x;
        cnstLandfillNoRec    = 0.037516982 * x;
        cnstLandfillFlare    = -0.149892418 * x;
        cnstLandfillEnergyRec= -0.177217969 * x;
        cnstCombustion       = -0.129564179 * x;
        cnstCompost          = 0;
    }
    
    return true;
}
/******************************************************************************
getNewspaperConstants()
******************************************************************************/
function getNewspaperConstants(){
    if (energyUnits) { // Newspaper
        cnstSrcReduction     = -36.4478496;
        cnstRecycling        = -16.48595094;
        cnstLandfillNatAve   = 0.416530442;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.159492596;
        cnstCombustion       = -8.523266577;
        cnstCompost          = 0;
    } else { // Newspaper
        cnstSrcReduction     = -1.334166393 * x;
        cnstRecycling        = -0.76322444 * x;
        cnstLandfillNatAve   = -0.243279971 * x;
        cnstLandfillNoRec    = -0.13144648 * x;
        cnstLandfillFlare    = -0.296428925 * x;
        cnstLandfillEnergyRec= -0.320484475 * x;
        cnstCombustion       = -0.20481234 * x;
        cnstCompost          = 0;
    }
    return true;
    
}
/******************************************************************************
getOfficePaperConstants()
******************************************************************************/
function getOfficePaperConstants(){
    if (energyUnits) { // Office Paper
        cnstSrcReduction     = -36.58151593;
        cnstRecycling        = -10.08103723;
        cnstLandfillNatAve   = 0.000589199;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -1.220758803;
        cnstCombustion       = -7.24743682;
        cnstCompost          = 0;
    } else { // Office Paper
        cnstSrcReduction     = -2.183379768 * x;
        cnstRecycling        = -0.777527926 * x;
        cnstLandfillNatAve   = 0.481243128 * x;
        cnstLandfillNoRec    = 1.012634179 * x;
        cnstLandfillFlare    = 0.228699114 * x;
        cnstLandfillEnergyRec= 0.11439611 * x;
        cnstCombustion       = -0.172666952 * x;
        cnstCompost          = 0;
    }
        
    return true;
}
/******************************************************************************
getPhonebookConstants()
******************************************************************************/
function getPhonebookConstants(){
    if (energyUnits) { // Phonebooks
        cnstSrcReduction     = -39.86856951;
        cnstRecycling        = -11.41935465;
        cnstLandfillNatAve   = 0.416530442;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.159492596;
        cnstCombustion       = -8.523266577;
        cnstCompost          = 0;
    } else { // Phonebooks
        cnstSrcReduction     = -1.728484767 * x;
        cnstRecycling        = -0.725328776 * x;
        cnstLandfillNatAve   = -0.243279971 * x;
        cnstLandfillNoRec    = -0.13144648 * x;
        cnstLandfillFlare    = -0.296428925 * x;
        cnstLandfillEnergyRec= -0.320484475 * x;
        cnstCombustion       = -0.20481234 * x;
        cnstCompost          = 0;
    }
    return true;
}
/******************************************************************************
getTextbookConstants()
******************************************************************************/
function getTextbookConstants(){
    if (energyUnits) { // Textbooks
        cnstSrcReduction     = -35.30029729;
        cnstRecycling        = -0.529755651;
        cnstLandfillNatAve   = 0.000589199;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -1.220758803;
        cnstCombustion       = -7.24743682;
        cnstCompost          = 0;
    } else { // Textbooks
        cnstSrcReduction     = -2.503554591 * x;
        cnstRecycling        = -0.847751517 * x;
        cnstLandfillNatAve   = 0.481243128 * x;
        cnstLandfillNoRec    = 1.012634179 * x;
        cnstLandfillFlare    = 0.228699114 * x;
        cnstLandfillEnergyRec= 0.11439611 * x;
        cnstCombustion       = -0.172666952 * x;
        cnstCompost          = 0;
    }
    return true;
}
/******************************************************************************
getDimLumberConstants()  
******************************************************************************/
function getDimLumberConstants(){
    if (energyUnits) { // Dimensional Lumber
        cnstSrcReduction     = -3.52954252;
        cnstRecycling        = 0.5879412;
        cnstLandfillNatAve   = 0.366222758;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -0.007447452;
        cnstCombustion       = -8.911562589;
        cnstCompost          = 0;
    } else { // Dimensional Lumber
        cnstSrcReduction     = -0.55121156 * x;
        cnstRecycling        = -0.669600075 * x;
        cnstLandfillNatAve   = -0.142510431 * x;
        cnstLandfillNoRec    = 0.020068134 * x;
        cnstLandfillFlare    = -0.219776022 * x;
        cnstLandfillEnergyRec= -0.254746913 * x;
        cnstCombustion       = -0.214595719 * x;
        cnstCompost          = 0;
    }
    return true;
    
}// end getDimLumberConstants()  
/******************************************************************************
getFiberboardConstants()  
******************************************************************************/
function getFiberboardConstants(){
    if (energyUnits) { // Medium Density Fiberboard
        cnstSrcReduction     = -11.50536102;
        cnstRecycling        = 0.85831416;
        cnstLandfillNatAve   = 0.366222758;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -0.007447452;
        cnstCombustion       = -8.911562589;
        cnstCompost          = 0;
    } else { // Medium Density Fiberboard
        cnstSrcReduction     = -0.605399744 * x;
        cnstRecycling        = -0.673997583 * x;
        cnstLandfillNatAve   = -0.142510431 * x;
        cnstLandfillNoRec    = 0.020068134 * x;
        cnstLandfillFlare    = -0.219776022 * x;
        cnstLandfillEnergyRec= -0.254746913 * x;
        cnstCombustion       = -0.214595719 * x;
        cnstCompost          = 0;
    }
    return true;
    
}// end getFiberboardConstants()
/******************************************************************************
getFoodWasteConstants()  
******************************************************************************/
function getFoodWasteConstants(){
    if (energyUnits) { // Food Scraps
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.325692808;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -0.141941256;
        cnstCombustion       = -2.332718715;
        cnstCompost          = 0.584;
    } else { // Food Scraps
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.185448824 * x;
        cnstLandfillNoRec    = 0.388909718 * x;
        cnstLandfillFlare    = 0.088753874 * x;
        cnstLandfillEnergyRec= 0.044989134 * x;
        cnstCombustion       = -0.048837326 * x;
        cnstCompost          = -0.054037168 * x;
    }
    return true;
    
}// end getFoodWasteConstants()
/******************************************************************************
getYardWasteConstants()  
******************************************************************************/
function getYardWasteConstants(){
    if (energyUnits) { // Yard Trimmings
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.418749887;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.16685756;
        cnstCombustion       = -2.809768102;
        cnstCompost          = 0.584;
    } else { // Yard Trimmings
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = -0.093975836 * x;
        cnstLandfillNoRec    = 0.015618913 * x;
        cnstLandfillFlare    = -0.146060827 * x;
        cnstLandfillEnergyRec= -0.169634821 * x;
        cnstCombustion       = -0.060856906 * x;
        cnstCompost          = -0.054037168 * x;
    }
    return true;
    
}// end getYardWasteConstants()
/******************************************************************************
getGrassConstants()  
******************************************************************************/
function getGrassConstants(){
    if (energyUnits) { // Grass
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.42904418;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.201017944;
        cnstCombustion       = -2.809768102;
        cnstCompost          = 0.584;
    } else { // Grass
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.041103023 * x;
        cnstLandfillNoRec    = 0.140313978 * x;
        cnstLandfillFlare    = -0.006047061 * x;
        cnstLandfillEnergyRec= -0.027387485 * x;
        cnstCombustion       = -0.060856906 * x;
        cnstCompost          = -0.054037168 * x;
    }
    return true;
    
}
/******************************************************************************
getLeavesConstants()  
******************************************************************************/
function getLeavesConstants(){
    if (energyUnits) { // Leaves
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.450424514;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.271966032;
        cnstCombustion       = -2.809768102;
        cnstCompost          = 0.584;
    } else { // Leaves
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = -0.158884035 * x;
        cnstLandfillNoRec    = -0.081239301 * x;
        cnstLandfillFlare    = -0.195784756 * x;
        cnstLandfillEnergyRec= -0.212486253 * x;
        cnstCombustion       = -0.060856906 * x;
        cnstCompost          = -0.054037168 * x;
    }
    
    return true;
    
}
/******************************************************************************
getBranchesConstants()  
******************************************************************************/
function getBranchesConstants(){
    if (energyUnits) { // Branches
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.366222758;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -0.007447452;
        cnstCombustion       = -2.809768102;
        cnstCompost          = 0.584;
    } else { // Branches
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = -0.142510431 * x;
        cnstLandfillNoRec    = 0.020068134 * x;
        cnstLandfillFlare    = -0.219776022 * x;
        cnstLandfillEnergyRec= -0.254746913 * x;
        cnstCombustion       = -0.060856906 * x;
        cnstCompost          = -0.054037168 * x;
    }
    return true;
    
}
/******************************************************************************
getMixedPaperBroadConstants()
******************************************************************************/
function getMixedPaperBroadConstants(){
    if (energyUnits) { // MP, Broad
        cnstSrcReduction     = 0;
        cnstRecycling        = -22.9418;
        cnstLandfillNatAve   = 0.235638144;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -0.440776917;
        cnstCombustion       = -7.546180678;
        cnstCompost          = 0;
    } else { // MP, Broad
        cnstSrcReduction     = 0;
        cnstRecycling        = -0.964419354 * x;
        cnstLandfillNatAve   = 0.074225592 * x;
        cnstLandfillNoRec    = 0.368524112 * x;
        cnstLandfillFlare    = -0.065640011 * x;
        cnstLandfillEnergyRec= -0.12894406 * x;
        cnstCombustion       = -0.180194004 * x;
        cnstCompost          = 0;
    }
    return true;
    
}// end getMixedPaperBroadConstants()  
/******************************************************************************
getMixedPaperResidConstants()  
******************************************************************************/
function getMixedPaperResidConstants(){
    if (energyUnits) { // MP, Residential
        cnstSrcReduction     = 0;
        cnstRecycling        = -22.9418;
        cnstLandfillNatAve   = 0.250241284;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -0.392318139;
        cnstCombustion       = -7.512687374;
        cnstCompost          = 0;
    } else { // MP, Residential
        cnstSrcReduction     = 0;
        cnstRecycling        = -0.964419354 * x;
        cnstLandfillNatAve   = 0.050527353 * x;
        cnstLandfillNoRec    = 0.33009577 * x;
        cnstLandfillFlare    = -0.082337756 * x;
        cnstLandfillEnergyRec= -0.142473338 * x;
        cnstCombustion       = -0.179350118 * x;
        cnstCompost          = 0;
    }
    return true;
    
}// end getMixedPaperResidConstants()  
/******************************************************************************
getMixedPaperOfficeConstants()  
******************************************************************************/
function getMixedPaperOfficeConstants(){
    if (energyUnits) { // MP, Office
        cnstSrcReduction     = 0;
        cnstRecycling        = -13.95134426;
        cnstLandfillNatAve   = 0.242995262;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -0.416363199;
        cnstCombustion       = -6.912980823;
        cnstCompost          = 0;
    } else { // MP, Office
        cnstSrcReduction     = 0;
        cnstRecycling        = -0.932546856 * x;
        cnstLandfillNatAve   = 0.104090806 * x;
        cnstLandfillNoRec    = 0.390968244 * x;
        cnstLandfillFlare    = -0.032247921 * x;
        cnstLandfillEnergyRec= -0.093955684 * x;
        cnstCombustion       = -0.164240108 * x;
        cnstCompost          = 0;
    }
    
    return true;
    
}// end getMixedPaperOfficeConstants()  
/******************************************************************************
getMixedMetalsConstants()  
******************************************************************************/
function getMixedMetalsConstants(){
    if (energyUnits) { // Mixed Metals
        cnstSrcReduction     = 0;
        cnstRecycling        = -74.31436787;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = 0.569999198;
        cnstCompost          = 0;
    } else { // Mixed Metals
        cnstSrcReduction     = 0;
        cnstRecycling        = -1.433846432 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = -0.291838439 * x;
        cnstCompost          = 0;
    }
    return true;
    
}// end getMixedMetalsConstants()  
/******************************************************************************
getMixedPlasticsConstants()  
******************************************************************************/
function getMixedPlasticsConstants(){
    if (energyUnits) { // Mixed Plastics
        cnstSrcReduction     = 0;
        cnstRecycling        = -52.67772753;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = -16.25924756;
        cnstCompost          = 0;
    } else { // Mixed Plastics
        cnstSrcReduction     = 0;
        cnstRecycling        = -0.415355951 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0.26583601 * x;
        cnstCompost          = 0;
    }
    return true;
    
}
/******************************************************************************
getMixedRecyclableConstants()  
******************************************************************************/
function getMixedRecyclableConstants(){
    if (energyUnits) { // Mixed Recyclables
        cnstSrcReduction     = 0;
        cnstRecycling        = -16.69509383;
        cnstLandfillNatAve   = 0.29923315;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -0.21552962;
        cnstCombustion       = -7.6103165;
        cnstCompost          = 0;
    } else { // Mixed Recyclables
        cnstSrcReduction     = 0;
        cnstRecycling        = -0.786193442 * x;
        cnstLandfillNatAve   = 0.022272248 * x;
        cnstLandfillNoRec    = 0.252672358 * x;
        cnstLandfillFlare    = -0.080483063 * x;
        cnstLandfillEnergyRec= -0.129059363 * x;
        cnstCombustion       = -0.162489754 * x;
        cnstCompost          = 0;
    }
    return true;
    
}
/******************************************************************************
getMixedOrganicsConstants()  
******************************************************************************/
function getMixedOrganicsConstants(){
    if (energyUnits) { // Mixed Organics
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.373809026;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.017726675;
        cnstCombustion       = -2.438326613;
        cnstCompost          = 0.584;
    } else { // Mixed Organics
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.040969133 * x;
        cnstLandfillNoRec    = 0.162160836 * x;
        cnstLandfillFlare    = -0.066394368 * x;
        cnstLandfillEnergyRec= -0.099719254 * x;
        cnstCombustion       = -0.055052186 * x;
        cnstCompost          = -0.054037168 * x;
    }
    
    return true;
    
}
/******************************************************************************
getMixedMSWConstants()  
******************************************************************************/
function getMixedMSWConstants(){
    if (energyUnits) { // Mixed MSW
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.264219242;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= -0.345933951;
        cnstCombustion       = -9.7034;
        cnstCompost          = 0;
    } else { // Mixed MSW
        cnstSrcReduction     = 0;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.100031982 * x;
        cnstLandfillNoRec    = 0.365500912 * x;
        cnstLandfillFlare    = -0.026132335 * x;
        cnstLandfillEnergyRec= -0.083235096 * x;
        cnstCombustion       = -0.03473527 * x;
        cnstCompost          = 0;
    }
    return true;
}
/******************************************************************************
getCarpetsConstants()  
******************************************************************************/
function getCarpetsConstants(){
    if (energyUnits) { // Carpet
        cnstSrcReduction     = -91.06472;
        cnstRecycling        = -105.5811304;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = -14.8661902;
        cnstCompost          = 0;
    } else { // Carpet
        cnstSrcReduction     = -1.098452414 * x;
        cnstRecycling        = -1.97272233 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0.101421593 * x;
        cnstCompost          = 0;
    }
    return true;
}
/******************************************************************************
getPCsConstants()  
******************************************************************************/
function getPCsConstants(){
    if (energyUnits) { // Personal Computers
        cnstSrcReduction     = -956.7420821;
        cnstRecycling        = -43.43489049;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = -5.846711819;
        cnstCompost          = 0;
    } else { // Personal Computers
        cnstSrcReduction     = -15.26488892 * x;
        cnstRecycling        = -0.61979763 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = -0.055060349 * x;
        cnstCompost          = 0;
    }
    return true;
}
/******************************************************************************
getClayBricksConstants()  
******************************************************************************/
function getClayBricksConstants(){
    if (energyUnits) { // Clay Bricks
        cnstSrcReduction     = -5.13147896;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = 0;
        cnstCompost          = 0;
    } else { // Clay Bricks
        cnstSrcReduction     = -0.077971653 * x;
        cnstRecycling        = 0;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0;
        cnstCompost          = 0;
    }
    return true;
}
/******************************************************************************
getAggregateConstants()  
******************************************************************************/
function getAggregateConstants(){
    if (energyUnits) { // Concrete
        cnstSrcReduction     = 0;
        cnstRecycling        = -0.106822116;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = 0;
        cnstCompost          = 0;
    } else { // Concrete
        cnstSrcReduction     = 0;
        cnstRecycling        = -0.002140989 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0;
        cnstCompost          = 0;
    }
    return true;
}
/******************************************************************************
getFlyAshConstants()  
******************************************************************************/
function getFlyAshConstants(){
    if (energyUnits) { // Fly Ash
        cnstSrcReduction     = 0;
        cnstRecycling        = -4.766676313;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = 0;
        cnstCompost          = 0;
    } else { // Fly Ash
        cnstSrcReduction     = 0;
        cnstRecycling        = -0.237420908 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0;
    }
    return true;
}
/******************************************************************************
getTiresConstants()  
******************************************************************************/
function getTiresConstants(){
    if (energyUnits) { // Tires
        cnstSrcReduction     = -88.17467783;
        cnstRecycling        = -51.96331116;
        cnstLandfillNatAve   = 0.5274;
        cnstLandfillNoRec    = 0.5274;
        cnstLandfillFlare    = 0.5274;
        cnstLandfillEnergyRec= 0.5274;
        cnstCombustion       = -15.1520717;
        cnstCompost          = 0;
    } else { // Tires
        cnstSrcReduction     = -1.094993618 * x;
        cnstRecycling        = -0.501531798 * x;
        cnstLandfillNatAve   = 0.010469926 * x;
        cnstLandfillNoRec    = 0.010469926 * x;
        cnstLandfillFlare    = 0.010469926 * x;
        cnstLandfillEnergyRec= 0.010469926 * x;
        cnstCombustion       = 0.024057875 * x;
    }
    return true;
}
