var currentheight = 0; function ShowEmailForm() { document.getElementById('schedule_button').style.display = 'none'; document.getElementById('schedule_button2').style.display = 'none'; document.getElementById('schedule_button3').style.display = 'none'; document.getElementById('cost_chart_savings').style.display = 'none'; document.getElementById('cost_chart').style.display = 'none'; document.getElementById('email_form').style.display = 'block'; document.getElementById('ap').value = document.getElementById('payable').value; document.getElementById('ar').value = document.getElementById('receivable').value; } function ShowPrint() { location.href = '/calculator.asp?ap=' + document.getElementById('payable').value + '&ar=' + document.getElementById('receivable').value + '&print=true'; } function ShowSavingsChart() { if (currentheight == 0) { document.getElementById('savings_button').style.display = 'none'; document.getElementById('savings_button2').style.display = 'none'; document.getElementById('schedule_button').style.display = 'block'; document.getElementById('schedule_button2').style.display = 'block'; document.getElementById('schedule_button3').style.display = 'block'; } if (currentheight < 355) { currentheight = currentheight + 18; document.getElementById('cost_chart_savings').style.height = currentheight + "px"; setTimeout('ShowSavingsChart()', 1); } else { document.getElementById('cost_chart_savings').innerHTML = '

Estimated Savings

'; } } function ShowCostChart() { if (document.getElementById('payable').value == "" || document.getElementById('receivable').value == "") { alert("Please enter in the weekly document volume for your AP and AR departments!"); return(false); } document.getElementById('cost_form').style.display = 'none'; document.getElementById('savings_button').style.display = 'block'; document.getElementById('savings_button2').style.display = 'block'; document.getElementById('cost_chart').innerHTML = '

Estimated Current Costs

'; }