function display()
{ 
TYPE=(x[i].getElementsByTagName("type")[0].childNodes[0].nodeValue);
ACCESS=(x[i].getElementsByTagName("accession")[0].childNodes[0].nodeValue);
ACCLNK=(x[i].getElementsByTagName("acclink")[0].childNodes[0].nodeValue);
SAMPLES=(x[i].getElementsByTagName("samples")[0].childNodes[0].nodeValue);
AUTHOR=(x[i].getElementsByTagName("author")[0].childNodes[0].nodeValue);
PUBMED=(x[i].getElementsByTagName("pubmed")[0].childNodes[0].nodeValue);
TITLE=(x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
PLATF=(x[i].getElementsByTagName("platform")[0].childNodes[0].nodeValue);
PLATLNK=(x[i].getElementsByTagName("platlink")[0].childNodes[0].nodeValue);
PLATNM=(x[i].getElementsByTagName("platname")[0].childNodes[0].nodeValue);
sts=ACCESS;
str=PLATF;
}


function show()
{
var x=xmlDoc.getElementsByTagName("list");
var y="Retinal pigment epithelia cell lines";
var LISTING= '<b>' + y + '</b><br><TABLE BORDER=0><tbody><TR><TD width="85"><font size=-1><I>Accession</I></font></TD><TD width="200"><font size=-1><I>PubMed</I></font></TD><TD width="150"><font size=-1><I>Platform</I></font></TD></TR>';

for (i=0;i<x.length-1;i++)
{ 

display();

if (y!=TYPE)
 {
 y = TYPE;
 LISTING=LISTING + '</tbody></TABLE><br><b>' + TYPE + '</b><br><TABLE BORDER=0><tbody><TR><TD width="85"><font size=-1><I>Accession</I></font></TD><TD width="200"><font size=-1><I>PubMed</I></font></TD><TD width="150"><font size=-1><I>Platform</I></font></TD></TR>';
 }
else
 { 
LISTING=LISTING;
 }

var z=sts.indexOf("GSE");
if (z==0)
{
 LISTING=LISTING + '<TR><TD><a title="' + SAMPLES +'" style="text-decoration: none;" href="http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=' + ACCESS + '">' + ACCESS + '</a></TD>';
 }
else
 {
 LISTING=LISTING + '<TR><TD><a title="' + SAMPLES +'" style="text-decoration: none;" href="http://' + ACCLNK + '">' + ACCESS + '</a></TD>';
 }

if (AUTHOR=="-")
{
LISTING=LISTING + '<TD><FONT SIZE=-1><I>reference not yet available</I></FONT></TD>'
}
else
{
LISTING=LISTING + '<TD><a title="' + TITLE + '" style="text-decoration: none;" href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMed&amp;term=' + PUBMED + '">' + AUTHOR + '</a></TD>';
}

var zz=str.indexOf("GPL");
if (zz==0)
 {
 LISTING=LISTING + '<TD><a title="' + PLATNM + '" style="text-decoration: none;" href="http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=' + PLATF + '">' + PLATF + '</a></TD></TR>';
 }
else
 {
 LISTING=LISTING + '<TD><a title="' + PLATNM + '" style="text-decoration: none;" href="http://' + PLATLNK + '">' + PLATF + '</a></TD></TR>';
 }
}

LISTING=LISTING + '</tbody></TABLE>';

document.getElementById('zone').innerHTML=LISTING;
}

