function showpics (dir,num,max,title) {	wdth = 640;	hght = 480;	wdth = wdth + 20;	hght = hght + 70;	str = "toolbar=no,location=no,scrollbars=yes,width="+wdth+",height="+hght;	newWindow = window.open("", "newWin", str);	newWindow.document.write("<html>");	newWindow.document.write("<head>");	newWindow.document.write("<link rel='stylesheet' href='styles.css' type='text\/css'>");	newWindow.document.write("<script language='JavaScript' type='text\/javascript'>");	newWindow.document.write("var picnum = 0;");	newWindow.document.write("var maxpics = "+max+";");	newWindow.document.write("var dir = '"+dir+"';");	newWindow.document.write("var str0;");	newWindow.document.write("var str1;");	newWindow.document.write("var str2;");	newWindow.document.write("var str3;");	newWindow.document.write("function firstpic () { picnum="+num+"; show_pic(picnum); }");	newWindow.document.write("function nextpic () { picnum = picnum + 1; if (picnum == maxpics) picnum = 0; show_pic(picnum); }");	newWindow.document.write("function prevpic () { picnum = picnum - 1; if (picnum < 0) picnum = maxpics - 1; show_pic(picnum); }");	newWindow.document.write("function show_pic (pic) {");	newWindow.document.write("	str0 = dir + pic + '.jpg';");	newWindow.document.write("	str1 = '\"PIX\"';");	newWindow.document.write("	str2 = '\"'+str0+'\"';");	newWindow.document.write("	str3 = 'document.images[' + str1 + '].src=' + str2;");	newWindow.document.write("	eval(str3);");
	newWindow.document.write("}");	newWindow.document.write("<\/script>");	newWindow.document.write("<\/head>");	newWindow.document.write("<body onload='firstpic()')>");	newWindow.document.write("<center>");	newWindow.document.write("<table>");	newWindow.document.write("<tr>");	newWindow.document.write("<td class='piclink_l'><a onclick='prevpic()'><-- Previous<\/a><\/td>");	newWindow.document.write("<td class='piclabel'>"+title+"<\/td>");	newWindow.document.write("<td class='piclink_r'><a onclick='nextpic()'>Next --><\/a><\/td>");	newWindow.document.write("<\/tr>");	newWindow.document.write("<tr><td style='vertical_align:middle;text-align:center' width='100%' colspan='3' >");	newWindow.document.write("<img src='images\/blank.gif' alt='loading...' title='loading...' name='PIX' id='PIX' \/>");	newWindow.document.write("<\/td><\/tr>");	newWindow.document.write('<tr><td class="piclink_l" colspan="3">');	newWindow.document.write('<a onClick="self.close()">Close</a>');	newWindow.document.write('</td></tr>');	newWindow.document.write("<\/table>");	newWindow.document.write("<\/center>	");	newWindow.document.write("<\/body>");	newWindow.document.write("<\/html>");	newWindow.document.close();		// make sure this window is in front so it can be seen	newWindow.focus();	return false;}
