//Formats Namelist people by surname index
for(i=0;i<noSurnames;i++){
	cell=dSurn.split(re)
	pcell=dPbyS[i].split(re)
	document.writeln("<h2 class='namelist'><a name=\'" + cell[i*2] + "\' >" + cell[i*2] + "</a></h2><table width='100%' border='0' cellspacing='0' cellpadding='0'>")
	for(j=0;j<cell[i*2+1];j++){
		document.writeln("<tr class='tablerow'><td width='20'><td width='170'><a href=\'../p/p" + pcell[j*3+1] + ".html\'>" + pcell[j*3] + "</a></td><td>" + pcell[j*3+2] + "&nbsp;</td></tr>")
 		}
	document.writeln("</table>")
	}
	
    