 function popImage(pic, title, cut){
 	if(cut==1)
 	{
		pic = pic.slice(37, pic.lastIndexOf("&"));
		pic = pic.slice(0, pic.lastIndexOf("&"));
 	}
	if(title==null) title=' ';
	picName = new Image();
	picName.src = pic;
	picURL = picName.src;
    newWindow=window.open(picName,'newWin','resizable=yes, toolbar=no, width=600,height=500');
    newWindow.document.write('<html><head><title>'+title+'<\/title><\/head><body style="margin-left: 0px; margin-top: 0px;"><table cellspacing="0" cellpadding="0" height="100%" width="100%"><tr><td width="100%" align="center"><img src="'+picURL+'" style="padding: 1px; border: 1px solid #000;"><\/td><\/tr><\/table><\/body><\/html>');
//    newWindow.resizeBy(picName.width-newWindow.document.body.clientWidth+5,picName.height-newWindow.document.body.clientHeight+5);
    newWindow.focus();
    newWindow.document.close();
 } 