function guest_book()
{
 
  var name = document.getElementById("name2").value;
	var email = document.getElementById("email2").value;
	var city = document.getElementById("city").value;
	var comments = document.getElementById("comments2").value;
	
  var test = /^[^@\#\$\%\&\^\*]+@([a-z0-9\-]+\.)+[a-z]{2,4}$/;
  var w = email.match(test);
	
	
  if((name=='')||(email=='')||(comments==''))
  {
    var return_ = document.getElementById('return');
    return_.innerHTML = copis;
  }
  else
  {
    if(w!=null)
      {
        var rez = document.getElementById('dw');
        rez.innerHTML = '<img src="http://brunow.pl/img/ajax-loader.gif" style="margin-left:180px; margin-top:120px;"/>';
 
        url = "http://brunow.pl/inc/dodaj_wpis.php";
    //    ?name=" + name + "&email=" + email + "&city=" + city + "&comments=" + comments
        
        var param = "name=" + encodeURIComponent(name) + "&email=" + encodeURIComponent(email) + "&city=" + encodeURIComponent(city) + "&comments=" + encodeURIComponent(comments);
     // alert(param);
      startPOSTRequest(url, param, onFotoComplete, onEnd);
        
        
     //   url = encodeURI(url);
     //   startGETRequest(url, onFotoComplete, onEnd);
      }
    else
      {
        var return_ = document.getElementById('return');
        return_.innerHTML = '<span style="">' + eopis + '</span>';
  
      }
   }
}
function onFotoComplete(text, xml)
{
    
 var rez = document.getElementById('dw');
 rez.innerHTML = text;

}

function onEnd(){
}