

 	var numberOfProducts = 0;

 	

 	function addProductOrder()

 	{



	  

	  

	  ++numberOfProducts;

	  

	  /*product name start*/

	  var td_productname = document.getElementById("productname");	  

	  var input_newproductname = document.createElement("input");

	  input_newproductname.setAttribute("name", "productname"+numberOfProducts);

	  input_newproductname.setAttribute("id", "productname"+numberOfProducts);	  

	  input_newproductname.setAttribute("type", "text");

	  //input_newproductname.setAttribute("class", "text_area");

	  input_newproductname.setAttribute("size", "30");

	  input_newproductname = td_productname.appendChild(input_newproductname); 		  

	  td_productname.appendChild( document.createElement("br"));  

	  /*product name end*/	  

	  

	  /*product code start*/

	  var td_productcode = document.getElementById("productcode");	  

	  var input_productcode = document.createElement("input");

	  input_productcode.setAttribute("name", "productcode"+numberOfProducts);

	  input_productcode.setAttribute("id", "productcode"+numberOfProducts);	  

	  input_productcode.setAttribute("type", "text");

	  //input_productcode.setAttribute("class", "text_area");

	  input_productcode.setAttribute("size", "10");

	  input_productcode = td_productcode.appendChild(input_productcode); 		  

	  td_productcode.appendChild( document.createElement("br"));  

	  /*product name end*/		  

	  

	  /*product quantity start*/

	  var td_productquantity = document.getElementById("productquantity");	  

	  var input_productquantity = document.createElement("input");

	  input_productquantity.setAttribute("name", "productquantity"+numberOfProducts);

	  input_productquantity.setAttribute("id", "productquantity"+numberOfProducts);	  

	  input_productquantity.setAttribute("type", "text");

	  //input_productquantity.setAttribute("class", "text_area");

	  input_productquantity.setAttribute("size", "5");

	  input_productquantity = td_productquantity.appendChild(input_productquantity); 		  

	  td_productquantity.appendChild( document.createElement("br"));  

	  /*product quantity end*/	

	  

	  /*product colour start*/

	  var td_productcolour = document.getElementById("productcolour");	  

	  var input_productcolour = document.createElement("input");

	  input_productcolour.setAttribute("name", "productcolour"+numberOfProducts);

	  input_productcolour.setAttribute("id", "productcolour"+numberOfProducts);	  

	  input_productcolour.setAttribute("type", "text");

	  //input_productcolour.setAttribute("class", "text_area");

	  input_productcolour.setAttribute("size", "5");

	  input_productcolour = td_productcolour.appendChild(input_productcolour); 		  

	  td_productcolour.appendChild( document.createElement("br"));  

	  /*product colour end*/

	  

	  /*product size start*/

	  var td_productsize = document.getElementById("productsize");	  

	  var input_productsize = document.createElement("input");

	  input_productsize.setAttribute("name", "productsize"+numberOfProducts);

	  input_productsize.setAttribute("id", "productsize"+numberOfProducts);	  

	  input_productsize.setAttribute("type", "text");

	  //input_productsize.setAttribute("class", "text_area");

	  input_productsize.setAttribute("size", "5");

	  input_productsize = td_productsize.appendChild(input_productsize); 		  

	  td_productsize.appendChild( document.createElement("br"));  

	  /*product size end*/

	  		  	  

	  var hiddenSort = ''; //document.frmQuote.sort;

	  hiddenSort.value = hiddenSort.value 

	  +",productname"+numberOfProducts

	  +",productcode"+numberOfProducts

	  +",productquantity"+numberOfProducts

	  +",productcolour"+numberOfProducts

	  +",productsize"+numberOfProducts;

	  

	} 	 	

