
function ajax_fetch_2043(datafile) {
 

 if (!document.all) {
   objXml = new XMLHttpRequest();
    objXml.open("GET","http://www.goscinnawies.pl/grafik_js/grafik_out_ajax.php?"+datafile,false);
    objXml.setRequestHeader("Content-Type", "text/plain; charset=UTF-8");
    objXml.send(null);
    document.getElementById("kalendarz_2043").innerHTML=objXml.responseText;

  } 
  else {
    var kontener = document.all["kontener_2043"];
     objXml = new ActiveXObject("Microsoft.XMLHTTP");
     objXml.open("GET","http://www.goscinnawies.pl/grafik_js/grafik_out_ajax.php?"+datafile, true);
     objXml.onreadystatechange=function() {
       if (objXml.readyState==4) {

         /*
          hahahaha przypadkowy fix na IE6 i 7 :) - bo nie czytaja niby przyajaxowanych stylow - ale jak sie wstawi jakikolwiek pierdolniczek np &nbsp; to zaczyna smigac XD
         */
         document.getElementById("kalendarz_2043").innerHTML=" &nbsp;"+objXml.responseText;
       }
     }
     objXml.setRequestHeader("Content-Type", "text/plain; charset=UTF-8");
     objXml.send(null);
  }
}
document.write("<div id=\"kalendarz_2043\">&nbsp;</div>");

function calendar_load_2043(gwid,rok,miesiac,legenda,tooltip,txt) {
  document.getElementById("kalendarz_2043").innerHTML="";
  ajax_fetch_2043("gwid="+gwid+"&rok="+rok+"&miesiac="+miesiac+"&legenda="+legenda+"&tooltip="+tooltip+"&txt="+txt);
}

setTimeout("calendar_load_2043('2043','0','0','0','1','0')",1);

/*
function errAlert(msg, errUrl, line) {
alert(msg+"      url: "+errUrl+"   linia:"+line);
}
window.onerror = errAlert;
*/
