var currentStep;
var value_TypeOfCoverage=0;
var sessionData = new SessionData();
var viDepartureDay	     	= ++seqNum;
var viDepartureMonth	= ++seqNum;
var viDepartureYear			= ++seqNum;
var viEndDay	    			     = ++seqNum;
var viEndMonth   = ++seqNum;
var viEndYear		 = ++seqNum;
var viNoofPersons		 = ++seqNum;
var viCover  = ++seqNum;
var viMedicalCosts  = ++seqNum;
var viInternetkortingJN			 = ++seqNum;
var viActiekortingJN  			 = ++seqNum;
var viCoverageType 				= ++seqNum;
var viDepDate  = ++seqNum;
var viEndDate  = ++seqNum;
var intDepartureDay;
var intDepartureMonth;
var intDepartureYear;
var intEndDay;
var intEndMonth;
var intEndYear;
var intNoofPersons=0;
var intCover;
var intMedicalcosts;


function fillScreenContent_PreStep_LHBV(){
	currentStep = 0;
	updateComponent('txtPreStep_Heading_LHBV ',strPreStep_Heading_LHBV );	
	updateComponent('txtPreStep_introTxt_1_LHBV ',strPreStep_introTxt_1_LHBV );
	updateComponent('lblDepartureDate_LHBV',strLabelPre_DepartureDate_LHBV);
	updateComponent('lblEndDate_LHBV',strLabelPre_EndDate_LHBV);
	updateComponent('lblPostDate1_LHBV',strPostLabel_Date_LHBV);
	updateComponent('lblPostDate2_LHBV',strPostLabel_Date_LHBV);
	updateComponent('lblNoofPersons_LHBV',strLabelPre_NoofPersons_LHBV);
	populatelist('selNoofPersons_LHBV',arrNoofPersons);
	document.getElementById('volgendebutton_LHBV').title=strText_volgendeAlt_LHBV;	
}
function fillScreenContent_Step1(){
	currentStep = 1;
	getSessionData_LHBV();
	updateComponent('txtStep1_subHeading',strStep1_subHeading);
	updateComponent('txtStep1_heading',strStep1_heading);
	if(strStep1_introTxt_1=='')
		hideComponent('txtStep1_introTxt_1');
	else
		updateComponent('txtStep1_introTxt_1',strStep1_introTxt_1);
	if(strStep1_introTxt_2=='')
		hideComponent('txtStep1_introTxt_2');
	else
		updateComponent('txtStep1_introTxt_2',strStep1_introTxt_2);
	updateComponent('lblDepartureDate',strLabelStep1_DepartureDate);
	updateComponent('lblPostDepartureDate',strLabelStep1_PostDepartureDate);
	updateComponent('lblEndDate',strLabelStep1_EndDate);
	updateComponent('lblPostEndDate',strLabelStep1_PostEndDate);
	updateComponent('lblNoofPersons',strLabelStep1_NoofPersons );
	updateComponent('infotitle_NoofPersons',strInfoTitleStep1_NoofPersons);
	updateComponent('infotext_NoofPersons',strInfoTextStep1_NoofPersons);
	populatelist('selNoofPersons',arrNoofPersons);
	updateComponent('txtCover',strLabelStep1_Cover);
	updateComponent('lblStandard',strLabelStep1_Standard);
	updateComponent('lblExtended',strLabelStep1_Extended);
	updateComponent('txtExtension',strLabelStep1_Extension);
	updateComponent('txtMandatoryField',strLabelStep1_mandatory);
	updateComponent('lblMedicalCosts',strLabelStep1_MedicalCosts);
	updateComponent('infotitle_MedicalCosts',strInfoTitleStep1_MedicalCosts);
	updateComponent('infotext_MedicalCosts',strInfoTextStep1_MedicalCosts);
	document.getElementById('berekenbutton').title=strTextStep1_berekenAlt;
	if(strTextStep1_disclaimer == "")
		hideComponent('step1Disclaimer');
	else 
		updateComponent('txtDisclaimer',strTextStep1_disclaimer);
	fo.txtDepartureDay.value=intDepartureDay;
	fo.txtDepartureMonth.value=intDepartureMonth;
	fo.txtDepartureYear.value=intDepartureYear;
	fo.txtEndDay.value=intEndDay;
	fo.txtEndMonth.value=intEndMonth;
	fo.txtEndYear.value=intEndYear;
	if(intNoofPersons!= 0)
		fo.selNoofPersons.selectedIndex = parseInt(intNoofPersons-1);
	if(intCover==0)
		fo.rb_Standard.checked=true;
	else if(intCover==1)
		fo.rb_Extended.checked=true;
	else{ }
	if(intMedicalcosts==1)
		fo.checkbox_Medicalcosts.checked=true;
	else 	fo.checkbox_Medicalcosts.checked=false;
		hideComponent('errDepartureDate');
		hideComponent('errEndDate');
		hideComponent('errCover');
}
function fillScreenContent_Resultaat(){
	currentStep = 2;
	getSessionData_LHBV();
	updateComponent('txtStep2_subHeading',strStep2_subHeading);
	updateComponent('txtStep2_heading',strStep2_heading);
	if(strStep2_introTxt_1 == '')
		hideComponent('txtStep2_introTxt_1');
	else
		updateComponent('txtStep2_introTxt_1',strStep2_introTxt_1);
	if(strStep2_introTxt_2=='')
		hideComponent('txtStep2_introTxt_2');
	else
	updateComponent('txtStep2_introTxt_2',strStep2_introTxt_2);
	
	updateComponent('lblPremium1', strLabelStep2_Premium1);
	if( strText_onlineAppilcation!='')	
	updateComponent('lblonlineappilcation',strText_onlineAppilcation);
	else
	hideComponent('lblonlineappilcation');
	updateComponent('lblCalBasedOn', strLabelStep2_CalBasedOn);
	updateComponent('txtYourDetails', strLabelStep2_YourDetails);
	updateComponent('txtCover', strLabelStep2_Cover);	
	updateComponent('lblRadioLimited', strLabelStep2_radio0);
	updateComponent('lblRadioExtended', strLabelStep2_radio1);
	updateComponent('lblNoofDays',strText_NoofDays);
	updateComponent('lblNoofPersons',strLabelStep2_NoofPersons);
	updateComponent('txtExtension',strLabelStep2_Extension);
	updateComponent('lblMedicalCosts',strLabelStep2_MedicalCosts);
	updateComponent('infotitle_MedicalCosts',strInfoTitleStep2_MedicalCosts);
	updateComponent('infotext_MedicalCosts',strInfoTextStep2_MedicalCosts);
	updateComponent('lblPremium2',strLabelStep2_Premium2);
	updateComponent('txtNotIncluded',strLabelStep2_NotIncluded);
	updateComponent('txtPreviousPage',strLabelStep2_PreviousPage);
	updateComponent('txtDisclaimer',strLabelStep2_Disclaimer);
	document.getElementById('aanvragenbutton').alt=strText_aanvragenAlt;
	if(intCover=="0")
		document.getElementById('rb_Standard').checked=true;
	else if(intCover=="1")
		document.getElementById('rb_Extended').checked=true;	
		if(intMedicalcosts==1)
		document.getElementById('checkbox_MedicalCosts').checked=true;
		else document.getElementById('checkbox_MedicalCosts').checked=false;
	reCalculateValues();
	/*Start changes all insurance models*/
	if(switch_show_commission === 1)
	{	
		unhideComponent('commission_inclusief');
		updateComponent('infotext_currencyBox_2',strInfoText_Provision);
	}
	else
	{
		hideComponent('commission_inclusief');
	}
	/*End changes all insurance models*/
}
function reCalculateValues(){
	var DepDate = new Date(intDepartureYear, intDepartureMonth-1, intDepartureDay, 0,0,0,0);
	var EndDate = new Date(intEndYear, intEndMonth-1, intEndDay,0,0,0,0);	
	var total = EndDate-DepDate;    //difference in milliseconds
	var intTravelDays = Math.round((total/86400000)+1);    //calculate days = milliseconds / (24*60*60*1000)	
	updateComponent("valNoofDays"," "+intTravelDays);
	updateComponent("valNoofPersons"," "+intNoofPersons);
	
	if(fo.rb_Cover.getRadiovalue!='')
		sessionData.setVal(viCover,getRadioValue(fo.rb_Cover));
	if(fo.checkbox_MedicalCosts.checked)
		sessionData.setVal(viMedicalCosts,1);
	  else 
		sessionData.setVal(viMedicalCosts,0);
	var objLLR = berekenLanglopendereisVerzekering(intTravelDays, intNoofPersons, fo.rb_Cover[0].checked, fo.checkbox_MedicalCosts.checked);
	updateComponent("result_value_euro1",strEUR);
	updateComponent("valPremium",formatAsCurrency2(objLLR.fltUwTotaalPremie));	
	var btnDekkingStd=(fo.rb_Cover[0].checked?0:1); // ===STANDAARD=0, UITGEBREID=1	
	if (btnDekkingStd==0){		
		updateComponent("result_value_euro3",strEUR);
		updateComponent("valStandaarddekking",formatAsCurrency2(objLLR.fltBasisPremie));
		updateComponent("result_value_euro4","");
		updateComponent("valUitgebreidedekking","");
	} 
	else{
		updateComponent("result_value_euro4",strEUR);
		updateComponent("valUitgebreidedekking",formatAsCurrency2(objLLR.fltBasisPremie));
		updateComponent("result_value_euro3","");
		updateComponent("valStandaarddekking","");
	}
	
	updateComponent("result_value_euro5",strEUR);
	updateComponent("result_value_euro6",strEUR);
	updateComponent("valMedicalCosts",formatAsCurrency2(objLLR.fltGeneesKundigePremie));
	updateComponent("valTotalPremium",formatAsCurrency2(objLLR.fltUwTotaalPremie));
	
	/*Start Changes all insurance models*/
	if(switch_show_commission === 1)
	{
	var value_Provision = formatAsCurrency2(parseFloat(provisionPercent/100)*parseFloat(objLLR.fltUwTotaalPremie));
	updateComponent("lblProvision",strLabelProvision1+' '+strEUR+' '+value_Provision+' '+strLabelProvision2);
	}
	/*End Changes all insurance models*/
	
	showHideActionDiscount();
	if (fltPolicyCost!=0.00) {
		updateComponent('lblPolicyExpenses',strLabelStep2_PolicyExpenses);
		updateComponent("result_value_euro7",strEUR);
		updateComponent("valPolicyExpenses",formatAsCurrency2(fltPolicyCost));
	}
	else {
		updateComponent('lblPolicyExpenses',strLabelStep2_PolicyExpenses);
	} 

}
function showHideActionDiscount(){
	if (bool_activeDiscountPlaceholder == false){
		hideComponent('tr_lblYourDetails0');
		hideComponent('tr_tempOffer');		
		hideComponent('tr_activeKorting');		
		hideComponent('tr_extraspace_between_resultbar');
	}else{	
		if (intOption_activeDiscountPlaceholder == 1){
			if(strText_tempOfferMsg != "" && strText_tempOfferMsgFree!=""){
				updateComponent('lblYourDetails0',strLabelRes_tempOffer);
				updateComponent('txtTempOfferMsg',strText_tempOfferMsg);
				updateComponent('valTempOfferMsgFree',strText_tempOfferMsgFree);
			
			}else{				
				hideComponent("dotted_bottom"); 
			}
		}
		else if(intOption_activeDiscountPlaceholder == 2){	 
			if(strActionDiscount !=""){
				updateComponent('lblYourDetails0',strLabelRes_tempOffer);
				if (fltActionDiscountPercentage!=0.00){
					updateComponent('txtActionDiscount',strActionDiscount.replace('[KORTINGS_PERCENTAGE]',fltActionDiscountPercentage));
					var btnDekkingStd=(fo.rb_Cover[0].checked?0:1); 
				if (btnDekkingStd==0){
					updateComponent('valActionDiscount','-' + formatAsCurrency2(fltActionDiscountPercentage/100*fltStandaardTarief*12));
				}
				else{	
					updateComponent('valActionDiscount','-' + formatAsCurrency2(fltActionDiscountPercentage/100*fltUitgebreidTarief*12));}
					updateComponent('result_value_euro2',strEUR);
				}
				else{
					if (fltActionDiscountAmount!=0.00){
						updateComponent('txtActionDiscount',strActionDiscount);
						updateComponent('valActionDiscount','-' + formatAsCurrency2(fltActionDiscountAmount));
						updateComponent('result_value_euro2',strEUR);
					}else{ 
						hideComponent("lblTempOffer");
						hideComponent("div_extraAdvantage");
						hideComponent("dotted_bottom");
					}
				}
			}else{
				hideComponent("div_extraAdvantage");
				hideComponent("dotted_bottom"); 
			}
		}
	}
}


