var calcConfig=new Array();
calcConfig['div_id_toc']='calc_toc';
calcConfig['div_id_content']='calc_content';

//Form Titles
calcConfig['definitions_loan_payment_title']='How much will my loan payments be?';
calcConfig['definitions_loan_amount_title']='How much can I afford to borrow?';
calcConfig['definitions_loan_term_title']='What loan term should I pick?';

//Table of Contents Definitions
calcConfig['definitions_headline_toc']='Loans';
calcConfig['definitions_loan_payment_toc']='<a href="javascript: loan_payment(\''+calcConfig['definitions_loan_payment_title']+'\',false);"><span>'+calcConfig['definitions_loan_payment_title']+'</span></a>';
calcConfig['definitions_loan_amount_toc']='<a href="javascript: loan_amount(\''+calcConfig['definitions_loan_amount_title']+'\',false);"><span>'+calcConfig['definitions_loan_amount_title']+'</span></a>';
calcConfig['definitions_loan_term_toc']='<a href="javascript: loan_term(\''+calcConfig['definitions_loan_term_title']+'\',false)"><span>'+calcConfig['definitions_loan_term_title']+'</span></a>';

//Errors
calcConfig['definitions_loan_generic_error']='<strong>Invalid Entry - Try a Different Rate.</strong>';
calcConfig['definitions_loan_payment_error']='<span>Payment: </span><strong>Invalid Entry - Try a Different Payment</strong>';
calcConfig['definitions_loan_amount_error']='<span>Amount: </span><strong>Invalid Entry - Try a Different Amount.</strong>';
calcConfig['definitions_loan_term_error']='<span>Term: </span><strong>Too Many Months - Try Increasing Payment.</strong>';

//Form Fields
calcConfig['definitions_loan_payment_formfield']='<label><span>Payment: </span> <em>$</em><input type="text" id="loan_payment" name="loan_payment" value="" /><em>per month</em></label>';
calcConfig['definitions_loan_down_formfield']='<label><span>Total Amount of Down Payment and Trade In: </span><em>$</em><input type="text" id="loan_down" name="loan_down" value="" /></label>';
calcConfig['definitions_loan_amount_formfield']='<label><span>Amount: </span> <em>$</em><input type="text" id="loan_amount" name="loan_amount" value="" /></label>';
calcConfig['definitions_loan_term_formfield']='<label><span>Loan Term in Months: </span><input type="text" id="loan_term" name="loan_term" value="" /><em>months</em></label>';
calcConfig['definitions_loan_rate_formfield']='<label><span>Loan Rate: </span><input type="text" id="loan_rate" name="loan_rate" value="" /><em>%</em></label>';

//Calculate Buttons
calcConfig['definitions_loan_payment_calculate']='<label><span></span><input type="button" name="" value="Calculate" onclick="loan_payment_calculate();" /></label>';
calcConfig['definitions_loan_amount_calculate']='<label><span></span><input type="button" name="" value="Calculate" onclick="loan_amount_calculate();" /></label>';
calcConfig['definitions_loan_term_calculate']='<label><span></span><input type="button" name="" value="Calculate" onclick="loan_term_calculate();" /></label>';

var toc_object=document.getElementById(calcConfig['div_id_toc']);
toc_object.innerHTML=toc_object.innerHTML+output_toc();
