var arrInput = new Array(0);
  var arrInputValue = new Array(0);

function addInput() {
  arrInput.push(arrInput.length);
  arrInputValue.push("");
  display();
}

function display() {
  document.getElementById('parah').innerHTML="";
  for (intI=2;intI<arrInput.length;intI++) {
    document.getElementById('parah').innerHTML+=createInput(arrInput[intI], arrInputValue[intI]);
  }
}

function saveValue(intId,strValue) {
  arrInputValue[intId]=strValue;
}  

function createInput(id,value) {
	for (i=2;i<4;i++) {
	return "<table><tr class='prod_table'><td class='prod_td_no'>"+ id +".</td><td class='prod_td_qty'><input name='rfq_qty"+ id +"' id='rfq_qty"+ id +"' type='text' onChange='javascript:saveValue("+ id +",this.value)' class='part_panel_txtbox1' maxlength='4'></td><td class='prod_td_part'><input name='rfq_part"+ id +"' id='rfq_part"+ id +"' type='text' onChange='javascript:saveValue("+ id +",this.value)' class='part_panel_txtbox2' maxlength='20'></td><td class='prod_td_desc'><input name='rfq_desc"+ id +"' id='rfq_desc"+ id +"' type='text' onChange='javascript:saveValue("+ id +",this.value)' class='part_panel_txtbox3' maxlength='100'></td></tr></table>";
	}
}

function deleteInput() {
  if (arrInput.length > 0) { 
     arrInput.pop(); 
     arrInputValue.pop();
  }
  display(); 
}
