// JavaScript Document
function calculateCost() 

{ 

var SLcost = 0; SMcost = 0; SEcost = 0; SCcost = 0; SWLcost =0; SWMcost = 0; SWEcost = 0; CScost = 0; CVAcost = 0; CVHcost = 0; CVMcost = 0; CBcost = 0; FPcost = 0; FBcost = 0; FCcost = 0; FMcost = 0; BCcost = 0; BBucost = 0; BLcost = 0; BBecost = 0; BMcost = 0; BPcost = 0; BEcost = 0; BoCcost = 0; BoBucost = 0; BoBecost = 0; BoMcost = 0; BoPcost = 0; BoEcost = 0; PCcost = 0; PBucost = 0; PLcost = 0; PBecost = 0; PMcost = 0; PPcost = 0; PEcost = 0; WBcost = 0; HCcost = 0; HBucost = 0; HMocost = 0; HBecost = 0; HMcost = 0; HPcost = 0; HEcost = 0;

// Safari Cotton Sweaters
if(document.TotoKnits.SafariCottonLionSize.selected) 

{ 

SLcost=SLcost +(75 * document.TotoKnits.SafariCottonLionQuantity.value)
document.TotoKnits.SafariCottonLionTotal.value ="US $ " + SLcost

} 

else 

{ }

if(document.TotoKnits.SafariCottonMonkeySize.selected) 

{ 

SMcost=SMcost +(75 * document.TotoKnits.SafariCottonMonkeyQuantity.value)
document.TotoKnits.SafariCottonMonkeyTotal.value ="US $ " + SMcost

} 

else 

{ } 

if(document.TotoKnits.SafariCottonElephantSize.selected) 

{ 

SEcost=SEcost +(75 * document.TotoKnits.SafariCottonElephantQuantity.value)
document.TotoKnits.SafariCottonElephantTotal.value ="US $ " + SEcost

} 

else 

{ } 

if(document.TotoKnits.SafariCottonCrocodileSize.selected) 

{ 

SCcost=SCcost +(75 * document.TotoKnits.SafariCottonCrocodileQuantity.value)
document.TotoKnits.SafariCottonCrocodileTotal.value ="US $ " + SCcost

} 

else 

{ }

// Safari Wool Sweaters
if(document.TotoKnits.SafariWoolLionSize.selected) 

{ 

SWLcost=SWLcost +(75 * document.TotoKnits.SafariWoolLionQuantity.value)
document.TotoKnits.SafariWoolLionTotal.value ="US $ " + SWLcost

} 

else 

{ }

if(document.TotoKnits.SafariWoolMonkeySize.selected) 

{ 

SWMcost=SWMcost +(75 * document.TotoKnits.SafariWoolMonkeyQuantity.value)
document.TotoKnits.SafariWoolMonkeyTotal.value ="US $ " + SWMcost

} 

else 

{ } 

if(document.TotoKnits.SafariWoolElephantSize.selected) 

{ 

SWEcost=SWEcost +(75 * document.TotoKnits.SafariWoolElephantQuantity.value)
document.TotoKnits.SafariWoolElephantTotal.value ="US $ " + SWEcost

}

else 

{ }

// Classic Sweaters
if(document.TotoKnits.ClassicStripeySize.selected) 

{ 

CScost=CScost +(60 * document.TotoKnits.ClassicStripeyQuantity.value)
document.TotoKnits.ClassicStripeyTotal.value ="US $ " + CScost

} 

else 

{ }

if(document.TotoKnits.ClassicVarsityAnimalSize.selected) 

{ 

CVAcost=CVAcost +(60 * document.TotoKnits.ClassicVarsityAnimalQuantity.value)
document.TotoKnits.ClassicVarsityAnimalTotal.value ="US $ " + CVAcost

} 

else 

{ }

if(document.TotoKnits.ClassicVarsityHeartSize.selected) 

{ 

CVHcost=CVHcost +(60 * document.TotoKnits.ClassicVarsityHeartQuantity.value)
document.TotoKnits.ClassicVarsityHeartTotal.value ="US $ " + CVHcost

} 

else 

{ } 

if(document.TotoKnits.ClassicVarsityMonogramSize.selected) 

{ 

CVMcost=CVMcost +(60 * document.TotoKnits.ClassicVarsityMonogramQuantity.value)
document.TotoKnits.ClassicVarsityMonogramTotal.value ="US $ " + CVMcost

}

else 

{ } 

if(document.TotoKnits.ClassicBoleroSize.selected) 

{ 

CBcost=CBcost +(60 * document.TotoKnits.ClassicBoleroQuantity.value)
document.TotoKnits.ClassicBoleroTotal.value ="US $ " + CBcost

}

else 

{ } 

// Farm Animals Cotton
if(document.TotoKnits.FarmPiggySize.selected) 

{ 

FPcost=FPcost +(75 * document.TotoKnits.FarmPiggyQuantity.value)
document.TotoKnits.FarmPiggyTotal.value ="US $ " + FPcost

}

else 

{ } 

if(document.TotoKnits.FarmBunnySize.selected) 

{ 

FBcost=FBcost +(75 * document.TotoKnits.FarmBunnyQuantity.value)
document.TotoKnits.FarmBunnyTotal.value ="US $ " + FBcost

}

else 

{ } 

if(document.TotoKnits.FarmChickieSize.selected) 

{ 

FCcost=FCcost +(75 * document.TotoKnits.FarmChickieQuantity.value)
document.TotoKnits.FarmChickieTotal.value ="US $ " + FCcost

}

else 

{ } 

if(document.TotoKnits.FarmMouseSize.selected) 

{ 

FMcost=FMcost +(75 * document.TotoKnits.FarmMouseQuantity.value)
document.TotoKnits.FarmMouseTotal.value ="US $ " + FMcost

}

else 

{ } 

// Blankies
if(document.TotoKnits.BlankiesChickieSize.selected) 

{ 

BCcost=BCcost +(40 * document.TotoKnits.BlankiesChickieQuantity.value)
document.TotoKnits.BlankiesChickieTotal.value ="US $ " + BCcost

}

else 

{ } 

if(document.TotoKnits.BlankiesBunnySize.selected) 

{ 

BBucost=BBucost +(40 * document.TotoKnits.BlankiesBunnyQuantity.value)
document.TotoKnits.BlankiesBunnyTotal.value ="US $ " + BBucost

}

else 

{ } 

if(document.TotoKnits.BlankiesLionSize.selected) 

{ 

BLcost=BLcost +(40 * document.TotoKnits.BlankiesLionQuantity.value)
document.TotoKnits.BlankiesLionTotal.value ="US $ " + BLcost

}

else 

{ } 

if(document.TotoKnits.BlankiesBearSize.selected) 

{ 

BBecost=BBecost +(40 * document.TotoKnits.BlankiesBearQuantity.value)
document.TotoKnits.BlankiesBearTotal.value ="US $ " + BBecost

}

else 

{ } 

if(document.TotoKnits.BlankiesMouseSize.selected) 

{ 

BMcost=BMcost +(40 * document.TotoKnits.BlankiesMouseQuantity.value)
document.TotoKnits.BlankiesMouseTotal.value ="US $ " + BMcost

}

else 

{ }

if(document.TotoKnits.BlankiesPiggySize.selected) 

{ 

BPcost=BPcost +(40 * document.TotoKnits.BlankiesPiggyQuantity.value)
document.TotoKnits.BlankiesPiggyTotal.value ="US $ " + BPcost

}

else 

{ } 

if(document.TotoKnits.BlankiesElephantSize.selected) 

{ 

BEcost=BEcost +(40 * document.TotoKnits.BlankiesElephantQuantity.value)
document.TotoKnits.BlankiesElephantTotal.value ="US $ " + BEcost

}

else 

{ } 

// Booties
if(document.TotoKnits.BootiesChickieSize.selected) 

{ 

BoCcost=BoCcost +(25 * document.TotoKnits.BootiesChickieQuantity.value)
document.TotoKnits.BootiesChickieTotal.value ="US $ " + BoCcost

}

else 

{ } 

if(document.TotoKnits.BootiesBunnySize.selected) 

{ 

BoBucost=BoBucost +(25 * document.TotoKnits.BootiesBunnyQuantity.value)
document.TotoKnits.BootiesBunnyTotal.value ="US $ " + BoBucost

}

else 

{ } 

if(document.TotoKnits.BootiesBearSize.selected) 

{ 

BoBecost=BoBecost +(25 * document.TotoKnits.BootiesBearQuantity.value)
document.TotoKnits.BootiesBearTotal.value ="US $ " + BoBecost

}

else 

{ } 

if(document.TotoKnits.BootiesMouseSize.selected) 

{ 

BoMcost=BoMcost +(25 * document.TotoKnits.BootiesMouseQuantity.value)
document.TotoKnits.BootiesMouseTotal.value ="US $ " + BoMcost

}

else 

{ }

if(document.TotoKnits.BootiesPiggySize.selected) 

{ 

BoPcost=BoPcost +(25 * document.TotoKnits.BootiesPiggyQuantity.value)
document.TotoKnits.BootiesPiggyTotal.value ="US $ " + BoPcost

}

else 

{ } 

if(document.TotoKnits.BootiesElephantSize.selected) 

{ 

BoEcost=BoEcost +(25 * document.TotoKnits.BootiesElephantQuantity.value)
document.TotoKnits.BootiesElephantTotal.value ="US $ " + BoEcost

}

else 

{ } 

// Purses
if(document.TotoKnits.PursesChickieSize.selected) 

{ 

PCcost=PCcost +(15 * document.TotoKnits.PursesChickieQuantity.value)
document.TotoKnits.PursesChickieTotal.value ="US $ " + PCcost

}

else 

{ } 

if(document.TotoKnits.PursesBunnySize.selected) 

{ 

PBucost=PBucost +(15 * document.TotoKnits.PursesBunnyQuantity.value)
document.TotoKnits.PursesBunnyTotal.value ="US $ " + PBucost

}

else 

{ } 

if(document.TotoKnits.PursesLionSize.selected) 

{ 

PLcost=PLcost +(15 * document.TotoKnits.PursesLionQuantity.value)
document.TotoKnits.PursesLionTotal.value ="US $ " + PLcost

}

else 

{ } 

if(document.TotoKnits.PursesBearSize.selected) 

{ 

PBecost=PBecost +(15 * document.TotoKnits.PursesBearQuantity.value)
document.TotoKnits.PursesBearTotal.value ="US $ " + PBecost

}

else 

{ } 

if(document.TotoKnits.PursesMouseSize.selected) 

{ 

PMcost=PMcost +(15 * document.TotoKnits.PursesMouseQuantity.value)
document.TotoKnits.PursesMouseTotal.value ="US $ " + PMcost

}

else 

{ }

if(document.TotoKnits.PursesPiggySize.selected) 

{ 

PPcost=PPcost +(15 * document.TotoKnits.PursesPiggyQuantity.value)
document.TotoKnits.PursesPiggyTotal.value ="US $ " + PPcost

}

else 

{ } 

if(document.TotoKnits.PursesElephantSize.selected) 

{ 

PEcost=PEcost +(15 * document.TotoKnits.PursesElephantQuantity.value)
document.TotoKnits.PursesElephantTotal.value ="US $ " + PEcost

}

else 

{ } 

// Wine Bottle Bags
if(document.TotoKnits.WineBottleSize.selected) 

{ 

WBcost=WBcost +(40 * document.TotoKnits.WineBottleQuantity.value)
document.TotoKnits.WineBottleTotal.value ="US $ " + WBcost

}

else 

{ } 

// Hats
if(document.TotoKnits.HatsChickieSize.selected) 

{ 

HCcost=HCcost +(15 * document.TotoKnits.HatsChickieQuantity.value)
document.TotoKnits.HatsChickieTotal.value ="US $ " + HCcost

}

else 

{ } 

if(document.TotoKnits.HatsBunnySize.selected) 

{ 

HBucost=HBucost +(15 * document.TotoKnits.HatsBunnyQuantity.value)
document.TotoKnits.HatsBunnyTotal.value ="US $ " + HBucost

}

else 

{ } 

if(document.TotoKnits.HatsMonkeySize.selected) 

{ 

HMocost=HMocost +(15 * document.TotoKnits.HatsMonkeyQuantity.value)
document.TotoKnits.HatsMonkeyTotal.value ="US $ " + HMocost

}

else 

{ } 

if(document.TotoKnits.HatsBearSize.selected) 

{ 

HBecost=HBecost +(15 * document.TotoKnits.HatsBearQuantity.value)
document.TotoKnits.HatsBearTotal.value ="US $ " + HBecost

}

else 

{ } 

if(document.TotoKnits.HatsMouseSize.selected) 

{ 

HMcost=HMcost +(15 * document.TotoKnits.HatsMouseQuantity.value)
document.TotoKnits.HatsMouseTotal.value ="US $ " + HMcost

}

else 

{ }

if(document.TotoKnits.HatsPiggySize.selected) 

{ 

HPcost=HPcost +(15 * document.TotoKnits.HatsPiggyQuantity.value)
document.TotoKnits.HatsPiggyTotal.value ="US $ " + HPcost

}

else 

{ } 

if(document.TotoKnits.HatsElephantSize.selected) 

{ 

HEcost=HEcost +(15 * document.TotoKnits.HatsElephantQuantity.value)
document.TotoKnits.HatsElephantTotal.value ="US $ " + HEcost

}

else 

{ } 

// Calculate Costs
var SafariCottonCost = 0;
SafariCottonCost = SLcost + SMcost + SEcost + SCcost;

var SafariWoolCost = 0;
SafariWoolCost = SWLcost + SWMcost + SWEcost;

var ClassicCost = 0;
ClassicCost = CScost + CVAcost + CVHcost + CVMcost + CBcost;

var FarmCost = 0;
FarmCost = FPcost + FCcost + FBcost + FMcost;

var BlankiesCost = 0;
BlankiesCost = BCcost + BBucost + BLcost + BBecost + BMcost + BPcost + BEcost;

var BootiesCost = 0;
BootiesCost = BoCcost + BoBucost + BoBecost + BoMcost + BoPcost + BoEcost;

var PursesCost = 0;
PursesCost = PCcost + PBucost + PLcost + PBecost + PMcost + PPcost + PEcost;

var WineBottleCost = 0;
WineBottleCost = WBcost;

var HatsCost = 0;
HatsCost = HCcost + HBucost + HMocost + HBecost + HMcost + HPcost + HEcost;

var GrandCost = 0;
GrandCost = SafariCottonCost + SafariWoolCost + ClassicCost + FarmCost + BlankiesCost + BootiesCost + PursesCost + WineBottleCost + HatsCost;
document.TotoKnits.GrandTotal.value ="US $ " + GrandCost

}