var doc; var i = 0; var print_win; var news_win;var path = window.location.pathname.toString().toLowerCase();var scrx = screen.width / 2; var scry = screen.height / 2;function ShowPrintFormDocument(Doc) {	var window_x = 5 * scrx /3; var window_y = (5* scry / 3) - 100;	var param = 'status=no,resizable=yes,menubar=yes,scrollbars=yes,width=' + window_x.toString() + ',height=' + window_y.toString() + ',left=' + (scrx - window_x/2).toString() + ',top=' + (scry - window_y/2).toString();	if (typeof(print_win) == 'object') print_win.close();	print_win = window.open(Doc,'print',param);	print_win.focus(); print_win.print()};var cook ;var cookarray = new Array();function setCookie(name, value){ // use: setCookie("name", value);var today = new Date();var expiry = new Date(today.getTime() + 60 * 24 * 60 * 60 * 2000);  if (value != null && value != "")    document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString();}function getCookie(name){          return document.cookie;}function writeFormula(id,dbname, fr){cook = getCookie('docid'+id);cookarray = cook.split('docid');var ok =0;for(var i=0; i < cookarray.length;i++)	if(cookarray[i]!= ''){		cook = cookarray[i].substring(0,cookarray[i].indexOf("="));		if( cook == id)			ok = 1;	}if( ok  == 0 ){var fr = '<iframe name='+fr+' valing=top align=center width=100%';	 fr+= ' height=100% frameborder=0 scrolling=no ';	 fr+='src=\"/'+dbname+'/Ankieta?Open&id='+id+'\"></iframe>';	document.write(fr);}else{var fr = '<iframe name='+fr+' valing=top align=left width=100%';	 fr+= ' height=100% frameborder=0 scrolling=no ';	 fr+='src=\"/'+dbname+'/Wynik?Open&id='+id+'\"></iframe>';	document.write(fr);}}function glosuj(id,dbname){setCookie('docid'+id,id);var a = document.forms[0];var choose='';for(var i=0; i <a.glos.length;i++)	if( a.glos[i].checked)	choose = a.glos[i].value;var w ="/"+dbname+"/IncDocGlos?OpenAgent&glos="+choose+"&id="+id+"";window.location.replace(w);}function OpenCopyrightDialog() {	var window_x = 450; var window_y = 370;	var param = 'status=no,resizable=no,menubar=no,scrollbars=no,width=' + window_x.toString() + ',height=' + window_y.toString() + ',left=' + (scrx - window_x/2).toString() + ',top=' + (scry - window_y/2).toString();	if (typeof(win) == 'object') win.close();	win = window.open('/hlp/setup.nsf/Copyright?OpenPage','copy',param);	win.focus()}function OpenDialog(pth) {	//var window_x = screen.width-10; var window_y = screen.height-130;	var window_x = 600; var window_y = 320;		var param = 'status=no,resizable=no,menubar=no,scrollbars=yes,width=' + window_x.toString() + ',height=' + window_y.toString() + ',left=' + (scrx - window_x/2).toString() + ',top=' + (scry - window_y/2).toString();	if (typeof(win) == 'object') win.close();	pth+="?open&opwnd=1";	win = window.open(pth,'wnd',param);	win.focus()}//menuvar refer=true;function combo() {var obj = document.getElementById('contents');if (refer) {  obj.style.visibility="visible";  obj.style.height="10";  obj.style.fontSize="10";  obj.style.lineHeight="120%";  refer=false;}else {  obj.style.visibility="hidden";  obj.style.height="0";  obj.style.fontSize="0";  obj.style.lineHeight="0%";  refer=true;}}var refer2=true;function combo2() {var obj = document.getElementById('contents2');if (refer2) {  obj.style.visibility="visible";  obj.style.height="10";  obj.style.fontSize="10";  obj.style.lineHeight="120%";  refer2=false;}else {  obj.style.visibility="hidden";  obj.style.height="0";  obj.style.fontSize="0";  obj.style.lineHeight="0%";  refer2=true;}}var refer3=true;function combo3() {var obj = document.getElementById('contents3');if (refer3) {  obj.style.visibility="visible";  obj.style.height="10";  obj.style.fontSize="10";  obj.style.lineHeight="120%";  refer3=false;}else { obj.style.visibility="hidden";  obj.style.height="0";  obj.style.fontSize="0";  obj.style.lineHeight="0%";  refer3=true;}}var refer4=true;function combo4() {var obj = document.getElementById('contents4');if (refer4) {  obj.style.visibility="visible";  obj.style.height="10";  obj.style.fontSize="10";  obj.style.lineHeight="120%";  refer4=false;}else {  obj.style.visibility="hidden";  obj.style.height="0";  obj.style.fontSize="0";  obj.style.lineHeight="0%";  refer4=true;}}function overChangeClass(obj) {obj.style.background='#FFFFFF';obj.style.border='1px';obj.style.color='#002E5B';}function outChangeClass(obj) {obj.style.background='#002E5B';obj.style.border='0px';obj.style.color='#FFFFFF';}