var arrInput = new Array(0);
  var arrInputValue = new Array(0);

function addInput() {
  //arrInput.push(createInput(arrInput.length));
  arrInput.push(arrInput.length);
  //arrInputValue.push(arrInputValue.length);
  arrInputValue.push("");
  display();
}

function display() {
  document.getElementById('parah').innerHTML="";
  for (intI=0;intI<arrInput.length;intI++) {
    document.getElementById('parah').innerHTML+=createInput(arrInput[intI], arrInputValue[intI]);
  }
}

function saveValue(intId,strValue) {
  arrInputValue[intId]=strValue;
}  

function createInput(id,value) {
  return "<input type='text' name='test"+"[" +id+"]"+"' id='test"+"["+id+"]"+"' onChange='javascript:saveValue("+ id +",this.value)' value='"+ value +"'  style='width:142px;height: 17px;background-color: #FFFFFF; border: 1px #225ba2 solid; font-family: Arial, Helvetica, sans-serif; font-size:12px; font-weight: bold; margin-top:5px;'><br>";
}

function deleteInput() {
  if (arrInput.length > 0) { 
     arrInput.pop(); 
     arrInputValue.pop();
  }
  display(); 
}


