var interval = 6;

function createRequestObject() {
    var xmlhttp;
    /*@cc_on
    @if (@_jscript_version >= 5)
        try {
            xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
            try {
                xmlhttp = new 
                ActiveXObject("Microsoft.XMLHTTP");
            } catch (E) {
                xmlhttp = false;
            }
        }
    @else
        xmlhttp = false;
    @end @*/
    if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
        try {
            xmlhttp = new XMLHttpRequest();
        } catch (e) {
            xmlhttp = false;
        }
    }
    return xmlhttp;
}

var http = createRequestObject();

function sendReq(php, params) {
	 // alert(php+"?"+params);
	http.open('post', php+"?"+params, true);
	http.onreadystatechange = handleResponse;
	http.send(null);
}
function handleResponse() {
    if(http.readyState == 4){
	      var response = http.responseText;
		// alert(response);
	}
}
window.onload=function () {
	id=setTimeout ("sender()", interval*1000);
}
function sender(){
	if (location.href.search(/anket/)!=-1) {
		sendReq("/request.php", "t=10&page="+encodeURI(location.href));
	}
}