function imager(link) { // v1.2 input: object reference or url
	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 flash(link, width, height) { // v1.0 input: object reference or url
	if(link.href) {
		link = link.href;
	}
	window.open('image.htm?src=' + escape(link) + '&flash=1&width=' + width + '&height=' + height, '', '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;
}

function blank(link) { // v1.0 input: object reference
	link.target='_blank';
}

function win(link, width, height) { // v1.0 input: object reference or url
	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;
}
