
window.dhx_globalImgPath="imgs/";
function setLang(lang_id)
{	
	var ajaxRequest;
	if(window.XMLHttpRequest) ajaxRequest=new XMLHttpRequest();
	else if(window.ActiveXObject) ajaxRequest=new ActiveXObject("Microsoft.XMLHTTP");
	else
	{	
		alert("Browser error");
		return false;
	}
	ajaxRequest.onreadystatechange=function()
	{	
		if(ajaxRequest.readyState==4)
		{	
			window.location.reload();
		}
	}
	var param="sel_lang.php?lang_id="+encodeURIComponent(lang_id)+"&temp="+Math.random();
	ajaxRequest.open("GET",param,true);
	ajaxRequest.send(null);
}


