function img_popup(FILE,width,height) {
	var popw = width + 4;
	var poph = height + 4;
	CONTENT =
	'<html><head>' +
	'<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">' +
	'<title></title><style>img {cursor:pointer; cursor:hand;}</style></head><body marginheight="2" marginwidth="2" leftmargin="2" topmargin="2"><div align="center">' +
	'<img onClick="window.close()" src="' + FILE + '" border="0" width="' + width + '" height="' + height + '">' +
	'</div></body></html>';
	pop = window.open("","",'height='+ poph +',width='+ popw +',screenX=100,screenY=180,left=180,top=100');
	pop.document.open();
	pop.focus();
	pop.document.write(CONTENT);
	pop.document.close();
}

function img_lokacija() {
	var file = 'lokacija_pop.html'
	w=window.open(file,"popup",'toolbar=no,width=462,height=362,resizable=no,scrollbars=no,directories=no,status=no,menubar=no,location=no,screenX=100,screenY=180,left=180,top=100');
	w.creator = self;
}