var Cost, Grand_Total;

function tally()
        {
        Cost = 0;
if (FrontPage_Form1.design.checked) {Cost=Cost + 690.00;}
if (FrontPage_Form1.flashbanner.checked) {Cost=Cost + 189.00;}

if (FrontPage_Form1.roll_over_menu.checked) {Cost=Cost + 69.00;}
if (FrontPage_Form1.drop_down_menu.checked) {Cost=Cost + 169.00;}
if (FrontPage_Form1.flash_menu.checked) {Cost=Cost + 189.00;}

if (FrontPage_Form1.home_page!="") {Cost=Cost + (FrontPage_Form1.home_page.value*49.00);}
if (FrontPage_Form1.additional_page!="") {Cost=Cost + (FrontPage_Form1.additional_page.value*49.00);}
if (FrontPage_Form1.contact_page!="") {Cost=Cost + (FrontPage_Form1.contact_page.value*129.00);}
if (FrontPage_Form1.catalogue_page!="") {Cost=Cost + (FrontPage_Form1.catalogue_page.value*89.00);}
if (FrontPage_Form1.menu_page!="") {Cost=Cost + (FrontPage_Form1.menu_page.value*69.00);}
if (FrontPage_Form1.booking_page!="") {Cost=Cost + (FrontPage_Form1.booking_page.value*189.00);}

if (FrontPage_Form1.form_module.checked) {Cost=Cost + 69.00;}
if (FrontPage_Form1.internal_search_module.checked) {Cost=Cost + 119.00;}

if (FrontPage_Form1.html_photo_gallery.checked) {Cost=Cost + 119.00;}
if (FrontPage_Form1.flash_photo_gallery.checked) {Cost=Cost + 269.00;}
if (FrontPage_Form1.files_library.checked) {Cost=Cost + 119.00;}
if (FrontPage_Form1.streaming_flash_player.checked) {Cost=Cost + 89.00;}
if (FrontPage_Form1.googlemap.checked) {Cost=Cost + 89.00;}

if (FrontPage_Form1.completeshoponline.checked) {Cost=Cost + 1890.00;}
if (FrontPage_Form1.shopping_cart.checked) {Cost=Cost + 249.00;}
if (FrontPage_Form1.paypal.checked) {Cost=Cost + 219.00;}

if (FrontPage_Form1.customersdatabase.checked) {Cost=Cost + 690.00;}
if (FrontPage_Form1.productsdatabase.checked) {Cost=Cost + 890.00;}
if (FrontPage_Form1.testimonies_interface.checked) {Cost=Cost + 269.00;}
if (FrontPage_Form1.newsletter.checked) {Cost=Cost + 890.00;}

if (FrontPage_Form1.domain_name_com.checked) {Cost=Cost + 29.00;}
if (FrontPage_Form1.domain_name_au.checked) {Cost=Cost + 49.00;}
if (FrontPage_Form1.domaintransfer.checked) {Cost=Cost + 19.00;}

if (FrontPage_Form1.web_hosting.checked) {Cost=Cost + 129.00;}
if (FrontPage_Form1.email_accounts!="") {Cost=Cost + (FrontPage_Form1.email_accounts.value*19.00);}
if (FrontPage_Form1.SES.checked) {Cost=Cost + 129.00;}
if (FrontPage_Form1.SEO.checked) {Cost=Cost + 269.00;}

Cost = dollar(Cost);

        FrontPage_Form1.Total2.value = "$ " + Cost;
        }
        
function dollar (amount)
{
        amount = parseInt(amount * 100);
        amount = parseFloat(amount/100);
        if (((amount) == Math.floor(amount)) && ((amount - Math.floor (amount)) == 0))
        {
                amount = amount + ".00"
                return amount;
        }
        if ( ((amount * 10) - Math.floor(amount * 10)) == 0)
        {
                amount = amount + "0";
                return amount;
        }
        if ( ((amount * 100) - Math.floor(amount * 100)) == 0)
        {
                amount = amount;
                return amount;
        }
        return amount;
}