HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/asp/reizen/mei-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 + 395; }
   if (document.checkform.schoenen.checked == true) { ValueCount = ValueCount + 25; }
   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 + 75; }
   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 + 20; }
   if (document.checkform.reisv2.checked == true) { TotalCount = TotalCount + 25; }
   if (document.checkform.skiles.checked == true) { TotalCount = TotalCount + 95; }
   TotalCount = TotalCount + InsCount
   document.checkform.totaal.value = TotalCount.toFixed(2);
   }