function validate_PreStep_LHBV(){	
	params="0="+ document.IAM_PreStep_LHBV.txtDepartureDay_LHBV.value +"&1="+document.IAM_PreStep_LHBV.txtDepartureMonth_LHBV.value+"&2="+document.IAM_PreStep_LHBV.txtDepartureYear_LHBV.value+"&3="+document.IAM_PreStep_LHBV.txtEndDay_LHBV.value+"&4="+document.IAM_PreStep_LHBV.txtEndMonth_LHBV.value+"&5="+document.IAM_PreStep_LHBV.txtEndYear_LHBV.value+"&6="+document.IAM_PreStep_LHBV.selNoofPersons_LHBV.value;
	location.href=strURL_step1+'?pos='+strOmniture_variable_LHBV1+'&'+params;
	return false;	
}
function validate_Step1(){
	if(checkForm())	{
		setSessionData_LHBV();
		
		location.href = strURL_step2+'?'+sessionData.paramString();				
	}else{
	
	return false;
	}
}
function gotoRequestPage(){
	if(getRadioValue(fo.rb_Cover)=="0")
		sessionData.setVal(viCover,'Standaard');
	else
		sessionData.setVal(viCover,'Uitgebreid');	
	if (fltInternetDiscount==0.00)
		sessionData.setVal(viInternetkortingJN,"Nee");
	else
		sessionData.setVal(viInternetkortingJN,"Ja");		
	if (fltActionDiscountAmount==0.00&& fltActionDiscountPercentage==0.00)
		sessionData.setVal(viActiekortingJN,"Nee");
	else
		sessionData.setVal(viActiekortingJN,"Ja");	
	var depdate=intDepartureDay+'-'+intDepartureMonth+'-'+intDepartureYear;
	var enddate=intEndDay+'-'+intEndMonth+'-'+intEndYear;	
	sessionData.setVal(viDepDate,depdate);
	sessionData.setVal(viEndDate,enddate);
	if((fo.checkbox_MedicalCosts.checked))
		sessionData.setVal(viMedicalCosts,"Ja");
	else 
		sessionData.setVal(viMedicalCosts,"Nee");
	// List of Question parameters
	arrKeyNames[viInternetkortingJN] 	 = "inko";
	arrKeyNames[viActiekortingJN]	 = "acko";
	arrKeyNames[viDepDate] 	         = "begin";
	arrKeyNames[viEndDate]		  = "eind";
	arrKeyNames[viMedicalCosts]		 = "geko";
	arrKeyNames[viNoofPersons]		 = "aant";
	arrKeyNames[viCover] 		    	 = "dek";
	
	location.href=strURL_requestPage+'&'+sessionData.expandedParamString();	
	return false;
}

