Use Calculator
Library Use Value Calculator
Your tax dollars at work. What is your Library worth to you?How much would you pay out-of-pocket for your library services?
|
Copyright ©
All Rights Reserved.
//
function doCalculator(){
var booksValue = document.calculator.books.value * 30.00;
document.getElementById("booksResult").value = booksValue.toFixed(2);
var magazinesValue = document.calculator.magazines.value * 4.00;
document.getElementById("magazinesResult").value = magazinesValue.toFixed(2);
var moviesValue = document.calculator.movies.value * 4.00;
document.getElementById("moviesResult").value = moviesValue.toFixed(2);
var audiobooksValue = document.calculator.audiobooks.value * 40.00;
document.getElementById("audiobooksResult").value = audiobooksValue.toFixed(2);
var magazineuseValue = document.calculator.magazineuse.value * 10.00;
document.getElementById("magazineuseResult").value = magazineuseValue.toFixed(2);
var illValue = document.calculator.ill.value * 25.00;
document.getElementById("illResult").value = illValue.toFixed(2);
var meetingroomValue = document.calculator.meetingroom.value * 50.00;
document.getElementById("meetingroomResult").value = meetingroomValue.toFixed(2);
var adultprogramValue = document.calculator.adultprogram.value * 20.00;
document.getElementById("adultprogramResult").value = adultprogramValue.toFixed(2);
var childrensprogramValue = document.calculator.childrensprogram.value * 8.00;
document.getElementById("childrensprogramResult").value = childrensprogramValue.toFixed(2);
var computerhoursValue = document.calculator.computerhours.value * 12.00;
document.getElementById("computerhoursResult").value = computerhoursValue.toFixed(2);
var newsarticlesValue = document.calculator.newsarticles.value * 1.00;
document.getElementById("newsarticlesResult").value = newsarticlesValue.toFixed(2);
var databasesValue = document.calculator.databases.value * 20.00;
document.getElementById("databasesResult").value = databasesValue.toFixed(2);
var referenceValue = document.calculator.reference.value * 20.00;
document.getElementById("referenceResult").value = referenceValue.toFixed(2);
var totalValue = (document.calculator.booksResult.value*1)+(document.calculator.magazinesResult.value*1)+(document.calculator.moviesResult.value*1)+(document.calculator.audiobooksResult.value*1)+(document.calculator.magazineuseResult.value*1)+(document.calculator.illResult.value*1)+(document.calculator.meetingroomResult.value*1)+(document.calculator.adultprogramResult.value*1)+(document.calculator.childrensprogramResult.value*1)+(document.calculator.computerhoursResult.value*1)+(document.calculator.newsarticlesResult.value*1)+(document.calculator.databasesResult.value*1)+(document.calculator.referenceResult.value*1);
document.getElementById("totalResult").value = totalValue.toFixed(2);
}