// JavaScript Document

function $(id) {
     return document.getElementById(id);
}


    var http_request = false;

    function makeRequest(url) {

        http_request = false;

        if (window.XMLHttpRequest) { // Mozilla, Safari,...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // Przeczytaj o tym wierszu ponizej
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_request) {
            alert('Nie moge stworzyc instancji obiektu XMLHTTP');
            return false;
        }
        http_request.onreadystatechange = function() { alertContents(http_request); };
        http_request.open('GET', url, true);
        http_request.send(null);

    }

    function alertContents(http_request) {

        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
			
               
				   $('tresc_glowna').innerHTML  = http_request.responseText;
				
				


				
            } else {
              //  alert('Wystapil problem z zapytaniem.');
            }
        }

    }








function klik2(adres){
	
 
location.href = adres;
 
	
}





<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
function displayWindow3(url, width, height,posLeft,posTop) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=1,menubar=no,left='+posLeft+',top='+posTop );
}
function displayWindow2(url, width, height,posLeft,posTop) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,left='+posLeft+',top='+posTop );
}

function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no' );
}
function noSpam(user,domain) {
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
  } 



	function galeria(adres) 
{
  var width=640;
  var height=480;
  var Win=window.open("","Image", 'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no');

  Win.document.write('<html><HEAD><TITLE>Image</TITLE><style>body{ margin-left: 0px;margin-right: 0px; margin-top: 0px;margin-bottom: 0px; }</style><link rel="stylesheet" href="style.css" type="text/css"></HEAD>');
  Win.document.write('<body bgcolor="#FFFFFF">');
  Win.document.write('<table width=100% height=100% cellpadding=0 cellspacing=0><tr><td align=center><a href="javascript:close();"><img name="obrazek" border="0" src='+adres+' onload="javascript:window.resizeTo(obrazek.width+30,obrazek.height+70);" class=border></a></td></tr></table>');
  Win.document.write('<body></html>');
  	 Win.document.close();
	 Win.focus();
}