function iPop(img,w,h,ttl)
{
	iPopURL = 'ipop.htm' // set as location of ipop.html
	url = iPopURL + '?' + img + (ttl ? '&'+escape(ttl) : '')
	l = (screen.width-w)/2
	t = (screen.height-h)/2
	attribs = 'width='+w+',height='+h+',left='+l+',top='+t
	open(url,'imgWin',attribs)
	return false;
}

// come richiamare lo script
// <a href="image.jpg" onclick="return iPop(this.href,larghezza,altezza,'Titolo immagine')">Link testuale</a>