// <script type="text/javascript">

function forPrint()
{
// wyświetla sam tekst artykułu w osobnym oknie sformatowany do wydruku.
var t=document.title;
var x=document.getElementById("forprint");
noweOkno=window.open('','noweOkno', 'menubar=yes,scrollbars=yes,width=900,height=600');
noweOkno.document.write("<html><head><title>");
noweOkno.document.write(t);
noweOkno.document.write(" - wersja do druku");
noweOkno.document.writeln("</title>");
noweOkno.document.writeln("<meta http-equiv=\"content-type\" content=\"text/html; charset=ISO-8859-2\">");
noweOkno.document.writeln("<link rel=\"stylesheet\" type=\"text/css\" href=\"print.css\">");
noweOkno.document.writeln("</head><body onload=\"window.print()\">");
noweOkno.document.write(x.innerHTML);
noweOkno.document.writeln("</body></html>");
noweOkno.document.close();
}

/*  --------- funkcje Ajax ------------------ */
	function ajaxObject()
	{
		var x = null;
		if (window.XMLHttpRequest) x = new XMLHttpRequest();
		else if (window.AciveXObject) x = new ActiveXObject("Microsoft.XMLHTTP");
		return x;
	}
	function ajaxCompleted(ajax)
	{
		if (ajax.readyState !=4) return false;
		if (ajax.status !=200) return false;
		return true;
	}
	
	function dewisi(x)
	{
		document.getElementById(x).style.visibility = "hidden";
	}
	
	function SpisDisplay()
	{
		var Ajax = ajaxObject();
		Ajax.onreadystatechange = function(){
			if (ajaxCompleted(Ajax)){
				document.getElementById('spis').innerHTML = Ajax.responseText;
			}
		}
		Ajax.open('GET','spis.php',true);
		Ajax.send(null);
	}
	function SpisGo()
	{
		document.getElementById('wisi').style.visibility = "visible";
		SpisDisplay();
	}

/*
function ContactForm()
{
// wyswietla okno z formularzem kontaktowym

 var width  = 640;
 var height = 400;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}
*/

//</script>
