function showme(ps,pw,ph){
img_src=ps;
img_width=(pw+50);
img_height=(ph+50);

var oow=window.open("","prev","width="+img_width+",height="+img_height+",resizable=0,scrollbars=0,fullscreen=0");

str = "<html><head><title>Picture Preview</title><link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\"></head><body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
str+="<table width=\"100%\" height=\"15\">";
str+="<tr><td align=\"center\">";
str += "<img src=\""+img_src+"\">";
str+="</td></tr><tr><td>";
str += "<center><br><input type=\"button\" onClick=\"window.close();\" value=\"close\"></center>";
str+="</td></tr></table>";
oow.document.write(str);
	oow.document.close();
	oow.focus();
}

function showme2(ps){
	var iim = new Image();	
	iim.src=ps;	
	img_width=(iim.width+50);
	img_height=(iim.height+50);	
	var oow=window.open("","prev","width="+img_width+",height="+img_height+",resizable=0,scrollbars=0,fullscreen=0");
	
	str = "<html><head><title>Picture Preview</title><script language=\"javascript\" src=\"js/open_img_window.js\"></script><link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\"></head><body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
	str+="<table width=\"100%\" height=\"15\">";
	str+="<tr><td align=\"center\">";
	str += "<img name=\"imma\" src=\""+iim.src+"\" onload=\"fe2();\">";
	str+="</td></tr><tr><td>";
	str += "<script>function fe2(){wid2=document.images[\"imma\"].width+80;hei2=document.images[\"imma\"].height+100;window.resizeTo(wid2,hei2);}</script><center><br><input type=\"button\" onClick=\"window.close();\" value=\"close\"></center>";
	str+="</td></tr></table>";
	oow.document.write(str);
	oow.document.close();
	oow.focus();
}