function selectAllColors(oCheckbox)
{
aColors = new Array('color_grey', 'color_blue', 'color_purple', 'color_lilac');
for (var i = 0; i < aColors.length; i++)
{
document.getElementById(aColors[i]).checked = oCheckbox.checked;
}
return;
}

function recalcPrice()
{
aColors = new Array('color_grey', 'color_blue', 'color_purple', 'color_lilac');
iSelectedColorsCount = 0;
for (var i = 0; i < aColors.length; i++)
{
if (document.getElementById(aColors[i]).checked)
{
iSelectedColorsCount++;
}
}
sTotalPrice = '$0';
if (iSelectedColorsCount == 1)
{
sTotalPrice = '$69.00';
}
if (iSelectedColorsCount == 2)
{
sTotalPrice = '$89.00';
}
if (iSelectedColorsCount == 3)
{
sTotalPrice = '$109.00';
}
if (iSelectedColorsCount == 4)
{
sTotalPrice = '$119.00';
}
document.getElementById('total_price').innerHTML = sTotalPrice;
return;
}
function selectAllColorsEl(oCheckbox)
{
aColors = new Array('el_color_aqua', 'el_color_pure', 'el_color_flame', 'el_color_air');
for (var i = 0; i < aColors.length; i++)
{
document.getElementById(aColors[i]).checked = oCheckbox.checked;
}
return;
}

function recalcPriceEl()
{
aColors = new Array('el_color_aqua', 'el_color_pure', 'el_color_flame', 'el_color_air');
iSelectedColorsCount = 0;
for (var i = 0; i < aColors.length; i++)
{
if (document.getElementById(aColors[i]).checked)
{
iSelectedColorsCount++;
}
}
sTotalPrice = '$0';
if (iSelectedColorsCount == 1)
{
sTotalPrice = '$59.00';
}
if (iSelectedColorsCount == 2)
{
sTotalPrice = '$64.00';
}
if (iSelectedColorsCount == 3)
{
sTotalPrice = '$69.00';
}
if (iSelectedColorsCount == 4)
{
sTotalPrice = '$74.00';
}
document.getElementById('total_price_el').innerHTML = sTotalPrice;
return;
}