/*
   searches for and displays comments
*/
    document.writeln('<div class="combox">');
    document.writeln('<h3>Comments</h3>');
if (eval(tripID).comments != 0) {
    for (var comnum = 0; comnum < eval(tripID).comments; comnum++) {
        if (comnum > 0) document.writeln('<p>----</p>');
        document.writeln('<p><em>Author:</em> '+eval(tripID).commentarray[comnum].comwriter+'<br>');
        document.writeln('<p><em>Comment:</em> '+eval(tripID).commentarray[comnum].comtext+'<br>');
        document.writeln('<p><em>Date:</em> '+eval(tripID).commentarray[comnum].comdate+'</p>');
        };
    };
    document.writeln('<p class="centered"><a href="../comment.html">mail in a comment</a></p>');
    document.writeln('</div>');

/*
   links back to associated trips
*/
document.writeln('<div class="textbox" style="margin-left: 8em; margin-right: 8em">');
document.writeln('<p>Try another trip in this <a href="../'+eval(eval(tripID).region)+'">region</a> or<br>choose a <a href="../index.html">region</a>, <a href="../time.html">time</a>, or <a href="../season.html">season</a></p>');
document.writeln('</div>');
document.writeln('<hr>');

/*
   signature block with email and lastmod date
*/

document.writeln('<p><em>Author:</em> '+eval(tripID).author.authname+' / <a href="mailto:'+eval(tripID).author.authemail+'">'+eval(tripID).author.authemail+'</a><br>');
var Months = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var lastmod = new Date(document.lastModified);
if  (!Date.prototype.getFullYear)
   if (lastmod.getYear()<60)
     var modyear=(lastmod.getYear()+2000)
    else
     if (lastmod.getYear()>1959)
       var modyear=(lastmod.getYear())
      else
       var modyear=(lastmod.getYear()+1900)
 else
   if (lastmod.getFullYear()<1960)
     var modyear=(lastmod.getFullYear()+100)
    else
     var modyear=lastmod.getFullYear();
document.write("<em>Date:</em> "+Months[lastmod.getMonth()]+" "+lastmod.getDate()+", "+modyear+"</p>");

