function popup(pic,title) {
baseloc=location.href.substring(0,location.href.lastIndexOf("/")+1);
image=pic;
h=600;
w=800;
 
space=title.indexOf(" ");
if (space<0)
          {xtitle=title}
   else
          {xtitle=title.substr(0,space)};

msg=window.open("",xtitle);

msg.document.write('<head>');
msg.document.write('</head>');

msg.document.write("<html><title>Jim Sawada - "+xtitle+"</title>");
msg.document.write("<body bgcolor='white'>");
msg.document.write('<p align="center"><img border="0" src='+baseloc+image+'>');
//msg.document.write('<p style="margin-top: 2" align="center">&nbsp;</p>');
msg.document.write('<p style="margin-top: 0; margin-bottom: 0" align="center"><b><center><font size="4" color="#003300">'+title+'</font></center></b></p>');
msg.document.write('<p style="margin-top: 0; margin-bottom: 0" align="center"><font color="#000080"><INPUT TYPE="button" VALUE="CLOSE WINDOW" onClick="window.close()"></font></p>');

msg.document.write("</body></html>");
msg.document.close();
}

