var arrInput = new Array(1);
  var arrInputValue = new Array(1);
function reducelen()
{
	//alert("les/");
	arrInput.length=arrInput.length-1;
	display();
}

function addInput() {
	
  arrInput.push(arrInput.length);
  arrInputValue.push("");
  display();
}

function display() {
  document.getElementById('parah').innerHTML="";
  for (intI=1;intI<arrInput.length;intI++) {
    document.getElementById('parah').innerHTML+=createInput(arrInput[intI], arrInputValue[intI]);
  }
  //alert
  if(arrInput.length)
  {
	  
  document.getElementById('divless').style.display="block";
  }
  if(arrInput.length<=1)
  {
	  
  document.getElementById('divless').style.display="none";
  }
}

function saveValue(intId,strValue) 
{ 
  arrInputValue[intId]=strValue;
}   

function createInput(id,value) {
  return "<br><input type='text' name='author["+ id +"]' id='test"+ id +"' onChange='javascript:saveValue("+ id +",this.value)' value='"+ value +"' class=textboxauthor>&nbsp;;&nbsp;<input type='text' name='author1["+ id +"]' id='test1"+ id +"' onChange='javascript:saveValue("+ id +",this.value)' value='"+ value +"' class=textboxauthor>&nbsp;;&nbsp;<input type='text' name='author2["+ id +"]' id='test2"+ id +"' onChange='javascript:saveValue("+ id +",this.value)' value='"+ value +"' class=textboxauthor><br>";
  
}

function deleteInput() {
  if (arrInput.length > 0) { 
     arrInput.pop(); 
     arrInputValue.pop();
  }
  display(); 
}
