function popWindowWithSize(imageName, w, h)
{
//v2.0
	newWindow = window.open('', 'imgWindow', 'scrollbars=no,resizable,width='+w+',height='+h);
	newWindow.resizeTo(w+10,h+50);
	newWindow.focus();
	newWindow.document.open();
	newWindow.document.write('<html><head><title>Detailed Image</title></head>');
	newWindow.document.write('<body><div align="center"><img src="'+imageName+'">');
	newWindow.document.write('<br><a href="javascript:window.close()">Close window</a></div>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
}

function popWindow(imageName) 
{ 
	return popWindowWithSize(imageName, 650, 675);
}

function popFiberWindow(imageName) 
{
	return popWindowWithSize(imageName, 650, 515);
}

function popYarnWindow(imageName) 
{
	return popWindowWithSize(imageName, 650, 240);
}


