function reit(v,n,i)
	{
	var url = '/reit/'+n+'/'+i+'/'+v+'/';
	if(!this.http)
		{
		this.http = get_http();
		this.working = false;
		}
	this.http.open("GET", url, true);
	this.http.onreadystatechange = function()
		{
		if (http.readyState == 4)
			{
			if (http.responseText == '1')alert('Благодарим за удиление времяни данному моменту :-)');
			if (http.responseText == '2')alert('Вы уже голосовали :-)');
			this.working = false;
			}
		else
			{
			}
		}
	this.working = true;
	this.http.send(null);
        if(!this.http){
              alert('Ошибка при создании XMLHTTP объекта!')
        }
	};


function get_http(){
    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;
}


function sh_div(id)
{
	divs = document.getElementsByTagName('div');
	for(i=0; i<divs.length; i++){
		if(divs[i].id==id){
			if(divs[i].style.display == 'none'){divs[i].style.display = 'block';}
			else{divs[i].style.display = 'none';}
		}
	}
}