function draw_table()
{
  var pwstr = ""
  var pwstr = document.getElementById('table_link').value;
  var TableOut1 = ""
  var TableOut2 = ""
  var TableOut1a = ""
  var TableOut1u = ""
  var TableOut2a = ""

  var i, get_div, id_there;
  var specific_id = ""
  for(i=0; (get_div = document.getElementsByTagName('div')[i]); i++) 
  {                              
    if(get_div.getAttribute('id') != -1) 
    {
      id_there = get_div.getAttribute('id');
      if(id_there == 'main_content_contacts')
      {  
        specific_id = id_there    
        //alert('specific id = ' + specific_id);
      }
    }
  }

  TableOutE = "</table>";

  TableOut1 += "<table style='width:100%;'><tr><td class='titledetail whitebg' style='text-align:center;'>CONTACTS</td></tr>";
  TableOut1a = TableOut1 + "<tr><td width='100%'>&nbsp;</td></tr>" + TableOutE;
  TableOut1u = TableOut1 + "<tr><td>Nope! Value=" + pwstr + " is invalid.</td></tr>" + TableOutE;

  TableOut2 += "<table class='white1' style='width:100%;'>";
  TableOut2 += "<tr>";
  TableOut2 += "<td class='titledetail whitebg' style='text-align:center;' width='100%'>FACEBOOK DECENDANTS CONNECTED TO ANN REBER</td>";
  TableOut2 += "</tr>";
  TableOut2 += "<tr>";
  TableOut2 += "<td class='titledetail whitebg'>";
  TableOut2 += "<a href='http://www.facebook.com/group.php?v=wall&gid=45203957686' target='_blank'>FaceBook - I am a Reber</a><br>";
  TableOut2 += "<a href='http://www.facebook.com/profile.php?id=100000112545918#!' target='_blank'>FaceBook - Michael Westcott Brown</a><br>";
  TableOut2 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.facebook.com/profile.php?id=1479780333' target='_blank'>FaceBoook - Hilary Odom Brown</a><br>";
  TableOut2 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.facebook.com/profile.php?id=15001998' target='_blank'>FaceBoook - Sam Brown</a><br>";
  TableOut2 += "<a href='http://www.facebook.com/profile.php?id=1698109563' target='_blank'>FaceBoook - Minta Brown</a><br>";
  TableOut2 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.facebook.com/harper.bauer' target='_blank'>FaceBoook - Harper Bauer</a><br>";
  TableOut2 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.facebook.com/profile.php?id=100000112545918#!/hayleybauer' target='_blank'>FaceBoook - Hayley St Charles Bauer</a><br>";
  TableOut2 += "</td>";
  TableOut2 += "</tr>";
  TableOut2 += "<tr>";
  TableOut2 += "<td class='titledetail whitebg' style='text-align:center;'>FACEBOOK DECENDANTS CONNECTED TO MILDRED MILLER SONNANSTINE</td>";
  TableOut2 += "</tr>";
  TableOut2 += "<tr>";
  TableOut2 += "<td class='titledetail whitebg'>";
  TableOut2 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.facebook.com/profile.php?id=1267745261' target='_blank'>FaceBook - Megan Stechschulte</a><br>";
  TableOut2 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.facebook.com/profile.php?id=1300830754' target='_blank'>FaceBook - Andrea Dooley</a><br>";
  TableOut2 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.facebook.com/profile.php?id=1064246208' target='_blank'>FaceBook - Melissa Dooley (Melissa Dieter)</a><br>";
  TableOut2 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.facebook.com/profile.php?id=1448147161' target='_blank'>FaceBook - Sean P Dooley (friend of Melissa Dooley)</a><br>";
  TableOut2 += "<a href='http://www.facebook.com/profile.php?id=1145058195' target='_blank'>FaceBook - Tom Sonnanstine III (b.November 25)</a><br>";
  TableOut2 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.facebook.com/tom.sonnanstine' target='_blank'>FaceBook - Tom Sonnanstine (id=1223331207)</a><br>";
  TableOut2 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.facebook.com/profile.php?id=1589087389' target='_blank'>FaceBook - Debbie Sonnanstine</a><br>";
  TableOut2 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.facebook.com/profile.php?id=1668880672' target='_blank'>FaceBook - Ann Schertzer (Ohio, but may be wrong Ann)</a><br>";
  TableOut2 += "</td>";
  TableOut2 += "</tr>";
  TableOut2 += "</table>";

  TableOut2a += TableOut2 += TableOutE;

  if(document.form6.cb1.checked && pwstr==15063139) 
  { 
    if(specific_id == 'main_content_contacts')
    {
      document.getElementById("main_content_contacts").innerHTML = TableOut2a;
    }
  }
  else if(document.form6.cb1.checked && pwstr!=15063139) 
  { 
    if(specific_id == 'main_content_contacts')
    {
      document.getElementById("main_content_contacts").innerHTML = TableOut1u;
    }
  }
  else 
  { 
    if(specific_id == 'main_content_contacts')
    {
      document.getElementById("main_content_contacts").innerHTML = TableOut1a;
    }
  }

}
