function displayWindow(url, width, height, top, name) {
	  var left;
	  if ((screen.availWidth-width-29)/2 < 0) {left=0;}
	  else {left=(screen.availWidth-width-29)/2;}
          Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no,left=' + left + ',top=' + top);
	  Win.focus();
}


function dispWindow(url, width, height, top, name) {
          Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=no,menubar=no,left=' + (screen.availWidth-width-29+92)/2 + ',top=' + top);
	  Win.focus();
}

function dispWinScroll(url, width, height, top, name) {
          Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no,left=' + (screen.availWidth-width-29+92)/2 + ',top=' + top);
	  Win.focus();
}

function WinScroll(url, width, height, top, name) {
	  var left;
	  if ((screen.availWidth-width-29)/2 < 0) {left=0;}
	  else {left=(screen.availWidth-width-29)/2;}
          Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no,left=' + left + ',top=' + top);
	  Win.focus();
}

function WinNoScroll(url, width, height, top, name) {
	  var left;
	  if ((screen.availWidth-width-29)/2 < 0) {left=0;}
	  else {left=(screen.availWidth-width-29)/2;}
          Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=no,menubar=no,left=' + left + ',top=' + top);
	  Win.focus();
}

function displayBrowser(url, width, height, top, name) {
          Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,location=yes,left=' + (screen.availWidth-width-29+92)/2 + ',top=' + top);
	  Win.focus();
}


function DoPrinting(){
if (!window.print){
alert("Opcja drukowania wymaga przeglądarki Netscape 4.x lub MSIE 5.x.");
return;
}
window.print();
}

function showCal(url, left, top) {
	Win = window.open(url,'Kalendarz','width=285,height=238,left=' + left + ',top=' + top);
	Win.focus();
}

