File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/asp/reizen/december-reis.js
var ValueCount = 0
var InsCount = 0;
var TotalCount = 0;
function init() {
document.all("hidden1").style.visibility = 'hidden';
document.all("hidden2").style.visibility = 'hidden';
resetform()
CheckValue()
}
function resetform() {
document.checkform.reset()
}
function CheckValue() {
ChangeValue()
ChangeInsurance()
TotalValue()
}
function ChangeValue() {
ValueCount = 0;
if (document.checkform.hotel.checked == true) { ValueCount = ValueCount + 425; }
if (document.checkform.diner.checked == true) { ValueCount = ValueCount + 15; }
if (document.checkform.ontbijt.checked == true) { ValueCount = ValueCount + 5; }
if (document.checkform.schoenen.checked == true) { ValueCount = ValueCount + 12.5; }
if (document.checkform.schoenen.checked == true) { document.all("hidden1").style.visibility = 'visible'; }
else { document.all("hidden1").style.visibility = 'hidden'; }
if (document.checkform.matriaal.checked == true) { ValueCount = ValueCount + 35; }
document.checkform.subtotaal.value = ValueCount.toFixed(2);
}
function ChangeInsurance() {
InsCount = 0;
if (document.checkform.annuleer.checked == true) {
InsCount = parseFloat(document.checkform.subtotaal.value * 0.05);
document.all("hidden2").style.visibility = 'visible'; }
else {
document.checkform.annuleerbedrag.value = InsCount = 0;
document.all("hidden2").style.visibility = 'hidden'; }
document.checkform.annuleerbedrag.value = InsCount.toFixed(2);
}
function TotalValue() {
TotalCount = 0;
TotalCount = TotalCount + ValueCount
if (document.checkform.reisv1.checked == true) { TotalCount = TotalCount + 10; }
if (document.checkform.reisv2.checked == true) { TotalCount = TotalCount + 12; }
TotalCount = TotalCount + InsCount
document.checkform.totaal.value = TotalCount.toFixed(2);
}