// JavaScript Document

function addtextboxes()
{
  var check = document.getElementById('otro1Box');
  if (!(check))
  {
    var ni = document.getElementById('otroBox');
    var divIdName = "otro"+1+"Box";
    var newdiv = document.createElement('div');
    newdiv.setAttribute("id",divIdName);
    newdiv.innerHTML = "<input type=\"hidden\" name=\"request\" value=\"Yes!\" />";
    newdiv.innerHTML += "<input type=\"button\" onclick=\"rmTextboxes(\'"+divIdName+"\')\" value=\"No, I don\'t want to join.\" /><br /><br />";
    newdiv.innerHTML += "Please provide a password as well as your e-mail.<br />";
    newdiv.innerHTML += "Password <input type=\"password\" name=\"password\" /><br />";
    newdiv.innerHTML += "Retype Password <input type=\"password\" name=\"repassword\" /><hr /><br /><br />";
    ni.appendChild(newdiv);
  }
}

function rmTextboxes(divNum)
{
  var d = document.getElementById('otroBox');
  var olddiv = document.getElementById(divNum);
  d.removeChild(olddiv);
  document.getElementById('requestcheckbox').checked=false;
}

function addtextboxes2()
{
  var check2 = document.getElementById('otro1Box2');
  if (!(check2))
  {
    var ni = document.getElementById('otroBox2');
    var divIdName = "otro"+1+"Box2";
    var newdiv = document.createElement('div');
    newdiv.setAttribute("id",divIdName);
    newdiv.innerHTML = "<input type=\"hidden\" name=\"comment\" value=\"Yes!\" />";
    newdiv.innerHTML += "<hr /><input type=\"button\" onclick=\"rmTextboxes2(\'"+divIdName+"\')\" value=\"No, I don\'t want to comment.\" /><br /><br />";
    newdiv.innerHTML += "Provide your comment or question below.<br />";
    newdiv.innerHTML += "<textarea name=\"commenttext\" id=\"commenttext\"></textarea><br /><br />";
    ni.appendChild(newdiv);
  }
}

function rmTextboxes2(divNum)
{
  var d = document.getElementById('otroBox2');
  var olddiv = document.getElementById(divNum);
  d.removeChild(olddiv);
  document.getElementById('commentcheckbox').checked=false;
}