function gotoPreviousScreen(){
	location.href = strURL_step1+'?'+sessionData.paramString();		

}
function checkFutureDate(bday,bmonth,byear,errorDivID,errorMessage1){
	var now=  new Date();
	currentYear = now.getFullYear();
	currentMon = now.getMonth()+1;
	currentDay = now.getDate();
	enteredYear = parseInt(byear.value);
	enteredMonth = parseFloat(bmonth.value);
	enteredDay =parseFloat(bday.value); 
	var userDate=new Date(enteredMonth+'/'+enteredDay+'/'+enteredYear);
	if (userDate < now){			
		ShwErr(bday,errorDivID,errorMessage1);
		ShwErr(bmonth,errorDivID,errorMessage1);
		ShwErr(byear,errorDivID,errorMessage1);
		return false;
	}
	return true;
}
function checkDepEndDate(dday,dmonth,dyear,eday,emonth,eyear,errorDivID,errorMessage1){
	depYear = parseInt(dyear.value);
	depMon =parseFloat(dmonth.value);
	depDay = parseFloat(dday.value);
	endYear = parseInt(eyear.value);
	endMon = parseFloat(emonth.value);
	endDay = parseFloat(eday.value);	
	var depDate=new Date(depMon+'/'+depDay+'/'+depYear);
	var enteredEndDate=new Date(endMon+'/'+endDay+'/'+endYear);	
	if(enteredEndDate <= depDate){
		ShwErr(eday,errorDivID,errorMessage1);
		ShwErr(emonth,errorDivID,errorMessage1);
		ShwErr(eyear,errorDivID,errorMessage1);
		return false;
	}	
	return true;
}
function checkNoofDays(dday,dmonth,dyear,eday,emonth,eyear,errorDivID1,errorDivID2,errorMessage1,errorMessage2){
	depYear = parseInt(dyear.value);
	depMon =parseFloat(dmonth.value);
	depDay = parseFloat(dday.value);
	endYear = parseInt(eyear.value);
	endMon = parseFloat(emonth.value);
	endDay = parseFloat(eday.value);	
	var DepDate = new Date(depYear, depMon-1, depDay, 0,0,0,0);
	var EndDate = new Date(endYear, endMon-1, endDay,0,0,0,0);
	var total = EndDate-DepDate;    //difference in milliseconds
	 var intTravelDays = Math.round((total/86400000)+1);    //calculate days = milliseconds / (24*60*60*1000)	 
	if( intTravelDays < intMinDays) {
		ShwErr(eday,errorDivID2,errorMessage1);
		ShwErr(emonth,errorDivID2,errorMessage1);
		ShwErr(eyear,errorDivID2,errorMessage1);
		//ShwErr(dday,errorDivID1,errorMessage1);
		//ShwErr(dmonth,errorDivID1,errorMessage1);
		//ShwErr(dyear,errorDivID1,errorMessage1);
		return false;
	}
	 else if(intTravelDays > intMaxDays){
		ShwErr(eday,errorDivID2,errorMessage2);
		ShwErr(emonth,errorDivID2,errorMessage2);
		ShwErr(eyear,errorDivID2,errorMessage2);
		//ShwErr(dday,errorDivID1,errorMessage2);
		//ShwErr(dmonth,errorDivID1,errorMessage2);
		//ShwErr(dyear,errorDivID1,errorMessage2);
		return false;
	}
	return true;
}
function checkForm(){	   
	var dateCount=0;
	var count=0;				
	if (ReqFieldEmpty(fo.txtDepartureDay,"errDepartureDate",err_date_emptyField))
		dateCount++; 		
	if (ReqFieldEmpty(fo.txtDepartureMonth,"errDepartureDate",err_date_emptyField))
		dateCount++; 		
	if (ReqFieldEmpty(fo.txtDepartureYear,"errDepartureDate",err_date_emptyField))
		dateCount++;	
	
	if( dateCount ==3){ 
		if(IsDigitsOnly(fo.txtDepartureDay,"errDepartureDate",err_date_noalphabets) & IsDigitsOnly(fo.txtDepartureMonth,"errDepartureDate",err_date_noalphabets) & IsDigitsOnly(fo.txtDepartureYear,"errDepartureDate",err_date_noalphabets) ){
			if(CheckDate(fo.txtDepartureDay,fo.txtDepartureMonth,fo.txtDepartureYear,"errDepartureDate",err_date_daymonth)){	
				if (checkFutureDate(fo.txtDepartureDay,fo.txtDepartureMonth,fo.txtDepartureYear,"errDepartureDate",err_date_notFutureDate)) {					
					hideComponent("errDepartureDate");
					count++;		
				} 
			}
		}	
	}		
	dateCount=0;		
	if (ReqFieldEmpty(fo.txtEndDay,"errEndDate",err_date_emptyField))
		dateCount++; 		
	if (ReqFieldEmpty(fo.txtEndMonth,"errEndDate",err_date_emptyField))
		dateCount++; 		
	if (ReqFieldEmpty(fo.txtEndYear,"errEndDate",err_date_emptyField))
		dateCount++;
	if( dateCount ==3){ 
		if(IsDigitsOnly(fo.txtEndDay,"errEndDate",err_date_noalphabets) & IsDigitsOnly(fo.txtEndMonth,"errEndDate",err_date_noalphabets) & IsDigitsOnly(fo.txtEndYear,"errEndDate",err_date_noalphabets) ){ 
			if(CheckDate(fo.txtEndDay,fo.txtEndMonth,fo.txtEndYear,"errEndDate",err_date_daymonth)) {
				if (checkFutureDate(fo.txtEndDay,fo.txtEndMonth,fo.txtEndYear,"errEndDate",err_date_notFutureDate)) {		
					if(checkDepEndDate(fo.txtDepartureDay,fo.txtDepartureMonth,fo.txtDepartureYear,fo.txtEndDay,fo.txtEndMonth,fo.txtEndYear,"errEndDate",err_date_notEDbeforeDD)) { 
						hideComponent("errEndDate");
						count++;
					}
				} 
			}
		}
	}
	
	if( count==2) {
		if(checkNoofDays(fo.txtDepartureDay,fo.txtDepartureMonth,fo.txtDepartureYear,fo.txtEndDay,fo.txtEndMonth,fo.txtEndYear,"errDepartureDate","errEndDate",err_date_mindays,err_date_maxdays)) { 
		
		hideComponent("errDepartureDate");			
		hideComponent("errEndDate");
		count++;
		}
	}
	
	if(ReqRadioEmpty(fo.rb_Cover, "errCover",err_typeOfCoverage)){
		count++;
		hideComponent("errCover");
	}
	
	if(count !=4) 
		return false;
	return true;
}

