var req = Create(); 
function Create(){ 
    if(navigator.appName == "Microsoft Internet Explorer"){ 
        req = new ActiveXObject("Microsoft.XMLHTTP"); 
    }else{ 
        req = new XMLHttpRequest(); 
    } 
    return req; 
} 

function Request(query)
{
d.body.style.cursor='wait';
req.open('post', pach , true );
req.onreadystatechange = Refresh;
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
req.send(query);             
} 
function Refresh()
{ 
var a = req.readyState; 
var	b = req.responseText; 
	if ( a == 4 )
	{
	d.getElementById('newsdiv').innerHTML = b;
	d.body.style.cursor=''; 		
	}
}
