	var newWindowFeatures = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=0";
	var myWindow = null;
   	function show_detail(image, iwidth ,iheight) 
	{
        totheight = iheight +60;
        totwidth = iwidth +20;
//		alert(totwidth +"x" +totheight);
		var overallXY = "width=" +totwidth +",height=" +totheight;
//
// If a window with same name is already open, close it so the newly opened window
// actually gets seen.  setTimeout used to alleviate IE probs, likewise focus() at end
//
		if (myWindow != null && !myWindow.closed)
		{
			myWindow.window.close();
			setTimeout("a=1",1000);
		}

        myWindow = window.open("", "Preview",newWindowFeatures +"," +overallXY +",innerwidth=" + totwidth + ",innerheight=" + totheight);
		myWindow.moveTo(50,100); 
      	myWindow.document.open();
       	myWindow.document.write("<HTML><HEAD><TITLE>Detail of Item</TITLE></HEAD>");
        myWindow.document.write("<BODY BGCOLOR='#dddddd' onBlur=\"timerId=setTimeout('window.close()',5000)\" onFocus=clearTimeout(timerId) >");
        myWindow.document.write("<CENTER><IMG SRC='" + image + "' ALIGN='TOP' BORDER='0'  width=" +iwidth +" height=" +iheight +" ALT='Item Detail'></CENTER>")
		myWindow.document.write("<CENTER><FORM > <INPUT type='SUBMIT' name='ACT' value='CLOSE WINDOW' onClick='window.close()'></FORM></CENTER>");
        myWindow.document.write("</BODY></HTML>");
        myWindow.document.close();
		myWindow.focus();
	}
