var wind = false;

function shut(){
	if (wind){
		wind.close();
	}
}

function image_zoom(img, description){
	var temp = new Image();
	temp.src=img;
	var page = '<html><head></head><body rightmargin="5" leftmargin="5" bottommargin="5" topmargin="5">'+
		'<table cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" width="100%" height="100%" style="font-family:arial; font-size:14pt">'+
		'<tr><td id="header_zoom"></td></tr>'+
		'<tr><td height="100%" align="center"><img align="middle" src="'+temp.src+'" border=0 onload="self.window.resizeTo((this.width+25),(this.height+190)); if(screen) self.window.moveTo( ((screen.width-this.width)/2), ((screen.height-this.height)/100));"></td></tr>'+
		'<tr><td align="center">'+description+'</td></tr>'+
		'</table></body></html>';
	var attribs = ',' + "menubar=0,location=0,toolbar=0,status=0,scrollbars=0,resizable=0, width=100,height=100, left=0, top=0";
	
	if (wind) 
	{
	wind.close();
	}
	
	wind = window.open('','_blank',attribs);
	wind.document.open();
	wind.document.write(page);
	wind.document.close();

}

function zoom(page){


	var attribs = ',' + "menubar=0,location=0,toolbar=0,status=0,scrollbars=0,resizable=0, width=100,height=100";
	
	if (wind) 
	{
	wind.close();
	}
	
	wind = window.open(page,'_blank',attribs);
	//wind.document.open();
	//wind.document.write(temp);
	//wind.document.close();

}
