		var working = false;
function get_http()
{   
    var xmlhttp;    
    if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {   
        try {   
            xmlhttp = new XMLHttpRequest();   
        } catch (e) {   
            xmlhttp = false;   
        }   
    }   
    return xmlhttp;   
}
function ge()
{
  var ea;
  for( var i = 0; i < arguments.length; i++ ) {
    var e = arguments[i];
    if( typeof e == 'string' )
      e = document.getElementById(e);
    if( arguments.length == 1 )
      return e;
    if( !ea )
      ea = new Array();
    ea[ea.length] = e;
  }
  return ea;
}
function post()
{
	if(!this.http)
	{   
		this.http = get_http();   
		working = false; 
		ge('prog').style.display = 'none';
	}
	if (!this.working && this.http) 
	{   
        var http = this.http; 
		url = 'send_mail.php' + "?email=" + encodeURIComponent(ge('email').value) +
			"&content=" + encodeURIComponent(ge('content').value) +
			"&not_bot=" + encodeURIComponent(ge('not_bot').checked);
		this.http.open("GET", url, true);   
		this.http.onreadystatechange = function() 
		{   
			if (http.readyState == 4) 
			{   
				working = false;
				ge('prog').style.display = 'none';
				ge('op_msg').innerHTML = http.responseText;
				ge('op_msg').style.display = '';
				delete this.http;
			} 
		}   
		working = true;
		ge('prog').style.display = '';
		ge('op_msg').style.display = 'none';		
		this.http.send(null);   
    }   
    if(!this.http)
	{	
		alert('Ошибка при создании XMLHTTP объекта.')  
	}
}