//Copyright 2006 James & Jenny Wan Web Design

var globalcounter=0;
function addRow()
{ 
  var i=3;
  if (globalcounter > 0)  { i = globalcounter }
  var tbody = document.getElementById("OtherInfoTable").tBodies[0]; 

  //Add three rows at a time
  for (var z=0;z < 3; z++) {
    var row = document.createElement("TR"); 
    //Cell 1
    var cell1 = document.createElement("TD");
    cell1.setAttribute("className","UserLeftColumnOther");
    cell1.innerHTML = "Friend's E-mail address (" + (i+1) + "):";
    //Cell 2
    var cell2 = document.createElement("TD"); 
    cell2.setAttribute("className","UserRightColumn");
    var inp2 = document.createElement("INPUT"); 
    inp2.setAttribute("type","text");
    inp2.setAttribute("name","FriendEmail" + i);
    inp2.setAttribute("size","40");

    cell2.appendChild(inp2);

    row.appendChild(cell1); 
    row.appendChild(cell2); 
    tbody.appendChild(row); 
    i++;
    globalcounter = i;
  }
}