//  listpop0.js
//  Written:  2001-01-07 by James Alarie <jalarie@umich.edu>
//    http://spruce.flint.umich.edu/~jalarie/
//
//  Create a link which calls ListPop0 with a list of items to list.
//
//  Example:
//
//    <a href="javascript:void(0);" onclick="ListPop0('Jim,Tom,Peg,Bob,Bill');">List</a>
//
//  Works in frames.
//  Works in Netscape 4.78 and 6.2, Internet Explorer 5.5, Opera 5.12.
//  Does not work in WebTV 2.6 nor Opera 5.11.
    
        function ListPop0(Items) {
          LP_Items=Items;                           // items list
          LP_ItemS=LP_Items.split(',');
          N=LP_ItemS.length;
          PopUp1=window.open('','ListPop');
          Out ='';
          Out+='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n';
          Out+='  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n';
          Out+='\n';
          Out+='<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">\n';
          Out+='  <head>\n    <title>Listing Popup<\/title>\n';
          Out+='    <meta http-equiv="Content-Script-Type" content="text\/javascript" \/>\n';
          Out+='    <meta http-equiv="Content-Style-Type" content="text\/css" \/>\n';
          Out+='    <meta http-equiv="PICS-Label" content=\'(PICS-1.1 "http:\/\/www.classify.org\/safesurf\/" l gen true for "http:\/\/spruce.flint.umich.edu\/~jalarie\/" r (SS~~000 1))\' \/>\n';
          Out+='    <meta http-equiv="pics-Label" content=\'(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for "http://spruce.flint.umich.edu/~jalarie" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0)  gen true for "http://www.spruce.flint.umich.edu/~jalarie" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0))\' />\n';
          Out+='    <link rel="meta" href="http://spruce.flint.umich.edu/~jalarie/labels.rdf" type="application/rdf+xml" title="ICRA labels" />\n';
          Out+='    <link href="style1.css" rel="stylesheet" type="text\/css" \/>\n';
          Out+='  <\/head>\n';
          Out+='  <body class="body1">\n';
          Out+='   <div id="body">\n';
            PopUp1.document.write(Out);
          Out ='    <div class="center">\n';
          Out+='      <br \/>\n';
          Out+='      <table border="1" cellspacing="2" cellpadding="2">\n';
          Out+='        <thead>\n';
          Out+='          <tr>\n';
          Out+='            <th bgcolor="#ffffcc">Item <\/th>\n';
          Out+='            <th bgcolor="#ffffcc">Description <\/th>\n';
          Out+='          <\/tr>\n';
          Out+='        <\/thead>\n';
          Out+='        <tbody>\n';
            PopUp1.document.write(Out);
          for (var ix1=0; ix1<N; ix1++) {
            var ix1D=ix1+1;
            Out ='          <tr>\n';
            Out+='            <td bgcolor="aqua" align="right">'+ix1D+' <\/td>\n';
            Out+='            <td bgcolor="aqua" align="left">'+LP_ItemS[ix1]+'&nbsp;<\/td>\n';
            Out+='          <\/tr>\n';
              PopUp1.document.write(Out);
          }
          Out ='        <\/tbody>\n';
          Out+='      <\/table>\n';
          Out+='      <br \/>\n';
            PopUp1.document.write(Out);
          PopUp1.document.write('[<a href="javascript:window.close();" title="close">Close<\/a>]\n');
          Out ='    <\/div><!\-\- center \-\->\n';
          Out+='   <\/div>\n';
          Out+='  <\/body>\n';
          Out+='<\/html>\n';
            PopUp1.document.write(Out);
          PopUp1.document.close();
          PopUp1.focus();
          return true;
        } // ListPop0
