function navtop (prev,next) {
    document.write ("<BODY BGCOLOR='ffffff' TEXT='000000' LINK='0000ff' VLINK='aa0000' ALINK='ff0000'>")
    document.write ("<table width=450>")
    document.write ("<tr><td width=350 valign=top align=left>")
    document.write ("<img src='lesson.gif' width=340 height=40 border>")
    document.write ("</td><td width=100 valign=bottom align=right>")

  if (prev>'') {    
      document.write ("<a href='"+prev+".htm' target='main'>")
      document.write ("<img src='../images/arrowbak.gif' width=24 height=29></a> ")
    }

  if (next>'') {
      document.write ("<a href='"+next+".htm' target='main'>")
      document.write ("<img src='../images/arrow.gif' width=24 height=29></a>")
    }

    document.write ("</td></tr>")
    document.write ("<tr>")
    document.write ("<td valign=top align=left colspan=2>")
    document.write ("<img src='../images/line-blue.gif'>")
}



function header (title, graphic,w,h) {
     document.write ("<tr><td valign=top colspan=2>")
    if (graphic>'') {
     document.write ("<img src='../images/"+graphic+".gif' ")
     document.write ("width="+w+" height="+h+" align=left valign=bottom>")
    }
     document.write ("<font face='Verdana' size=2>")
     document.write ("<b>"+title+"</b><p>")
}



function navbottom (prev,next) {
    document.write ("<td valign=bottom align=right>")
   if (prev>'') {
    document.write ("<a href='"+prev+".htm' target='main'>")
    document.write ("<img src='../images/arrowbak.gif'></a> ")
    }
   if (next>'') {
    document.write ("<a href='"+next+".htm' target='main'>")
    document.write ("<img src='../images/arrow.gif'></a>")
    }
    document.write ("<br><img src='../images/line-blue.gif' width='60'>")
    document.write ("</td></tr>")
}


function lesson (z) {
    document.write ("</td></tr>")
    document.write ("<tr><td valign=top colspan=2>")
    document.write ("<img src='../images/line-blue.gif'>")
    document.write ("</td></tr>")
    document.write ("<tr><td valign=top align=left>")
    document.write ("<font face='Verdana' size=1>")
    document.write ("Lesson "+z)
    document.write ("</td>")
}


function lessonx (z) {
    document.write ("</td></tr>")
    document.write ("<tr><td valign=top colspan=2>")
    document.write ("<img src='../images/line-blue.gif'>")
    document.write ("</td></tr>")
    document.write ("<tr><td valign=top align=left>")
    document.write ("<font face='Verdana' size=1>")
    document.write ("Lesson "+z)
    document.write ("</td>")
    document.write ("<td valign=bottom align=right>")
    document.write ("<a href='x1a.htm' target='main'>")
    document.write ("<img src='../images/arrow.gif'></a>")
    document.write ("<br><img src='../images/line-blue.gif' width='60'>")
    document.write ("</td></tr>")
}


function answer (z) {
    document.write ("</td></tr>")
    document.write ("<tr><td valign=top colspan=2>")
    document.write ("<img src='../images/line-blue.gif'>")
    document.write ("</td></tr>")
    document.write ("<tr><td valign=top align=left>")
    document.write ("<font face='Verdana' size=1>")
    document.write ("Lesson "+z+" - Question")
    document.write ("</td>")
    document.write ("<td valign=bottom align=right>")
    document.write ("<a href='answer.htm' target='main'>")
    document.write ("<img src='../images/answerkey.gif'></a>")
    document.write ("<br><img src='../images/line-blue.gif' width='60'>")
    document.write ("</td></tr>")
}

function question (z) {
    document.write ("</td></tr>")
    document.write ("<tr><td valign=top colspan=2>")
    document.write ("<img src='../images/line-blue.gif'>")
    document.write ("</td></tr>")
    document.write ("<tr><td valign=top align=left>")
    document.write ("<font face='Verdana' size=1>")
    document.write ("Lesson "+z+" - Answer")
    document.write ("</td>")
    document.write ("<td valign=bottom align=right>")
    document.write ("<a href='q.htm' target='main'>")
    document.write ("<img src='../images/question.gif' width=24 height=29></a>")
    document.write ("<br><img src='../images/line-blue.gif' width='60'>")
    document.write ("</td></tr>")
}



function glossary (code,term) {
    document.write ("<br><img src='../images/line-blue.gif'><br>")
    document.write ("<img src='../images/glossy.gif' width=32 height=32 border=0 align=left>")
    document.write ("<font face='Verdana' size=1><b>Glossary</b><br>")
    document.write ("<a href='../glossary/"+code+".htm'>"+term+"</a><p>")
}


function web () {
    document.write ("<p><img src='../images/line-blue.gif'><p>")
    document.write ("<img src='../images/html.gif' width=32 height=32 border=0 align=left>")
}

function weblink (code,target,comment) {
    document.write ("<li><a href='"+code+"'>"+target+"</a>")
    if (comment > '') {
       document.write (" ("+comment+")")
     }
}


function webend () {
    document.write ("<p>")
}

function when () {
    when=document.lastModified
    document.write("<p><font face='Verdana' size=1 color='#888888'>")
    document.write("&copy;2000<br>Last Modified: "+when)
    document.write("</p>")
}
