/****************************************************************************
INIT.JS THAT WAS IN MISSION MESSENGER (CONTAINS FUNCTIONS THAT ARE NOT IN /SCRIPTS/INIT.JS
file: init.js
developer: Bob Lewis
date: 29May06; modified on 15Sep07
description: originally used with Restoration Review;
             adapted to this site--Unity-In-Diversity.Org;

             pages are loaded into the includeone span in the 'article.htm' 
             page by way of a call to the clientSideInclude function found 
             in utils.js;
             this function uses the window.XMLHttpRequest to retrieve the 
             page and display it inside an element in the article.htm file;
             
             Following notes from notes.txt in Restoration Review folder
             When an article is accessed from a volume index, the page is loaded 
               into the article.htm file using a call to clientSideInclude;
             When an index is accessed from the number drop-down menu, it is 
               loaded into the display_index.htm file using a call to clientSideInclude;
             When an article or index is access directly, using the absolute url, 
               the file itself will call the init() function of the print.js script 
               and will display the file in the appropriate file using a call to 
               clientSideInclude;
             When an intro file is called (from the intros folder) directly, using 
               the absolute url, the volume is detected from the file name and used 
               to load the appropriate index file (using a call to clientSideInclude) 
               and display the intro file in a pop-up window--the way intro files are 
               always displayed;
             
    29May06: this function can call either display_page.php or 
             display_page.htm the only difference is that the 
             php file will read the query_string whereas the html 
             file will parse  window.location.href for the query 
             string;
             If php, the following modifications need to be 
             made to the display.php file:
             1. the following line must be commented out of the 
                init() function:
                clientSideInclude('includeone', include_page);
             2. the following line must be commented out in the 
                body of the file:
                <span id="includeone"></span>
             3. the follwing line must be inserted in place of the 
                previous line:
                <? readfile($include_file);?>
             4. the following lines must be inserted at the top of 
                the PHP file:
                <?php
                  $include_file = $_SERVER['QUERY_STRING'];
                ?>
             Since both approaches will currently work on the 
             Godaddy.com Unix server, I am using the html approach, 
             since the site is currently on a Windows server; 
             if I move it to the Unix server, the site will continue 
             to work, but could be adapted to php in the above manner;
             (see 03Jul06 update below);
    30May06: continued development
    01May06: continued development
    01Jun06: continued development
    02Jun06: continued development 
             (Frank and Margaret Mitchell's 67th anniversary [1939]
             (today we sold Mother's house at 555 Clairidge Drive,
             (Boiling Springs, SC 29316);
    07Jun06: added format_reading_pane() function to reduce margins of
             article;
    15Jun06: modified format_reading_pane() function to include the 
             position of the page header;
    03Jul06: site has been transferred to a Unix server leased from godaddy.com;
             the domain is an alias of gratidao.net
    26Apr07: completed last of several updates involving the addition of a 'Comments'
             button to menu03, along with several related functions which have been added
             to the bottom of the function list;
    09Feb08: in previous weeks had inserted an abstract link adjacent to title on index page of each volume;
             inserted in this script the actual abstracts;
             new funtions include:
             mm_Abstracts(src,obj) - contains the abstract div (with text);
             close_boxes() - closes the abstract box and the shadow box behind it;
             show_name(obj,mode) - displays the abstractors full name on mouseover;
    17Feb08: moved abstracts--array and functions--to abstracts.js in MM scripts folder
             the script is inserted in each file by a call in this file to document.write
    13Dec09: added code for linking to separate MM page for earlier issues (prior to 1957)
  functions: index_init()
             display_article_init()
             print_page()
             display_intro(page)
             display_index_init()
             build_select_menu()
             set_cursor(obj)
             authors_init()
             series_init()
             set_page_style()
             set_menu(menu)
             go_here(where)
             format_buttons()
             load_menu()
             get_number_index()
             get_article()
             get_year(year)
             get_month(num)
             format_reading_pane()
             goto_comments()
			 check_for_comments
			 comment_alert
			 goto_comments
			 notify_parent_onclose
             open_link(link)
             toolTips(mode,src,obj,wide) 
****************************************************************************/
//alert("new: init.js");

document.write("<script src='../MissionMessenger/scripts/abstracts.js'></script>");

var Image0= new Image(131, 190);
Image0.src = "images/wck2.gif";
var Image1= new Image(462, 63);
Image1.src = "images/wcktitle.gif";

var testing = 0; //1;// 0;
var current_volume;
var current_number;
var current_year;
var direction = 1;
var rMargin;
var serverloc;
var close_flag;
var myWindow; //handle for pop-up window

if(location.href.indexOf("localhost") > -1)
  {
    serverloc = "local";
  }
else
  {
    serverloc = "remote";
  }

var background_color = "#206060"//"#060860";//"#222474";
var border_color = "#73ADAC";//"#6266AC";
var foreground_color = "#FFFFFF";

//alert(location.pathname);
var segs = location.pathname.split('/'); 
//alert(segs.length);

if(serverloc == "remote")
  {
	if(segs.length == 2)
	{
		var thePath = "";
	}
	if(segs.length == 3)
	{
		var thePath = "../";
	}
	if(segs.length == 4)
	{
		var thePath = "../../";
	}
  }
else
  {
	if(segs.length == 3)
	{
		var thePath = "";
	}
	if(segs.length == 4)
	{
		var thePath = "../";
	}
	if(segs.length == 5)
	{
		var thePath = "../../";
	}
  }

document.write("<style>");

document.write(".thisLink {margin-left:45;");
document.write("			  font-family:arial;");
document.write("			  font-size:8pt;");
document.write("			  text-decoration:none;");
document.write("			  color:"+foreground_color+";");
document.write("			  font-weight:bold;");
document.write("			  cursor:hand;");
document.write("			  font-variant:small-caps;");
//document.write("			  letter-spacing: 0.05em; ");
document.write("           }");
document.write("hr         {");
document.write("			  color:"+border_color+";");
document.write("           }");
document.write("p.single {margin-bottom:-24;}");

/*removed .abstract style to missionmessenger/scripts/abstracts.js */

document.write("</style>");

var menu01 = "";
menu01 += "<p align='center' style='margin-top: 0; margin-left: 10; margin-top: 5;margin-bottom: -24;'><b>";
menu01 += "<font face='Times New Roman' size='6'>";
menu01 += "<span style='letter-spacing: 7;'>";
menu01 += "<a style='color:white;text-decoration:none;cursor:hand;' href='"+thePath+"index.htm' target='_self'>UNITY";
menu01 += "</a></span></font></b></p>";

