 function createWindow(imgSRC) {
		
		
			if (Win == null) {
				var Win = window.open("","displayWindow",'width=' + 800 + ',height=' + 600 + ',resizable=1,scrollbars=yes,menubar=no' );	
			}
			
			Win.document.close();
			Win.document.writeln("<html>");
			Win.document.writeln("<head>");
			Win.document.writeln('<title>OBRAZEK ');
			Win.document.writeln(imgSRC);
			Win.document.writeln('</title>');
			Win.document.writeln('<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2">');
			Win.document.writeln('<LINK REL="StyleSheet" HREF="portal.css" type="text/css">');
			Win.document.writeln('</head>');
			Win.document.writeln('<body><table width=100% height=100% cellspacing=0 cellpadding=0 border=0>');
			Win.document.writeln('<tr><td align=center valign=middle><DIV id="center">');
			Win.document.writeln('<IMG SRC="');
			Win.document.writeln(imgSRC);
			Win.document.writeln('">');
			Win.document.writeln('<br><A HREF="javascript:window.close()"</DIV>zamknij</A></td></tr></table></body>');
			Win.document.writeln('</html>');
			Win.focus();
		
		}
		
function confirmAction(tekst) {
	zmienna = confirm (tekst);
	if (!zmienna) {
		return false;
	}else{
		return true;
	}
}

function addText(formName,areaName, texts) {
	objPoint = eval('document.'+formName+'.'+areaName);
	objPoint.value += texts;
}

var tick;
function stop() {
  clearTimeout(tick);
}

function usnotime() {
  var ut=new Date();
  var h,m,s;
  var time="      ";
  h=ut.getHours();
  m=ut.getMinutes();
  s=ut.getSeconds();
  if(s<=9) s="0"+s;
  if(m<=9) m="0"+m;
  if(h<=9) h="0"+h;
  time+=h+":"+m+":"+s;
  //document.rclock.rtime.value=time;
  document.all['realTimeClock'].innerHTML = "<b>"+time+"&nbsp;&nbsp;&nbsp;</b>";
  tick=setTimeout("usnotime()",(1000*60));
}
