function xmlhttpPost(strURL, qstr ) 
{

    var xmlHttpReq = false;

    if (window.XMLHttpRequest) 
    {
        xmlHttpReq = new XMLHttpRequest();
	
    }

    // IE
    else if (window.ActiveXObject) 
    {
        xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");

    }
    
    xmlHttpReq.open('POST', strURL, true);
    xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

// обновляем страницу

    xmlHttpReq.onreadystatechange = function() 
    {

      if ( ( xmlHttpReq.readyState == 4 ) && ( xmlHttpReq.status == 200 ) )
       {
  	
		var response = xmlHttpReq.responseText;
		upd =response.search('onmousedown ');
		if(upd!=-1)		
		{
		document.getElementById( 'container' ).innerHTML = response;
		}
	

	}
    }
    xmlHttpReq.send(qstr);
}
/********************************/
function refresh() 
{
// ставим единицу тошо скрипт на рифреш!!!!!!!!
if (document.onmousemove==null) {
var q= getquerystring(1);
xmlhttpPost("refresh.php",q);
document.onmouseup = up1;	
}
}
function  settimer()
{
setInterval( "refresh()",1000);
refresh();
} 
