function openWindow(name){
	imagoo = new Image()
	imagoo.src = name + '.jpg'
	imagoo.name = name
	var newWin =window.open("","","width=400,height=800")
	newWin.document.write('<head></head><body bgcolor="#66ccff"><div align="center"><img src="' +name +'.jpg" name="imago"></div>')
	while (newWin.document.imago.fileSize ==-1){
	
	}
	var wid= newWin.document.imago.width +50
	var hei= newWin.document.imago.height +70
	if (hei<100){
		hei=400
	}
	if (wid<100){
		wid=400
	}
	newWin.resizeTo(wid,hei)
}