function leapYear(year) {
	if(year%400 ==0 )	return true;
	else if( year%100 ==0) 	return false;
	else if(year%4 ==0) 	return true;
	else 	return false; 
	}
	function setSessionData_LHBV()	{  
	if(fo.txtDepartureDay.value!='')
		sessionData.setVal(viDepartureDay ,fo.txtDepartureDay.value);
	 if(fo.txtDepartureMonth.value!='')
		sessionData.setVal(viDepartureMonth ,fo.txtDepartureMonth.value);
	if(fo.txtDepartureYear.value!='')
		sessionData.setVal(viDepartureYear ,fo.txtDepartureYear.value);
	if(fo.txtEndDay.value!='')
		sessionData.setVal(viEndDay ,fo.txtEndDay.value);
	if(fo.txtEndMonth.value!='')
		sessionData.setVal(viEndMonth ,fo.txtEndMonth.value);
	if(fo.txtEndYear.value!='')
		sessionData.setVal(viEndYear ,fo.txtEndYear.value);
	if(fo.selNoofPersons.value!='')
		sessionData.setVal(viNoofPersons,fo.selNoofPersons.value);	
	if(fo.rb_Cover.getRadiovalue!='')
		sessionData.setVal(viCover,getRadioValue(fo.rb_Cover));
	if(fo.checkbox_Medicalcosts.checked)
		sessionData.setVal(viMedicalCosts,1);
	  else 
		sessionData.setVal(viMedicalCosts,0);
}
function getSessionData_LHBV()	{
	if(sessionData.hasVal(viDepartureDay))
	intDepartureDay = sessionData.getVal(viDepartureDay);
	else  intDepartureDay = "";
	if(sessionData.hasVal(viDepartureMonth))
	intDepartureMonth = sessionData.getVal(viDepartureMonth);
	else  intDepartureMonth = "";
	if(sessionData.hasVal(viDepartureYear))
	intDepartureYear = sessionData.getVal(viDepartureYear);
	else
	intDepartureYear = "";
	if(sessionData.hasVal(viEndDay))
	intEndDay = sessionData.getVal(viEndDay);
	else  intEndDay = "";
	if(sessionData.hasVal(viEndMonth))
	intEndMonth = sessionData.getVal(viEndMonth);
	else  intEndMonth = "";
	if(sessionData.hasVal(viEndYear))
	intEndYear = sessionData.getVal(viEndYear);
	else  intEndYear = "";
	if(sessionData.hasVal(viNoofPersons))
	intNoofPersons = sessionData.getVal(viNoofPersons);
	if(sessionData.hasVal(viCover))
	intCover = sessionData.getVal(viCover);
	
	if(sessionData.hasVal(viMedicalCosts))
	intMedicalcosts= sessionData.getVal(viMedicalCosts);

}	

