var lstProdType = new Array();

// add new brochure info
function Newbrochure(brochure, descr, pdfName, printdate, docSize) {
	this.brochure = brochure;
	this.descr = descr;
	this.pdfName = pdfName;
	this.printdate = printdate;
	this.docSize = docSize;
	this.lstOther = new Array();
	return (this);
}

// add new brochure info
function Addbrochure(brochure, descr, pdfName, printdate, docSize) {
	var t=0, l=0;
	t = lstProdType.length - 1;
	l = lstProdType[t].lstBrochure.length;	
	lstProdType[t].lstBrochure[l] = new Newbrochure(brochure, descr, pdfName, printdate, docSize);
}

// add new Product Type
function ProdType(prodName) {
	this.prodName = prodName;
	this.lstBrochure = 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);
}

//Jpg, Eps, Doc
function Addother(type, name, size, fileName, other1, other2) {
	var t=0, l=0, k=0;
	t = lstProdType.length - 1;
	l = lstProdType[t].lstBrochure.length - 1;	
	k = lstProdType[t].lstBrochure[l].lstOther.length;
	lstProdType[t].lstBrochure[l].lstOther[k] = new Newother(type, name, size, fileName, other1, other2);
}

function Newother(type, name, size, fileName, other1, other2){
	this.type = type;
	this.name = name;
	this.size = size;
	this.fileName = fileName;
	this.other1 = other1;
	this.other2 = other2;}
