function lookUpGemeente(flag){
 	var gemeente = $('strLeveringGemeente').value;
	new Ajax('/ajx/ajx.php?action=lookUpGemeente&gemeente='+gemeente, { 
		method: 'get',
		onComplete:function(returnValue){	
			var value = returnValue.split('_');
			if(value[0]!='' && flag!='empty'){ 
				$('strLeveringPostcode').value = value[0];
				$('strLeveringPostcode').setProperty('readonly','true');
				$('vervoerskost').setHTML(value[1]);	
				$('vervoerskosthidden').value = (value[1]);					
				$('totaalmetkorting').setHTML((parseFloat($('totaalzonderkorting').getText())-parseFloat($('onlinekortingbedrag').getText())+parseFloat(value[1])).toFixed(2));
				$('hiddentotaalmetkorting').value = ((parseFloat($('totaalzonderkorting').getText())-parseFloat($('onlinekortingbedrag').getText())+parseFloat(value[1])).toFixed(2));
				//$('btw').setHTML(((parseFloat($('totaalmetkortingtemp').getText())+parseFloat(value[1]))*0.21).toFixed(2));
				$('btw').setHTML(((parseFloat($('totaalmetkorting').getText()))*0.21).toFixed(2));				
				$('hiddenbtw').value = (((parseFloat($('totaalmetkorting').getText()))*0.21).toFixed(2));				
				$('incbtw').setHTML((parseFloat($('totaalmetkorting').getText())+parseFloat($('btw').getText())).toFixed(2));
				$('hiddenincbtw').value = ((parseFloat($('totaalmetkorting').getText())+parseFloat($('btw').getText())).toFixed(2));
			}else{ 
				$('strLeveringPostcode').value = '';
				$('strLeveringPostcode').setProperty('readonly','');				
				$('vervoerskost').setHTML('0.00');
				$('vervoerskosthidden').value = ('0.00');	
				if(!$('zelf_afhalen').checked){
					$('totaalmetkorting').setHTML((parseFloat($('totaalzonderkorting').getText())-parseFloat($('onlinekortingbedrag').getText())).toFixed(2));
					$('hiddentotaalmetkorting').value = ((parseFloat($('totaalzonderkorting').getText())-parseFloat($('onlinekortingbedrag').getText())).toFixed(2));
					$('btw').setHTML(((parseFloat($('totaalmetkorting').getText()))*0.21).toFixed(2));
					$('hiddenbtw').value = (((parseFloat($('totaalmetkorting').getText()))*0.21).toFixed(2));
					$('incbtw').setHTML((parseFloat($('totaalmetkorting').getText())+parseFloat($('btw').getText())).toFixed(2));
					$('hiddenincbtw').value = ((parseFloat($('totaalmetkorting').getText())+parseFloat($('btw').getText())).toFixed(2));						
				}else{
					$('totaalmetkorting').setHTML(parseFloat($('totaalmetkortingtemp').getText()).toFixed(2));				
					$('hiddentotaalmetkorting').value = (parseFloat($('totaalmetkortingtemp').getText()).toFixed(2));	
					$('btw').setHTML((parseFloat($('totaalmetkortingtemp').getText())*0.21).toFixed(2));	
					$('hiddenbtw').value = ((parseFloat($('totaalmetkortingtemp').getText())*0.21).toFixed(2));					
					$('incbtw').setHTML((parseFloat($('totaalmetkorting').getText())+parseFloat($('btw').getText())).toFixed(2));
					$('hiddenincbtw').value = ((parseFloat($('totaalmetkorting').getText())+parseFloat($('btw').getText())).toFixed(2));				
				}//if
			}//if
			$('strGemeenteJava').setStyle('text-transform','uppercase');
			if(value[0]!=''){
				$('strGemeenteJava').setHTML(gemeente);
			}else{
				$('strGemeenteJava').setHTML("<span style='color : red;'>Onbekend</<span>");			
			}//if
		}//onComplete				 
	}).request();
}//lookUpGemeente
