var lstProdType = new Array();

// add new brochure info
function NewDetail(cell_01, cell_02, cell_03, cell_04, cell_05, cell_06, cell_07, cell_08, cell_09, cell_10, cell_11, cell_12, cell_13, cell_14, cell_15) {
	this.cell_01 = cell_01;
	this.cell_02 = cell_02;
	this.cell_03 = cell_03;
	this.cell_04 = cell_04;
	this.cell_05 = cell_05;
	this.cell_06 = cell_06;
	this.cell_07 = cell_07;
	this.cell_08 = cell_08;
	this.cell_09 = cell_09;
	this.cell_10 = cell_10;
	this.cell_11 = cell_11;
	this.cell_12 = cell_12;
	this.cell_13 = cell_13;
	this.cell_14 = cell_14;
	this.cell_15 = cell_15;
	return (this);
}


// add new brochure info
function AddDetail(cell_01, cell_02, cell_03, cell_04, cell_05, cell_06, cell_07, cell_08, cell_09, cell_10, cell_11, cell_12, cell_13, cell_14, cell_15) {
	var t=0, l=0;
	t = lstProdType.length - 1;
	l = lstProdType[t].lstDetail.length;	
	lstProdType[t].lstDetail[l] = new NewDetail(cell_01, cell_02, cell_03, cell_04, cell_05, cell_06, cell_07, cell_08, cell_09, cell_10, cell_11, cell_12, cell_13, cell_14, cell_15);
}

// add new Product Type
function ProdType(prodName) {
	this.prodName = prodName;
	this.lstDetail = new Array();
	return (this);
}

// Add new product type to the brochure list
function AddProd(prodName) {
	var t=0;
	t = lstProdType.length;
	lstProdType[t] = new ProdType(prodName);
}