menu01 += "<p align='center' style='margin-left: 6; margin-bottom: -16'>";
menu01 += "<font face='Times New Roman' size='4'><span style='letter-spacing: 0'>";
menu01 += "<a style='color:white;text-decoration:none;cursor:hand;' href='"+thePath+"index.htm'  target='_top'>";
menu01 += "IN DIVERSITY"; 
menu01 += "</a></span></font>";
menu01 += "</p>";
menu01 += "<p align='center' style='margin-left: -4; margin-bottom: -40'>&nbsp;";
if(serverloc = "remote")
  {
    menu01 += "<img src='"+thePath+"images/wck2.gif' alt='wck2.gif (9608 bytes)' width='131' height='190'>";
  }
else
  {
    menu01 += "<img src='"+thePath+"images/"+Image0.src+"'>";
    alert(menu01);
  }
menu01 += "</p>";
menu01 += "<p align='center' style='color:white;font-size:9pt; margin-top: 0; margin-bottom: -21'>W. Carl Ketcherside";
menu01 += "</p>";
menu01 += "<p align='center' style='margin-bottom: 30'><font face='Arial' size='1' color='#FFFFFF'>&nbsp;(1908-1989)</font>";
menu01 += "</p>";

menu01 += "<a class='thisLink' href='"+thePath+"welcome.htm' target='_self'>";
menu01 += "• Home";
menu01 += "</a><p style='margin-bottom: -16;'>";
menu01 += "<p style='margin-bottom: -16;margin-top: -5'>";

menu01 += "<a class='thisLink' href='"+thePath+"about.htm' target='_self'>";
menu01 += "• About this site"; 
menu01 += "</a><p style='margin-bottom: -16;'>";

menu01 += "<a class='thisLink' href='"+thePath+"wck_about.htm' target='_self'>";
menu01 += "• About the Author&nbsp;&nbsp;&nbsp;<!--span style='color:red;background:yellow;font-size:7pt;font-family:Arial'><i>New!</i></span--> "; 
menu01 += "</a><p style='margin-bottom: -16'>";

menu01 += "<a class='thisLink' href='"+thePath+"permiso.htm' target='_self'>";
menu01 += "• Permission"; 
menu01 += "</a></p><p style='margin-bottom: -16'>";

menu01 += "<a class='thisLink' href='"+thePath+"MissionMessenger/index.htm' target='_self'>";
menu01 += "• Mission Messenger&nbsp;&nbsp;&nbsp;<!--span style='color:red;background:yellow;font-size:7pt;font-family:Arial'><i>New!</i></span-->"; 
menu01 += "</a></p><p style='margin-bottom: -16'>";

menu01 += "<a class='thisLink' href='"+thePath+"articles.htm' target='_self'>";
menu01 += "• Other Articles"; 
menu01 += "</a></p><p style='margin-bottom: -16'>";

menu01 += "<a class='thisLink' href='"+thePath+"Books/index.htm' target='_self'>";
menu01 += "• Books Online&nbsp;&nbsp;&nbsp;<!--span style='color:red;background:yellow;font-size:7pt;font-family:Arial'><i>New!</i></span-->"; 
//menu01 += "</a>&nbsp;&nbsp;<span style='color:#C0FFFF;font-size:7pt;font-family:arial'>10/25/08</span></p><p style='margin-bottom: -16'>";
menu01 += "</a><p style='margin-bottom: -16'>";

menu01 += "<a class='thisLink' href='"+thePath+"Books/printed.htm' target='_self'>";
menu01 += "• Books in Print"; 
menu01 += "</a><p style='margin-bottom: -16'>";

menu01 += "<a class='thisLink' href='"+thePath+"eBooks.htm' target='_self'>";
menu01 += "• Kindle eBooks&nbsp;&nbsp;&nbsp;<span style='color:blue;background:yellow;font-size:7pt;font-family:Arial'><i>Updated</i></span>"; 
menu01 += "</a><p style='margin-bottom: -16'>";

menu01 += "<a class='thisLink' href='"+thePath+"photoalbum/photos.htm' target='_self'>";
menu01 += "• Photo Album"; 
menu01 += "</a><p style='margin-bottom: -16'>";

menu01 += "<a class='thisLink' href='"+thePath+"AudioFiles/audio.htm' target='_self'>";
menu01 += "• Audio Files";
menu01 += "</a><p style='margin-bottom: -16'>";

menu01 += "<a class='thisLink' href='"+thePath+"AudioFiles/video_links.htm' target='_self'>";
menu01 += "• Video Files";
menu01 += "</a><p style='margin-bottom: -16'>";

menu01 += "<a class='thisLink' href='"+thePath+"comments/comments_get.php' target='_self'>";
menu01 += "• Visitor Comments"; 
menu01 += "</a><p style='margin-bottom: -16'>";

menu01 += "<a class='thisLink' href='"+thePath+"search/search.php' target='_self'>";
menu01 += "• Search This Site"; 
menu01 += "</a></p>"; //&nbsp;&nbsp;<span style='color:yellow;font-style:italic;font-weight:bold;font-size:9pt'>New!</span>";
//menu01 += "<p style='margin-bottom: -16'>";
menu01 += "</a><p style='margin-bottom: -1'>";

menu01 += "<a class='thisLink' href='"+thePath+"contact_us.htm' target='_self'>";
menu01 += "• Contact Us"; 
//menu01 += "</a><p style='margin-bottom: -1'>";
menu01 += "</a><p/>";

//menu01 += "<a class='thisLink' href='"+thePath+"welcome.htm' target='_self'>";
//menu01 += "• Home";
//menu01 += "</a><p/>";

