window.addEvent('domready', function() {

	if ($('functiecategorie_id')) {

	
		$('functiecategorie_id').addEvent('change',function() {
			
			
			var functionXml = '/typo3conf/ext/wiw_vacatures/ajax/update-functions.php?functiecategorie_id=' + $('functiecategorie_id').getValue();
		
			//alert(functionXml);		
	
			new Ajax(functionXml, {
		        'method' : 'get', 
		        'update': $('td_functies_van'),
		        'onRequest': function() {
		            
		        },
		        'onComplete': function() {
		        
		        	//docu = CJL_loadXmlDocument(functionXml, w00t);

		        }
		    }).request();
		    
		    });		
	}
	
	if ($('ffunctiecategorie_id')) {
	
		$('ffunctiecategorie_id').addEvent('change',function() {
					
			var functionXml = '/typo3conf/ext/wiw_vacatures/ajax/update-ffunctions.php?functiecategorie_id=' + $('ffunctiecategorie_id').getValue();
		
			//alert(functionXml);		
	
			new Ajax(functionXml, {
		        'method' : 'get', 
		        'update': $('td_functies_van'),
		        'onRequest': function() {
		            
		        },
		        'onComplete': function() {
		        
		        	//docu = CJL_loadXmlDocument(functionXml, w00t);

		        }
		    }).request();
		    
		    });		
	
	}
	
});

function introflash() {
	document.getElementById('introflash').innerHTML = '';
}