//Portait Sources script
//Regular expression to extract data delimited by @
re= /@/
//Build html for table
for(i=0;i<noSources;i++){
document.writeln("<tr class='sourcepara'><td width='25'><sup>" + (i+1)  + "</sup></td><td>")
cell=dS[i].split(re)
if (cell[0]!=" "){document.writeln(cell[0])}
if (cell[1]!=" "){document.writeln(" : " + cell[1])}
if (cell[2]!=" "){document.writeln(". Author: " + cell[2])}
if (cell[3]=="0"){document.writeln("<br>NB: Questionable data")}
if (cell[3]=="1"){document.writeln("<br>Sourced from informal third party")}
if (cell[3]=="2"){document.writeln("<br>Sourced from formal third party source")}
if (cell[3]=="3"){document.writeln("<br>Transcribed from original document or copy")}
if (cell[3]=="U"){document.writeln("<br>Source quality unrecorded")}
if (cell[3]==" "){document.writeln("<br>Source quality unrecorded")}
if (cell[4]!=" "){document.writeln(cell[4])}
if (cell[5]!=" "){document.writeln(cell[5])}
document.writeln("</td></tr>")
}