/*
var menu02 = "";
menu02 += "<html><head>";
menu02 += "</head><body>";
menu02 += "<p align='center' style='font-weight:bold;color:white'>RESTORATION<br>REVIEW</p>";
menu02 += "<p align='center'><input type='button' value='Home' onclick='go_here(1)'></p>";
menu02 += "<p align='center'><input type='button' value='Volume Index' onclick='go_here(2)'></p>";
menu02 += "<p align='center'><input type='button' value='Author Index' onclick='go_here(4)'></p>";
menu02 += "<p align='center'><input type='button' value='Search Articles' onclick='go_here(7)'></p>";
menu02 += "<p>&nbsp;</p><p align='center'><input type='button' value='Garrett: Works' onclick='go_here(6)'></p>";
menu02 += "</body></html>";

var menu03 = "";
if(testing == 1)
  {
    menu03 += "<p align='center' style='font-weight:bold;color:white'><span style='cursor:hand;' onclick='goto_comments()'>RESTORATION</span><br>REVIEW</p>";
  }
else
  {
    menu03 += "<p align='center' style='font-weight:bold;color:white'>RESTORATION<br>REVIEW</p>";
  }
menu03 += "<p align='center'><input type='button' value='Home' id='homeBtn' onclick='go_here(1)'></p>";
menu03 += "<p align='center'><input type='button' value='Volume Index' id='volIndexBtn' onclick='go_here(2)'></p>";
menu03 += "<p align='center'><input type='button' value='Number Index' id='numIndexBtn' onclick='get_number_index()'></p>";
menu03 += "<p align='center'><input type='button' value='Author Index' onclick='go_here(4)'></p>";
menu03 += "<p align='center'><input type='button' value='Text Width' onclick='format_reading_pane()'></p>";
menu03 += "<p align='center'><input type='button' value='Print Article' onclick='print_page()'></p>";
if(testing == 0)
  {
    menu03 += "<p align='center'><input type='button' id='commentsBtn' value='Comments' onclick='goto_comments()'> <span id='cCount' style='color:yellow'></span></p>";
  }
menu03 += "<p align='center'><input type='button' value='Search Articles' onclick='go_here(7)'></p>";
menu03 += "<p>&nbsp;</p>"
menu03 += "<p align='center'><input type='button' value='Garrett: Works' id='worksBtn' onclick='go_here(6)'></p>";
*/
//new
var vmenu = "";
//vmenu += "<option value='01_"+get_year(1)+"'>Volume 01, "+get_year(1)+"</option>"; //1959
//<SELECT id=Select1 size=12 name=volume_index onclick=go_btnExec()> 
vmenu += "<select size='1' id='vmenu' onchange='load_menu()'>";
vmenu += "<option>Select Volume Number</option>";
vmenu += "<OPTION value=19_1957/mm19_idx.htm>Volume 19, 1957</OPTION>"; 
vmenu += "<OPTION value=20_1958/mm20_idx.htm>Volume 20, 1958</OPTION>"; 
vmenu += "<OPTION value=21_1959/mm21_idx.htm>Volume 21, 1959</OPTION>"; 
vmenu += "<OPTION value=22_1960/mm22_idx.htm>Volume 22, 1960</OPTION>"; 
vmenu += "<OPTION value=23_1961/mm23_idx.htm>Volume 23, 1961</OPTION>"; 
vmenu += "<OPTION value=24_1962/mm24_idx.htm>Volume 24, 1962</OPTION>"; 
vmenu += "<OPTION value=25_1963/mm25_idx.htm>Volume 25, 1963</OPTION>"; 
vmenu += "<OPTION value=26_1964/mm26_idx.htm>Volume 26, 1964</OPTION>"; 
vmenu += "<OPTION value=27_1965/mm27_idx.htm>Volume 27, 1965</OPTION>"; 
vmenu += "<OPTION value=28_1966/mm28_idx.htm>Volume 28, 1966</OPTION>"; 
vmenu += "<OPTION value=29_1967/mm29_idx.htm>Volume 29, 1967</OPTION>"; 
vmenu += "<OPTION value=30_1968/mm30_idx.htm>Volume 30, 1968</OPTION>"; 
vmenu += "<OPTION value=31_1969/mm31_idx.htm>Volume 31, 1969</OPTION>"; 
vmenu += "<OPTION value=32_1970/mm32_idx.htm>Volume 32, 1970</OPTION>"; 
vmenu += "<OPTION value=33_1971/mm33_idx.htm>Volume 33, 1971</OPTION>"; 
vmenu += "<OPTION value=34_1972/mm34_idx.htm>Volume 34, 1972</OPTION>"; 
vmenu += "<OPTION value=35_1973/mm35_idx.htm>Volume 35, 1973</OPTION>"; 
vmenu += "<OPTION value=36_1974/mm36_idx.htm>Volume 36, 1974</OPTION>"; 
vmenu += "<OPTION value=37_1975/mm37_idx.htm>Volume 37, 1975</OPTION>"; 
//vmenu += "<OPTION value=authors.htm>Authors</OPTION>"; //commented out on 18May10
vmenu += "</SELECT>"; 

var imenu = "";
imenu += "<select size='13' id='imenu' onchange='get_number_index()'>";
imenu += "<option style='color:green'>Select Issue Number</option>";
imenu += "<option value='1'>Number 1</option>";
imenu += "<option value='2'>Number 2</option>";
imenu += "<option value='3'>Number 3</option>";
imenu += "<option value='4'>Number 4</option>";
imenu += "<option value='5'>Number 5</option>";
imenu += "<option value='6'>Number 6</option>";
imenu += "<option value='7'>Number 7</option>";
imenu += "<option value='8'>Number 8</option>";
imenu += "<option value='9'>Number 9</option>";
imenu += "<option value='10'>Number 10</option>";
imenu += "<option value='11'>Number 11</option>";
imenu += "<option value='12'>Number 12</option>";
imenu += "</select>";

var imenuB = ""; //for volumes 1 through 5
imenuB += "<select size='5' id='imenu' onchange='get_number_index()'>";
imenuB += "<option style='color:green'>Select Issue Number</option>";
imenuB += "<option value='1'>Number 1</option>";
imenuB += "<option value='2'>Number 2</option>";
imenuB += "<option value='3'>Number 3</option>";
imenuB += "<option value='4'>Number 4</option>";
imenuB += "</select>";

//////////FUNCTIONS////////////

