 function write_head (
  sselected_top,
  sselected_sub,
  sdoc_root
  ) {

   var selected_top=-1;
   var selected_sub=-1;
   var doc_root = sdoc_root;
   var i;

   doc_root += "";
   if( doc_root == "undefined" ) {
      doc_root = "";
   }  else if (doc_root == ".") {
      doc_root = "";
   } else {
      doc_root = doc_root + "/";
   }



   for( i=0; i<top_menu.length; ++i) {
      if( sselected_top == top_menu[ i ] ) {
         selected_top = i;
         break;
      }
   }

   for( i=0; i<sub_menu[selected_top].length; ++i) {
    if( sselected_sub == sub_menu[selected_top][ i ] ) {
         selected_sub = i;
         break;
      }
   }

   if (( selected_top < 0 ) || ( top_menu.length <= selected_top )) {
      alert("java-scriptwrite_head - selected_top out of range (" +
            selected_top + "," +
            selected_sub + ")");
      return;
   }

   if (( selected_sub < -1 ) || ( sub_menu[selected_top].length <= selected_sub )) {
     alert("java-scriptwrite_head - selected_sub out of range (" +
             selected_top + "," +
             selected_sub + ")");
     return;
   }



   if ( top_menu.length != top_menu_href.length ) {
    alert("java-scriptwrite_head - top array out of synch (" +
          selected_top + "," +
          selected_sub + ")");
     return;
   }



   if ( sub_menu[selected_top].length != sub_menu_href[selected_top].length ) {
     alert("java-scriptwrite_head - sub array out of synch (" +
            selected_top + "," +
            selected_sub + ")" );
    return;
   }


//----------------------------------------------------------------------------



   // hmmm why does Opera 6 need this?
   doc = "";
   tmp = "<TABLE border=0 WIDTH='100%'> ";
   doc += tmp;
   document.writeln(tmp);

   document.writeln( "<TR HEIGHT=98> ");
     document.writeln( "<TD WIDTH='15%'>");
       document.writeln( upper_left_logo );
     document.writeln( "</TD>");
     document.writeln( "<TD CLASS=top_title >" ) ;
       document.writeln( upper_title ) ;
     document.writeln( "</TD> ");
     document.writeln( "</TR> ");

     document.writeln( "<TR ><TD BGCOLOR='#0000ff' width=100% height=2 colspan=2></TD></TR>");

   document.writeln( "</TABLE>");

//----------------------------------------------------------------------------

  // menus across the top

   document.writeln( "<TABLE border=0 cellpadding=0 cellspacing=0  height=25 >");
   document.writeln( "   <TR>");

   for(i=0; i<top_menu.length; ++i) {

    if( i == selected_top) {

      document.writeln( "<TD CLASS=top_menu_selected>");
      document.writeln( "<A CLASS=menu_text  HREF='" + doc_root + top_menu_href[i]
       + "'>" + top_menu[i] + "</A>" );
      document.writeln( "</TD>" );

    } else {

      document.writeln( "<TD CLASS=top_menu>");
      document.writeln( "<A CLASS=menu_text    HREF='" +
        doc_root + top_menu_href[i] + "'>" + top_menu[i] + "</A> " );

    }
    document.writeln( "</TD>");

   }

   document.writeln( "</TR>");
   document.writeln( "</TABLE>");

//----------------------------------------------------------------------------

   document.writeln( "<TABLE border=0 cellpadding=0 cellspacing=0  width='100%' >");

  //tan horizontal bar between top menu and sub menu
   document.writeln( "<TR ><TD CLASS=horizontial_bar width=100% height=7 colspan=4></TD></TR>");
   document.writeln( "<TR>");

   // column 1 - the sub menu
   document.writeln( "<TD CLASS=sub_menu_bg valign='top' ALIGN='center'>");
   document.writeln("<TABLE border=0 cellpadding=0 cellspacing=0 WIDTH='100%' >");

   var j;
   var css_class;

   for(j=0; j<sub_menu[ selected_top ].length; ++j) {
     if( j == selected_sub )
        css_class =" 'sub_menu_selected' ";
     else if ( j == sub_menu[ selected_top ].length-1 )
        css_class =" 'sub_menu_last' ";
     else
        css_class =" 'sub_menu' ";

     document.writeln("<TR  ><TD ALIGN=\"center\" CLASS=" + css_class +
        "><A CLASS=menu_text     HREF='" + sub_menu_href[selected_top][j] +
        "'> " + sub_menu[selected_top][j] +
        "</A></TD></TR>"
      );
   }
   document.writeln( "</TABLE></TD>");


   // column 2 - space between menu and text
   document.writeln( "<TD WIDTH=15>&nbsp;</TD>");


   // column 3 - the page
   document.writeln( "<TD valign='top'> ");

}



   function write_foot() {

// column 4 - the rigth border
     document.writeln("</td><TD CLASS=sub_menu>&nbsp;&nbsp;</TD></tr></table>");


     document.writeln( bottom_msg );

   }



function write_mail( ){
	document.write( "<A CLASS='maillink' HREF='mailto:meissnersd" );
	document.write( "@" );
	document.write( "yahoo.com?subject=MSD:Resume'>meissnersd");
	document.write( "@");
	document.write( "yahoo.com</A>");
}








