function imager(link) { // otevre obrazek v novem okne a prizpusobi se jeho rozmerum
	// v1.2 input: object reference or url, script potrebuje image.htm
	// HTML: <a href="big.jpg" onclick="return imager(this)"><img alt="" src="small.jpg"/></a>
	var alt;
	if(link.href) {
		if(!(alt=(link.childNodes.item(0).alt))) {
			var name = link.toString();
			alt = name.substring(name.lastIndexOf('/') + 1);
		}
		link = link.href;
	}
	else {
		alt = link.substring(link.lastIndexOf('/') + 1);
	}
	window.open('image.htm?src=' + escape(link) + '&alt=' + escape(alt), '', 'width=500, height=375, top=50, left=50, resizable=yes, scrollbars=no, toolbar=no, location=no, directories=no, status=yes, menubar=no, copyhistory=no');
	return false;
}

function blank(link) { // obdoba target="_blank"
	// v1.0 input: object reference
	// HTML: <a href="http://www.euneco.com/" onclick="return blank(this)">Euneco</a>
	link.target='_blank';
}

function win(link, width, height) { // otevre nove okno danych rozmeru
	// v1.0 input: object reference or url + rozmery
	// HTML: <a href="http://www.euneco.com/" onclick="return blank(this, '600', '400')">Euneco</a>
	if(link.href) {
		link = link.href;
	}
	window.open(link, '', 'width=' + width + ', height=' + height + ', top=50, left=50, resizable=yes, scrollbars=no, toolbar=no, location=no, directories=no, status=yes, menubar=no, copyhistory=no');
	return false;
}