//new 16Sep07
function page_init()
{
//document.body.style.display = "none";

  if(document.all.vol_num)
    {
      document.all.vol_num.style.display = "none";
    }
  set_page_style();
  set_menu(menu01);

  hRules = document.getElementsByTagName("hr");
  for(i=0; i<hRules.length; i++)
    {
      hRules[i].style.color = border_color;
    }
  document.all.filler_L.style.height = "30px"; //lower sidebar menu

  var str = window.location.href
  if(str.indexOf("authors.htm") >= 0)
    {
      var aLinks = document.all.main_R.getElementsByTagName("a");
      for(i=0; i<aLinks.length; i++)
        {
          //parse link to get article;
          tmp = aLinks[i].href;
          aFile = tmp.substr(tmp.length-12, tmp.length);
          aFolder = aFile.substr(0,7);

          current_volume = aFile.substr(2,2);
          current_number = parseInt(aFile.substr(5,2),10);
          current_year = get_year(current_volume);
          str = "article.htm?"+aFolder+"/"+aFile+"&"+current_volume+"&"+current_number+"&"+current_year;
          aLinks[i].href = str;
        }
    }

  //if search results page, check links for Books; add "inside" to the URL
  //so the page will load the UID sidebar menu;
  if(location.pathname.indexOf("search.php") >= 0)
    {
      search_URL = location.href;
      myDivs = document.getElementsByTagName("div");
      for(i=0; i<myDivs.length; i++)
        {
          if(myDivs[i].className == "result_title")   //this is the line that contains the link
            {
              myLink = myDivs[i].getElementsByTagName("a");
              if(myLink[0].href.indexOf("/Books") >= 0)
                {
                  myLink[0].href += "?mode=inside&width=95%&caller="+escape(search_URL);
                }
            }
        }
    }

  if(location.pathname.indexOf("welcome.htm") >= 0)
    {
      document.all.wcktitle.innerHTML = "<img border='0' src='"+Image1.src+"'>";  // width='462' height='63'>"
    }

//setTimeout("document.body.style.display = 'block'",150);
//document.body.style.display = "block";

}

function index_init()
{
  if(document.all.vol_num)
    {
      document.all.vol_num.style.display = "none";
    }
  set_page_style();
  set_menu(menu01);

  //added on 18May10 for linking to separate MM page for earlier issues
  MMMmenu = "<span style='color:blue;'>Mission Messenger 1940-1956</span>";
  MMMbutton = "<input name='mmmbuttn' style='cursor:hand;color:white;background-color:#8080FF;height:21px;width:165px;' type='button' value='Go to Index' onclick=\"location='../MMM/'\">&nbsp;&nbsp;<i style='font-style:italics;color:red;font-weight:bold;background-color: #FFFF00'>New!</i>";
//  MMMbutton = "<span name='mmmbuttn' style='text-align:center;border:1 solid #8080FF;cursor:hand;height:20px;width:165px;font-family:arial;font-size:10pt' onclick=\"location='../MMM/'\">Go to Index</span>";

  MMmenu = "<span style='color:blue;'>Mission Messenger 1957-1975</span>";


  //document.all.mmenu.innerHTML = vmenu; //commented out on 18May10

  //added on 18May10 for linking to separate MM page for earlier issues
  document.all.mmenu.innerHTML = MMMmenu+"&nbsp;&nbsp;&nbsp;&nbsp;"+MMMbutton+"<br><br>"+MMmenu+"&nbsp;&nbsp;&nbsp;&nbsp;"+vmenu;


//  format_buttons(); //in menu01.js
  //script in the head portion of index.htm checks query_string;
  //if volume was passed to index.htm, then load volume menu
  if(pos >= 0)
    {
      load_menu();
    }
  //new 22Apr07
  //return the results to display_visitor_count();
  if(serverloc == "remote")
    {
      ;//makeRequest(('http://www.leroygarrett.org/restorationreview/rr_visitor_counter.php'),9);
    }
  hRules = document.getElementsByTagName("hr");
  for(i=0; i<hRules.length; i++)
    {
      hRules[i].style.color = border_color;
    }

  document.all.filler_L.style.height = "30px";
}


function display_visitor_count(count)
{
  count = parseInt(count);
  document.all.visitor_count.innerText = count;
}

function display_article_init()
{
  set_page_style()
  set_menu(menu01)
  clientSideInclude('includeone', include_page);

  //myParas = document.all.rightDiv.getElementsByTagName("p");
  var myLinks = document.all.rightDiv.getElementsByTagName("a");

  if(srch_flag)
    {
      create_navbar(srch_flag);
    }
  else
    {
      create_navbar();
    }

  tTables = document.getElementsByTagName("table");
  for(j=0; j<tTables.length; j++)
    {
	  var oTBody = tTables[j].tBodies[0];
	  var Rows = oTBody.rows;
	  tmpW = document.all.main_R.clientWidth;
	  for(i=0; i<Rows.length; i++)
		{
		  if(Rows[i].cells[0].innerText.indexOf("[Page") >= 0)
			{
			Rows[i].cells[0].width = tmpW; 
			}
		}
      if(tTables[j].border == "1") 
        {
          tTables[j].style.borderCollapse = "collapse";
          tTables[j].style.borderColor = border_color; //"#CCCCCC"; //background_color;//"red";
        }
    }

  oImages = document.getElementsByTagName("img");
  for(i=0; i<oImages.length; i++)
    {
      if(oImages[i].src.indexOf("mserv.gif") >= 0)
        {
          sSrc = oImages[i].src.substr(oImages[i].src.lastIndexOf('/')+1,oImages[i].src.length);
          //oImages[i].outerHTML = "<IMG SRC='"+sSrc+"' >";
          oImages[i].src = sSrc;
        }
    }
  document.all.filler_L.style.height = "30px"; //lower sidebar menu when MM loads
}

function check_for_comments()
{
  var str = window.location.href
  pos = str.indexOf("?");
  articleID  = str.slice(pos+1);
  //return the results to comment_alert()
  makeRequest(('comments/get_list.php?'+articleID),1);
}

//receives input from list_Comments(http_request) in ajax.js
function comment_alert(input)
{
  total_comments = input.split("<tr").length-1;
  if(testing == 0)
  {

    if(total_comments > 1 || total_comments < 1)
      {
        document.all.commentsBtn.value = total_comments+" Comments";
        document.all.commentsBtn.style.color = "#008000";
      }        
    else
      {
        document.all.commentsBtn.value = total_comments+" Comment";
        document.all.commentsBtn.style.color = "#008000";
      }        
  }
}

function print_page()
{
  //<link rel=alternate media=print href="printversion.doc">
  var str01 = window.location.href
  var myWindow = window.open(include_page+"?"+str01);
}

function display_intro(page)
{
  var str01 = window.location.href
  var myWindow = window.open(page+"?"+str01);
}

