function ff_pss_amount_validation(element, message)
{
    ff_pss_calculate();
    if (element.value==0) {
        ff_validationFocus('pss_margherita_regular');
        return message;
    } // if
    return '';
} // ff_pss_amount_validation

function ff_pss_calculate()
{
    var amount = 0;
    var order;

    order = ff_getElementByName('pss_margherita_regular').value;
    if (order != '') amount += parseInt(order) * 5.99;

    order = ff_getElementByName('pss_margherita_large').value;
    if (order != '') amount += parseInt(order) * 8.99;

    order = ff_getElementByName('pss_quattro_regular').value;
    if (order != '') amount += parseInt(order) * 7.99;

    order = ff_getElementByName('pss_quattro_large').value;
    if (order != '') amount += parseInt(order) * 10.99;

    ff_getElementByName('pss_amount').value = Math.round(amount*100)/100;
} // ff_pss_calculate