	var theDate = new Date();
	var theMonth = theDate.getMonth();
	var theDay = theDate.getDate();
        var theYear = theDate.getYear();
        var url = 'http://' + unescape(document.location.hostname) + '/site/library/baner_prawy.php';

//otwórz w osobnym oknie o rozmiarach
function displayWindow(url, width, height) {
   var
      obraz = window.screen

      if (width > obraz.width)
       width = obraz.width-15;
      if (height > obraz.height)
       height = obraz.height-30;

      var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no' );
}

// odśwież zawartość po wyborze z rozwijanego menu
function sel_JumpSite(targ,selObj,restore)
        {
         eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
         if (restore) selObj.selectedIndex=0;
	}

// AHAH
    function makeRequest(){
        var http_request = false;
        if (window.XMLHttpRequest) {
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
            }
        } else if (window.ActiveXObject) {
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }
        if (!http_request) {
            alert('Kicha na maxa :( Nie mogę stworzyć instancji obiektu XMLHTTP');
            return false;
        }
        return http_request;
    }