function display_index_init()
{
  set_page_style()
  set_menu(menu01)
  //include_page value is set inside display_index.htm and article.htm
  clientSideInclude('includeone', include_page); 

  //only works after new page has been loaded
  //put all links into an array
  myParas = document.all.rightDiv.getElementsByTagName("p");
  var myLinks = myParas[1].getElementsByTagName("a");
 
  for(i=0; i<myLinks.length; i++)
    {
      //parse link to get article;
      tmp = myLinks[i].href;
      artName = tmp.substr(tmp.length-12, tmp.length);
      if(current_number < 10)
        {
          var folder = "mm"+current_volume+"_0"+current_number;
        }
      else
        {
          var folder = "mm"+current_volume+"_"+current_number;
        }
      //  mm19_02/mm19_02a.htm&amp;19&amp;2&amp;1999";
      myLinks[i].href = "article.htm?"+folder+"/"+artName+"&"+current_volume+"&"+current_number+"&"+current_year;
    }

//taken from prev init.js for all of UID
  tPath = location.pathname;
  //<IMG SRC="mm19_01.gif" WIDTH="581" HEIGHT="23"><P ALIGN=Left>
  if(tPath.indexOf("MissionMessenger") >= 0)
    {
      oImages = document.getElementsByTagName("img");
      for(i=0; i<oImages.length; i++)
        {
          var YesNo = /mm\d\d_\d\d/.test(oImages[i].src);
          if(YesNo == true)
            {
              //create horizontal lines with volumne and number info--to replace image file;
              //oWidth = document.all.rightDiv.clientWidth; //not set
              oWidth = "100%";
              newHTML = "<table cellspacing=0 cellpadding=0 height='auto' style='border-top:1 solid black;border-bottom:1 solid black;width:"+oWidth+"'><tr height='auto'>";
              newHTML += "<td height='18' width='33%' align='left'><span id='sLeft' style='font-family:Times New Roman;font-size:8pt;'></span></td>";
              newHTML += "<td height='18' width='34%' align='center'><span id='sMiddle' style='font-family:Times New Roman;font-size:8pt'></span></td>";
              newHTML += "<td height='18' width='33%' align='right'><span id='sRight' style='font-family:Times New Roman;font-size:8pt'></span></td>";
              newHTML += "</tr></table>";
              oImages[i].outerHTML = newHTML;

              tFile = tPath.substr(tPath.length-9,5);
              tVol = current_volume; 
              tNum = current_number;
              tMonth = get_month(parseInt(tNum,10));
              tYear =  current_year;
              document.all.sLeft.innerText = "VOLUME "+tVol;
              document.all.sMiddle.innerText = "ST. LOUIS, MISSOURI, "+tMonth+", "+tYear;
              document.all.sRight.innerText = "NUMBER "+parseInt(tNum,10);
            }
        }
      oImages = document.getElementsByTagName("img");
      for(i=0; i<oImages.length; i++)
        {
          if(oImages[i].src.indexOf("mm_logo.gif") >= 0)
            {
              sSrc = oImages[i].src.substr(oImages[i].src.lastIndexOf('/')+1,oImages[i].src.length);
              oImages[i].outerHTML = "<IMG SRC='"+sSrc+"' width='320' height='142' style='margin-top:-22'>";
            }
        }
    }

  //remove links from bottom of index
  var pLinks = document.getElementsByTagName("a");
  for(i=0; i<pLinks.length; i++)
    {
      if(pLinks[i].innerText == "Back to Volume Index")
        {
          str =  "<a style='font-family:arial;font-size:10pt;text-decoration:none' href='index.htm?"+current_volume+"'>Number Index to Volume "+current_volume+"</a>&nbsp;&nbsp;•&nbsp;&nbsp;"
          str += "<a style='font-family:arial;font-size:10pt;text-decoration:none' href='index.htm'>Volume Index</a>&nbsp;&nbsp;"
          pLinks[i].outerHTML = str;
        }

//          pLinks[i].style.display = "none";

      if(pLinks[i].innerText == "Ketcherside E-Text Project")
          pLinks[i].style.display = "none";
      if(pLinks[i].innerText == "Main Index")
          pLinks[i].style.display = "none";
    }
}

function set_cursor(obj)
{
  obj.style.cursor = "hand";
}

function search_init()
{
  set_page_style()
  set_menu(menu01)
  format_buttons(); //in menu01.js
  document.all.main_R.style.fontFamily = "Arial";
  document.all.main_R.style.fontSize = "10pt";
  hWin = document.documentElement.clientHeight;
  document.all.main_R.style.height = hWin-30;
}

function authors_init()
{
  set_page_style()
  set_menu(menu01)
  format_buttons(); //in menu01.js
  document.all.main_R.style.fontFamily = "Arial";
  document.all.main_R.style.fontSize = "10pt";
}

function series_init()
{
  set_page_style()
  set_menu(menu01)
  format_buttons(); //in menu01.js
  document.all.main_R.style.fontFamily = "Arial";
  document.all.main_R.style.fontSize = "10pt";
}

function set_page_style()
{
  document.all.filler_R.style.borderLeft = "3 solid "+border_color;//#6B9CE7";
  document.all.main_R.style.borderLeft = "3 solid "+border_color;//#6B9CE7";

  document.all.main_L.style.backgroundColor = background_color; //"#6B9CE7";
  document.all.filler_L.style.backgroundColor = background_color;//"#6B9CE7";

  document.all.main_R.style.paddingLeft = "30px";
  document.all.main_R.style.paddingRight = "40px";
  document.all.main_R.style.textAlign = "justify";

  links = document.getElementsByTagName("a")
  //added 01Aug07 for authors
  for(i=0; i<links.length; i++)
    {
      links[i].style.color = "blue";
    }
}

function set_menu(menu)
{
  document.all.the_menu.innerHTML = menu;
}

function go_here(where)
{
  var link = new Array();  
  link[1] = "http://www.leroygarrett.org/restorationreview/"; //13Sep07
  link[2] = "index.htm?"+current_volume;
  //link[3] = ""; //number index
  
  link[4] = "http://www.leroygarrett.org/restorationreview/authors.htm";
  link[5] = "series.htm";
  link[6] = "http://www.leroygarrett.org";
  link[7] = "http://www.leroygarrett.org/restorationreview/search/search.php";
  link[8] = "http://www.leroygarrett.org/restorationreview/article.htm?rr02_02/rr02_02c.htm&02&2&1960";
  location.href = link[where];
}

