function setlanguage(domain,taal)
{
	var gotonewurl;
	

	var locs = location.search;
	//alert(locs);
	locs = locs.replace("?lang=nl","?");
	locs = locs.replace("?lang=fr","?");
	locs = locs.replace("?lang=en","?");
	locs = locs.replace("&lang=nl","");
	locs = locs.replace("&lang=fr","");
	locs = locs.replace("&lang=en","");
	
	//alert(locs);
	
	
	
	
	
	if (taal == "")
	{// case 1
		//************************
		
			if(location.pathname=='/')
			{
			gotonewurl='http://www.'+domain+'.be'+location.pathname+'index.cfm'+locs+location.hash;
			}
			else
			{
			gotonewurl='http://www.'+domain+'.be'+location.pathname+locs+location.hash;
			};
		
		//************************	
	}else
	{//case 2
		//************************		
		if(location.pathname=='/')
		{
		
			if(location.search ==""){
				gotonewurl='http://www.'+domain+'.be'+location.pathname+'index.cfm'+locs+'?lang='+taal+location.hash;
				}else{
				gotonewurl='http://www.'+domain+'.be'+location.pathname+'index.cfm'+locs+'&lang='+taal+location.hash;	
					}		
		
		}
		else
		{
		
			if(location.search ==""){
					gotonewurl='http://www.'+domain+'.be'+location.pathname+locs+'?lang='+taal+location.hash;
					}else{
					gotonewurl='http://www.'+domain+'.be'+location.pathname+locs+'&lang='+taal+location.hash;
						}
					
		};
		
		//************************	
		
}
//alert(gotonewurl);
document.formchangelanguage.action=gotonewurl;
document.formchangelanguage.submit();
}
	