function displayImage(picName, windowName, windowWidth, windowHeight){
	var winHandle = window.open("" ,"ims","toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
	if(winHandle != null){
		var iwidth =  parseInt(windowWidth)+5;
		var iheight =  parseInt(windowHeight)+57;
		//var iwidth =  parseInt(windowWidth) *2 - document.body.clientWidth;
		//var iheight =  parseInt(windowHeight) *2 - document.body.clientHeight;
		//alert(document.body.clientWidth); 

		var htmlString = "<html><head><title>Picture</title></head>" 
		htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onload='resizeTo(" +iwidth + "," + iheight  + ");'>"
		htmlString += "<a href=javascript:this.close()><img src=" + picName + " border=0 alt=´Ý±â></a>"
		htmlString += "</body></html>"
		winHandle.document.open()
		winHandle.document.write(htmlString)
		winHandle.document.close()
	} 
	if(winHandle != null) winHandle.focus()
	winHandle;
	//return winHandle

}