function format_buttons()
{
  var tmp = document.all.filler_L.offsetWidth;
  oWidth = tmp * .70; //19Apr07
  //var myButtons = document.getElementsByTagName("input"); //changed for search page
  myelem = document.all.main_L;
  var myButtons = myelem.getElementsByTagName("input");
  for(i=0; i<myButtons.length; i++)
    {
      myButtons[i].style.width = oWidth;//"100";
      myButtons[i].style.height = "21";
      myButtons[i].style.fontFamily = "arial";
      myButtons[i].style.fontSize = "9pt";
      myButtons[i].style.color = "blue";
      //myButtons[i].style.background = "url(images/stucco2.gif)";
    }
}

function load_menu()
{
  //if(document.all.vmenu.value > 0)
  if(document.all.vmenu.value.length > 0)
    {
      //set volume if called from volume menu
      //else, use global value
      var str = document.all.vmenu.value;
      pos = str.indexOf("_");
//modified for MM
      current_volume = str.substr(0,pos);
      current_year = get_year(current_volume);
    }
//  document.all.mmenu.innerHTML = imenu; //following conditional inserted on July 16, 2007

  if(current_volume < 6)
    {
      document.all.mmenu.innerHTML = imenuB;
    }
  else
    {
      document.all.mmenu.innerHTML = imenu;
    }

  document.all.vol_num.innerText = "Volume "+current_volume;
  document.all.vol_num.style.color = "black";//"#6B9CE7";
  document.all.vol_num.style.fontWeight = "bold";
  document.all.vol_num.style.display = "block";
}

function get_number_index()
{
 //see notes in the comment section at top of file
 if(document.all.imenu)
   {
     current_number = document.all.imenu.value;
   }
 //current_volume and current_number need to be passed to 
 //display_index, and there the global variables can be reset
 //if PHP, there are other options for setting these variables
 if(current_number < 10)
   {
     var folder = "mm"+current_volume+"_0"+current_number;
   }
 else
   {
     var folder = "mm"+current_volume+"_"+current_number;
   }

 if(current_year == null)
   {
     current_year = get_year(current_volume);
   }
if(arguments.length > 0) //added on 01Aug07 for author index
  {
    //parse arguments[0] to extract current_volume, current_number
    //rr01_04/rr01_04c.htm
    str1 = arguments[0];
    str2 = str1.substr(2,5); //01_04
    strs = str2.split("_");
    current_volume = strs[0];
    current_number = parseInt(strs[1]);
    current_year = get_year(current_volume);
    location.href = "article.htm?"+arguments[0]+"&"+current_volume+"&"+current_number+"&"+current_year;
  }
else
  {
    location.href = "display_index.htm?"+folder+"/"+folder+".htm&"+current_volume+"&"+current_number+"&"+current_year;
  }
}

//called when user clicks on article link in number menu
function get_article()
{
  var article = arguments[0];//document.all.amenu.value;
  pos = article.lastIndexOf("/");
  article = article.substr(pos+1, article.length);
  if(current_number < 10)
    {
      var folder = "mm"+current_volume+"_0"+current_number;
    }
  else
    {
      var folder = "mm"+current_volume+"_"+current_number;
    }
  location.href = "article.htm?"+folder+"/"+article+"&"+current_volume+"&"+current_number+"&"+current_year;
}

//new function 16Sep07
function get_index()
{
  var article = arguments[0];//document.all.amenu.value;
  pos = article.lastIndexOf("/");
  article = article.substr(pos+1, article.length);
  if(current_number < 10)
    {
      var folder = "mm"+current_volume+"_0"+current_number;
    }
  else
    {
      var folder = "mm"+current_volume+"_"+current_number;
    }
  location.href = "display_index.htm?"+folder+"/"+article+"&"+current_volume+"&"+current_number+"&"+current_year;
}



function get_year(curr_vol) //year)
{
  var BASE = 1957; //1958;
  var year = eval(BASE + parseInt(curr_vol,10)-19); //year)); 
  return year;
}

function get_month(num)
{
  var months = new Array("","January","February","March","April","May","June","July","August","September","October","November","December");
  return months[num];
} 

function format_reading_pane()
{ 
  
  //alert(rMargin);//document.all.header.style.left);
  if(rMargin == null)
    {
      rMargin = document.all.header.style.left;
    }
  
  var myDivs = document.getElementsByTagName("div");
  if(myDivs[0])
    {
      var readLeft = myDivs[0].style.marginLeft;
      var readRight = myDivs[0].style.marginRight;
      if(direction == 1)
        {
		  if(readLeft == "20px" && readRight == "0px")
		    {
			  readLeft = "50px";
			  readRight = "50px";
			}
 		  else if(readLeft == "50px" && readRight == "50px")
			{
			  readLeft = "100px";
			  readRight = "100px";
			}
		  else if(readLeft == "100px" && readRight == "100px")
		 	{
			  readLeft = "150px";
			  readRight = "150px";
			}			
		  else if(readLeft == "150px" && readRight == "150px")
		 	{
			  readLeft = "200px";
			  readRight = "200px";
			  direction = 0;
			}			
		}
	  else
	    {
		  if(readLeft == "200px" && readRight == "200px")
		 	{
			  readLeft = "150px";
			  readRight = "150px";
			}			
		  else if(readLeft == "150px" && readRight == "150px")
		 	{
			  readLeft = "100px";
			  readRight = "100px";
			}			
		  else if(readLeft == "100px" && readRight == "100px")
		 	{
		 	  readLeft = "50px";
		 	  readRight = "50px";
		 	}
		  else if(readLeft == "50px" && readRight == "50px")
		 	{
		 	  readLeft = "20px";
		 	  readRight = "0px";
		 	  direction = 1;
		 	}
	    }
	  
      myDivs[0].style.marginLeft = readLeft;
      myDivs[0].style.marginRight = readRight;
      var headerNew = parseInt(rMargin) - parseInt(readRight);

      var header = document.getElementById("header"); //added 15Jun06
      header.style.left = headerNew;
    }
}

