function news(lang)
{
    var xhr=null;
    if (window.XMLHttpRequest) { 
        xhr = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) 
    {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xhr.open("GET", "mecha/newsdata.php?lang="+lang, true);
	xhr.onreadystatechange = function()
    {
		if(xhr.readyState == 4)
		{
			document.getElementById('newsbox').innerHTML = xhr.responseText;
		}
    }
    xhr.send(null);
}
function fullnews(lang)
{
    var xhr=null;
    if (window.XMLHttpRequest) { 
        xhr = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) 
    {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xhr.open("GET", "mecha/newsfull.php?lang="+lang, true);
	xhr.onreadystatechange = function()
    {
		if(xhr.readyState == 4)
		{
			document.getElementById('here').innerHTML = xhr.responseText;
		}
    }
    xhr.send(null);
}