function berekenLanglopendereisVerzekering(intTravelDays, intAantalPersonen, btnStandaardDekking, btnGeneeskundigeKosten) {
 
	 var objResult = new LanglopendereisObject();
	 var persoonDagen = parseInt(intTravelDays * intAantalPersonen);
	 var fltTarief = 0.00;
	
	 if (!btnStandaardDekking) {
		 fltTarief = fltUitgebreidTarief;
	}
	else {
		fltTarief = fltStandaardTarief;
	}
	 objResult.fltBasisPremie = persoonDagen * fltTarief;
	 
	 if (btnGeneeskundigeKosten) {
		objResult.fltGeneesKundigePremie = persoonDagen* fltTariefGenees;
	}
	else {
		 objResult.fltGeneesKundigePremie = 0.00;
	}
	 objResult.fltUwTotaalPremie = (objResult.fltBasisPremie + objResult.fltGeneesKundigePremie);
	 
	 return objResult;	
}
function LanglopendereisObject() {
	this.fltBasisPremie 		= 0.00;
	this.fltGeneesKundigePremie	= 0.00;
	this.fltUwTotaalPremie 		= 0.00;	
}
function selectCheckBox(id)
	{   
		if(document.getElementById(id).checked)
			document.getElementById(id).checked=false;
		else
			document.getElementById(id).checked=true;	
	}