function goto_comments()
{
  //dimensions of objects in parent window
  menubar_width = document.all.filler_L.offsetWidth;
  main_width = document.all.filler_R.offsetWidth;

  //dimensions of parent window
  if(window.innerWidth) //non MSIE
    {
      var parentWidth = window.innerWidth;
      var parentHeight = window.innerHeight;
    }
  else
    {
      var parentWidth = document.body.offsetWidth;
      var parentHeight = document.body.offsetHeight;
    }

  var popUp_width = main_width - (.004 * main_width); //parentWidth - menubar_width;
  var popUp_height = parentHeight-89;

  //the absolute position of the parent window on the monitor screen
  if(window.screenY) //non MSIE
    {
      var winTop = window.screenY;
      var winLeft = window.screenX;
    }
  else
    {
      var winTop = window.screenTop; 
      var winLeft = window.screenLeft;
    }
 
  var popUp_posLeft = (menubar_width+winLeft)+4;
  var popUp_posTop = winTop+2;

  var str01 = window.location.href; 
  myWindow = window.open ("comments/comments.php?"+str01,"myWindow","location=1,resizable=1,width="+popUp_width+",height="+popUp_height+",left="+popUp_posLeft+",top="+popUp_posTop);
  if(testing == 0)
    {
      document.all.commentsBtn.disabled = true;
      document.all.homeBtn.disabled = true;
      document.all.volIndexBtn.disabled = true;
      document.all.numIndexBtn.disabled = true;
      document.all.worksBtn.disabled = true;
    }
}

function notify_parent_onclose(num)
{
  //in any event, enable the commentsBtn button
	if(testing == 0)
	{
	if(document.all.commentsBtn.disabled = true)
		{
		document.all.commentsBtn.disabled = false;
		document.all.homeBtn.disabled = false;
		document.all.volIndexBtn.disabled = false;
		document.all.numIndexBtn.disabled = false;
		document.all.worksBtn.disabled = false;
		}

	if(close_flag == 1)
		{
		close_flag = 0;
		}
	if(num == 1) //Exit button clicked
		{
		close_flag = 1; //set flag so the next time the funciton is called the commentsBtn button will be enabled
		//close window to trigger onbeforeclose 
		//which calls this function with an argument of 0
		myWindow.close(); 
		}
	}  
}

/////////////////////// FUNCTIONS COPIED FROM THE ORIGINAL INIT.JS FILE IN /SCRIPTS //////////////////

//copied from garrett.js
function encode_email(toWhom,address)
{
  if(address == "siteadmin")
    {
      address = "siteadmin@unity-in-diversity.org";
    }
  if(address == "editor")
    {
      address = "nateatch@charter.net"
    }

txt =   ''
var theAddress = address.replace(/@/, "@@");
address = address.replace(/@@/, "@");
for (j=0; j<address.length; j++)
  {
    txt += '%' + Dec2Hex(address.charCodeAt(j))
  }

var tmpStr = "id='get_mail'";

txt = '<a '+tmpStr+' href = \"mailto:' + txt + '\?subject=Unity In Diversity Web site">' + toWhom + '<' + '/a>'

return txt;
}

//following function found at: http://www.computerhope.com/j13.htm
function Dec2Hex (Dec) 
{
  var hexChars = "0123456789ABCDEF";
  var a = Dec % 16;
  var b = (Dec - a)/16;
  hex = "" + hexChars.charAt(b) + hexChars.charAt(a);
  return hex;
}

//this function is called by each Book page
//this function will be called by a MM page only if it is accessed directly as from search results page
function init()
{
//start new: 25Jan08
var loc = location.href;
var tmp = loc.split("?");
if(tmp[1] == 'P')
{
  alert(tmp[0]);
}
else
{
//stop new: 25Jan08
var YesNo = /mm\d\d_\d\d\w/.test(location.href); //is it a Mission Messenger page?
if(YesNo == true)
  {
    //prevents the page from displaying while being formatted under article.htm
    document.body.style.display = "none"; 

    var tmp = window.location.href
    aFile = tmp.substr(tmp.length-12, tmp.length);
    aFolder = aFile.substr(0,7);
    current_volume = aFile.substr(2,2);
    current_number = parseInt(aFile.substr(5,2),10);
    current_year = get_year(current_volume);
//    str = "http://localhost/uid/missionmessenger/article.htm?"+aFolder+"/"+aFile+"&"+current_volume+"&"+current_number+"&"+current_year;

    if(location.href.indexOf("Inetpub") >= 0) //server is local
      {
        str = "http://localhost/uid/missionmessenger/article.htm?"+aFolder+"/"+aFile+"&"+current_volume+"&"+current_number+"&"+current_year;
      }
    else
      {
        srch_flag = "1";
        str = "../article.htm?"+aFolder+"/"+aFile+"&"+current_volume+"&"+current_number+"&"+current_year+"&"+srch_flag;
      }    
    location.href = str;
  }
else
  {
   document.all.leftDiv.style.position = "absolute";
   document.all.leftDiv.style.left = "0";
   document.all.leftDiv.style.top = "0";
   document.all.leftDiv.style.width = "204"; //was 165
   document.all.leftDiv.style.height = "100%";
   document.all.leftDiv.style.borderRight = "3 solid "+border_color;
   document.all.leftDiv.style.backgroundColor = background_color;//"#00CC99";

   document.all.leftDiv.innerHTML = menu01; //mMenu;
   document.all.leftDiv.style.paddingTop = "35px";

   document.all.rightDiv.style.position = "absolute";
   document.all.rightDiv.style.left = document.all.leftDiv.style.width; //"200";
   document.all.rightDiv.style.top = "0";
   document.all.rightDiv.style.width = "80%"; //"700"; //"90%";
  
   //rHeight = document.all.rightDiv.offsetHeight;
   //lHeight = document.all.leftDiv.offsetHeight;
   rHeight = document.all.rightDiv.clientHeight;
   lHeight = document.all.leftDiv.clientHeight;

   //adjust leftDiv height if needed
   if(rHeight > lHeight)
     {
       document.all.leftDiv.style.height = rHeight;
     }

   //needed to put a line break between images (missing in html)
   var images = document.getElementsByTagName("img");
   for(i=0; i<images.length; i++)
     {
       if(images[i].src.indexOf("mm_logo.gif") >= 0)
         {
           var tmpHTML = images[i].outerHTML;
           images[i].outerHTML = tmpHTML+"<br>";
         }
      
     }

  var rules = document.getElementsByTagName("HR");

  //add space to left margin of rightDiv
  document.all.rightDiv.style.marginLeft = "10";
  document.all.rightDiv.style.marginTop = "15";

  document.body.style.overflowX = "hidden";


  //http://localhost/uid/MissionMessenger/vol19_1957/mm19_idx.html
  tPath = location.pathname;
  if(tPath.indexOf("MissionMessenger") >= 0 && ( tPath.indexOf("_idx.html") >= 0 || tPath.indexOf("index.html") >= 0) )
    {
      document.all.rightDiv.style.marginLeft = "-23";
    }
  var tTables = document.getElementsByTagName("table");
  for(j=0; j<tTables.length; j++)
    {
	  var oTBody = tTables[j].tBodies[0];
	  var colDataRows = oTBody.rows;
	  tmpW = document.all.rightDiv.clientWidth;
	  for(i=0; i<colDataRows.length; i++)
	    {
          if(colDataRows[i].cells[0].innerText.indexOf("[Page") >= 0)
            {
              colDataRows[i].cells[0].width = tmpW; //"100%";
            }
        }
    }

  //<IMG SRC="mm19_01.gif" WIDTH="581" HEIGHT="23"><P ALIGN=Left>
  if(tPath.indexOf("MissionMessenger") >= 0)
    {
      oImages = document.getElementsByTagName("img");
      for(i=0; i<oImages.length; i++)
      {
        var YesNo = /mm\d\d_\d\d/.test(oImages[i].src);
        if(YesNo == true)
          {
            //create horizontal lines with volumne and number info--to replace image file;
            oWidth = document.all.rightDiv.clientWidth;
            newHTML = "<table cellspacing=0 cellpadding=0 height='auto' style='border-top:1 solid black;border-bottom:1 solid black;' width="+oWidth+"><tr height='auto'>";
            newHTML += "<td height='18' width='33%' align='left'><span id='sLeft' style='font-family:Times New Roman;font-size:8pt;'></span></td>";
            newHTML += "<td height='18' width='34%' align='center'><span id='sMiddle' style='font-family:Times New Roman;font-size:8pt'></span></td>";
            newHTML += "<td height='18' width='33%' align='right'><span id='sRight' style='font-family:Times New Roman;font-size:8pt'></span></td>";
            newHTML += "</tr></table>";
            oImages[i].outerHTML = newHTML;

            //mm21_02.htm
            tFile = tPath.substr(tPath.length-9,5);
            tTmp = tFile.split('_');
            tVol = tTmp[0];
            tNum = tTmp[1];
            tMonth = get_month(parseInt(tNum,10));
            tYear =  get_year(tVol);
            document.all.sLeft.innerText = "VOLUME "+tVol;
            document.all.sMiddle.innerText = "ST. LOUIS, MISSOURI, "+tMonth+", "+tYear;
            document.all.sRight.innerText = "NUMBER "+parseInt(tNum,10);
          }
      }
    }

  var YesNo = /mm\d\d_\d\d\w/.test(location.href);
  if(YesNo == true)
    {
      create_navbar();
    }
  }
}
}
//////////////////END OF INIT FUNCTION

