    function AjaxObj() {
       var req;
       if(window.XMLHttpRequest){
          req = new XMLHttpRequest();
       } else if(window.ActiveXObject) {
          req = new ActiveXObject("Microsoft.XMLHTTP");
       } else {
          alert('Problem creating the XMLHttpRequest object');
       }
       return req;
    }
    var http = AjaxObj();

    function AjaxCalendar(d) {
        var ran_no=(Math.round((Math.random()*9999)));
        http.open('get', 'calendar.php?tarix='+d);
           http.onreadystatechange = function() {
            if(http.readyState == 4 && http.status == 200) {
                  var response = http.responseText;
                  if(response) {
                    document.getElementById("calendar").innerHTML = http.responseText;
                  }
               }
        }
           http.send(null);
    }
     
    function Pencere(adres){
		    var Pencere =window.open(adres,"Pencere","height=350, width=550,top=20,left=20,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no");
    }
