function switchLanguage(val, path) {
	// Haal template op
	jQuery.ajax({
		url: path + 'application/root/class/ajax.php',
		data: {
			module: 'language',
			action: 'set',
			language: val
		},
		success: function(response) {
			// Formulier aanmaken
			jQuery('body').append('<form id="formlanguage" action="' + document.location + '" method="post" style="margin:0px"></form>');
			
			// Post formulier
			jQuery('#formlanguage').submit();
		},
		type: 'POST'
	});
}
