function Otworz(szer,dl,img1)
{
	var popUpWinGraph=null;

	if(window.screen){    
		lef=screen.availWidth / 2 - szer / 2 ;    
		to=screen.availHeight / 2 - dl / 2;  
	}
	else{    
		lef=640 / 2;    
		to=450 / 2;  
	}

	//if(popUpWinGraph)
	//{
	//	if(!popUpWinGraph.closed) popUpWinGraph.close();
	//}

	var html = "<html><head>\n";
	html += "<style type=\"text/css\"> body { margin: 0; padding: 0; }</style>";
	html += "</head><body bgcolor=white margin=\"0\"><center>";
	html += "<img src="+img1+">\n";		
	html += "</table></center></BODY></HTML>";


	var strReplaceAll = img1.replace(".jpg", "");
	strReplaceAll = strReplaceAll.replace("galeria/", "");
	var intIndexOfMatch = strReplaceAll.indexOf( "/" );
  
	while (intIndexOfMatch != -1){
		// Relace out the current instance.
		strReplaceAll = strReplaceAll.replace( "/", "" )
		// Get the index of any next matching substring.
		intIndexOfMatch = strReplaceAll.indexOf( "/" );
	}

	popUpWinGraph = window.open("",strReplaceAll,'width=' + dl+ ',height=' + szer+ ',resizable=1,toolbar=no,scrollbars=no,menubar=no,status=no,left='+lef+',top='+to);
	popUpWinGraph.document.write(html);
}