//function added on 26Jan08
//pops-up a box with information, much like a tooltip;
//must embed a span around the text and insert a span tag
//*****at the bottom of the file (see MM_19_7d.htm as example);
//the following should be inserted before the link text:
//<span style="cursor:default;border-bottom:1 dotted blue" onmouseover="toolTips(1,'19_07d_0',this,'215px')" onmouseout="toolTips(0,'',this,'')">...</span>
//the following should be inserted just before the final </div> tag at the end of the file:
//<span id="msg" style="display:none;">
function toolTips(mode,src,obj,wide) 
{
  popup = document.all.msg; //document.all[num];
  var msg = new Array();
  msg['19_07d_0'] = "Isa. 45:28 in the original was in error.";
  msg['20_02m_0'] = "Misspelled 'Milinial' in the original";
  msg['20_06a_0'] = "This word missing in the original";
  msg['20_06b_1'] = "Misspelled in the original";
  msg['23_11c_0'] = "\"The unveiled face . . .\" in the original";
  msg['24_03a_0'] = "\"The Present Crisis\" by James Russell Lowell. \"Written in 1845 . . . It was . . . provoked by the war with Mexico, which Lowell and others, including Abraham Lincoln, thought would increase the power of the Southern states and therefore would enlarge the are in which slavery was accepted as normal. . . . It was published in Lowell's <i>Poems</i> (1849). Later in the century, W. Garrett Horder, a great advocate of American hymns, took Lowell's lines and made a hymn of them by shortening the lines and selecting heavily from them. (Excerpt from <i>An Annotated Anthology of Hymns</i> by J. R. Watson)\"";
  msg['24_06b_0'] = "\"Here and Now\" by Bliss Carman (1861-1929)";
  msg['27_08a_0'] = "Appears in error in the original as Acts 19:24, 25.";
  msg['35_03e_0'] = "Error in the original text.";

  if(mode > 0)
    {
      yLoc = obj.offsetTop;
      xLoc = obj.offsetLeft;
      popup.style.position = "absolute";
      popup.style.top = yLoc+5; 
      popup.style.left = xLoc+45;
      popup.style.color = "#000080";
      popup.style.fontFamily = "arial";
      popup.style.width = wide;
      popup.style.fontSize = "9pt";
      popup.style.border = "1px solid blue";
      popup.style.padding = "5px";
      popup.style.backgroundColor = "#FFFFCC"
      popup.innerHTML = msg[src];
      popup.style.display = "block";
    }
   else
    {
      popup.style.display = "none";
    }
}

function open_link(link)
{
  window.open(link);
}


/*
//this function is experimental:
//used to capture a segment of text (in this case scripture references) and 
//embed an onmouseover event handler
//it was called from display_article_init()
function format_refs()
{
  //embeds a <span> tag used to display a message onmouseover
  includeone.innerHTML = includeone.innerHTML+"<span id='msg' style='display:none;'></span>"
  
  var myHTML = includeone.innerHTML;
  flag = 0;
  var myParens = new Array();
  var count = 0;
  var start_pos = 0;  
  var posFirst, posLast;

  while(flag == 0) 
  {
    posFirst = myHTML.indexOf("(",start_pos); //sets search start at zero
    if(posFirst >= 0)
      {
          //find the first string; parse it and rewrite it if qualifies
          posLast = myHTML.indexOf(")",start_pos);
          start_pos = posLast+120; //addes the length of html chars
          var subStr = myHTML.substr(posFirst, (posLast-posFirst+1));
          var myHTML = includeone.innerHTML
          myHTML = myHTML.replace(subStr,"<span style='cursor:default;border-bottom:1 dotted gray' onmouseover=\"toolTips(1,'19_07d_0',this,'215px')\">"+subStr+"</span>");
          includeone.innerHTML = myHTML;
      }
    else
      {
        flag = 1;
      }
   }  
}
*/
