function openImg(names,diment0,diment1){
w=(screen.availWidth-diment0)/2;
h=(screen.availHeight-diment1)/2;
nw2=open("", "nw3", "width="+diment0+" height="+diment1+" top="+h+" left="+w+"")
nw2.document.write('<html><head><title></title></head><body style="margin:0px;"><img src="'+names+'"></body></html>')
nw2.document.close();
}