function updateAndSubmitForm($id, $quotefor) {
    $('#Quote').attr('value', $('#'+$id).html().replace('$',''));
    $('#QuoteFor').attr('value', $quotefor);
//     console.log('Quote: ' + $('#Quote').attr('value'));
    $('#form_quote').submit();
}

function submitTuningQuote() {
    updateAndSubmitForm('tuning_quote', 'Tuning');
}

function submitEcommerceQuote() {
    updateAndSubmitForm('ecommerce_quote', 'E-Commerce');
}

function submitSeoQuote() {
    updateAndSubmitForm('seo_quote', 'SEO');
}

function submitCmsQuote() {
    updateAndSubmitForm('cms_quote', 'CMS');
}

// add events
$('#tuning_quote_submit').bind('click', submitTuningQuote);
$('#ecommerce_quote_submit').bind('click', submitTuningQuote);
$('#seo_quote_submit').bind('click', submitSeoQuote);
$('#cms_quote_submit').bind('click', submitCmsQuote);