function writerow(name,url) {
  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    url = url.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
  }


  document.write("<LI><a href="+url+" mce_href="+url+"><FONT size=1>"+name+"</FONT></a></LI>");
}

function writerowTT(name,url) {
  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    url = url.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
  }


  document.write("<a href="+url+" mce_href="+url+">"+name+"</FONT></a></h2>");
}


function writerowQ(name,description,url) {
  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    url = url.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
  }

  document.write("<TR></TR>");
  document.write("<TR>");
  document.write("<TD><Font size=1><a href="+url+" mce_href="+url+" target=_blank>"+name+"</font></a></TD>");
  document.write("<TD><Font size=1>"+description+"</font></TD></TR>");
}

function writerowTR(name,description,url) {

  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    url = url.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
  }

  document.write("<TR></TR>");
  document.write("<TR>");
  document.write("<TD width=70><small><a href="+url+" mce_href="+url+" target=_blank>"+name+"</a></small></TD>");
  document.write("<TD width=630><small>"+description+"</small></TD></TR>");
}

function writerowDM(url,name) {
  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    url = url.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
  }


  document.write("<TR><TD><a href="+url+" mce_href="+url+"><FONT size=1>"+name+"</FONT></a></TD></TR>");
}

function writerow_unsec(name,url) {
  document.write("");
}

function writerow_unsecDM(url,name) {
  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    url = url.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
  }


  document.write("<TR><TD><FONT size=1>"+name+"</FONT></TD></TR>");
}

function writerow_unsec(name,url) {
  document.write("");
}


// This is used for the CCs
function writerowCC(date,agenda,adate,minutes,mdate,response,resdate)  {

  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    agenda = agenda.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    minutes = minutes.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    response = response.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
  }

  document.write("<TR><TD class=mceVisualAid class=mceVisualAid><P align=center>"+date+"</P></TD>");
  document.write("<TD class=mceVisualAid class=mceVisualAid><P align=center><UL><LI>"+agenda+"Agenda</a></LI>");
  document.write("<LI>"+minutes+"Minutes</a></LI>");
  document.write("<LI>"+response+"HTRI Response</a></LI></UL></P></TD></TR>");
      
}

function writerowGuest(cc,date,title,url,company) {

  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    url = url.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
  }

  document.write("<TR></TR>");
  document.write("<TR>");
  document.write("<TD width=169><small><em>"+cc+"</em></small></TD>");
  document.write("<TD width=100><small>"+date+"</small></TD>");
  document.write("<TD width=300><small><a href="+url+" mce_href="+url+">"+title+"</a></small></TD>");
  document.write("<TD width=200><small>"+company+"</small></TD></TR>");
}

function writerowTF11(date,agenda,minutes,presurl1,presname1,presurl2,presname2,presurl3,presname3,presurl4,presname4)  {

  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    agenda = agenda.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    minutes = minutes.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl1 = presurl1.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl2 = presurl2.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname2 = presname2.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl3 = presurl3.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname3 = presname3.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl4 = presurl4.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname4 = presname4.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
  }

  document.write("<TR><TD class=mceVisualAid valign=top>"+date+"</TD>");
  document.write("<TD class=mceVisualAid><UL><LI>"+agenda+"Agenda</a></LI>");
  document.write("<LI>"+minutes+"Minutes</a></LI>");
  document.write("<LI>Presentation Materials</LI><UL>");
  document.write(presurl1+"<I>"+presname1+"</I></a></LI>");
  document.write(presurl2+"<I>"+presname2+"</I></a></LI>");
  document.write(presurl3+"<I>"+presname3+"</I></a></LI>");
  document.write(presurl4+"<I>"+presname4+"</I></a></LI>");
  document.write("</UL></UL></TD></TR><TR><TD colspan=3><HR></TD></TR>");
      
}

function writerowTF3(date,agenda,minutes,response,presurl1,presname1,presurl2,presname2,presurl3,presname3,presurl4,presname4,presurl5,presname5)  {

  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    agenda = agenda.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    minutes = minutes.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    response = response.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl1 = presurl1.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl2 = presurl2.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname2 = presname2.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl3 = presurl3.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname3 = presname3.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl4 = presurl4.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname4 = presname4.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl5 = presurl5.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname5 = presname5.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
  }

  document.write("<TR><TD class=mceVisualAid valign=top>"+date+"</TD>");
  document.write("<TD class=mceVisualAid><UL><LI>"+agenda+"Agenda</a></LI>");
  document.write("<LI>"+minutes+"Minutes</a></LI>");
  document.write("<LI>"+response+"Response to Action Items</a></LI>");
  document.write("<LI>Presentation Materials</LI><UL>");
  document.write(presurl1+"<I>"+presname1+"</I></a></LI>");
  document.write(presurl2+"<I>"+presname2+"</I></a></LI>");
  document.write(presurl3+"<I>"+presname3+"</I></a></LI>");
  document.write(presurl4+"<I>"+presname4+"</I></a></LI>");
  document.write(presurl5+"<I>"+presname5+"</I></a></LI>");
  document.write("</UL></UL></TD></TR><TR><TD colspan=3><HR></TD></TR>");
}

function writerow_unsec2TF(date,agenda,minutes,response,presurl1,presname1,presurl2,presname2,presurl3,presname3,presurl4,presname4,presurl5,presname5)  {

  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    agenda = agenda.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    minutes = minutes.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    response = response.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl1 = presurl1.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presnamel1 = presname1.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl2 = presurl2.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname2 = presname2.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl3 = presurl3.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname3 = presname3.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl4 = presurl4.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname4 = presname4.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl5 = presurl5.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname5 = presname5.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
  }

  document.write("<TR><TD class=mceVisualAid valign=top>"+date+"</TD>");
  document.write("<TD class=mceVisualAid><UL><LI>Agenda</a></LI>");
  document.write("<LI>Minutes</a></LI>");
  document.write("<LI>Response to Action Items</a></LI>");
  document.write("<LI>Presentation Materials</LI><UL>");
  document.write("</UL></UL></TD></TR><TR><TD colspan=3><HR></TD></TR>");
}

function writerow_unsec2TF11(date,agenda,minutes,presurl1,presname1,presurl2,presname2,presurl3,presname3,presurl4,presname4)  {

  var initValueSeed = parseInt($('#initValueSeed').val());

  if(initValueSeed == 2)
  {
    agenda = agenda.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    minutes = minutes.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl1 = presurl1.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presnamel1 = presname1.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl2 = presurl2.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname2 = presname2.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl3 = presurl3.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname3 = presname3.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presurl4 = presurl4.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");
    presname4 = presname4.replace(".PDF", ".hdoc").replace(".pdf", ".hdoc");

  }

  document.write("<TR><TD class=mceVisualAid valign=top>"+date+"</TD>");
  document.write("<TD class=mceVisualAid><UL><LI>Agenda</a></LI>");
  document.write("<LI>Minutes</a></LI>");
  document.write("<LI>Presentation Materials</LI><UL>");
  document.write("</UL></UL></TD></TR><TR><TD colspan=3><HR></TD></TR>");
}



