function MM_setTextOfLayer(objName,x,newText) { //v4.01
if ((obj=MM_findObj(objName))!=null) with (obj)
	if (document.layers) {document.write(unescape(newText)); document.close();}
	else innerHTML = unescape(newText);
}
function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}



function SubCategoryList()
{
	this.length		= 0;
	this.Add		= _SBadd;
	
}



function SubCategoryRecord(category_id, subcategory_id, name)
{
	this.category_id = category_id;
	this.subcategory_id = subcategory_id;
	this.name = name;
}

function _SBadd(category_id, subcategory_id, name)
{
	var temp = new SubCategoryRecord(category_id, subcategory_id, name);
	
	this.length++;
	this[this.length-1] = temp;
}




function ColorList()
{
	this.length				= 0;
	this.addColor			= _CLadd;
	this.count				= _CLcount;
	
}

function _CLcount()
{
	return this.length;
}


function _CLadd(color_id, thumb, sizes)
{
	var temp = new ColorRow(color_id, thumb, sizes);
	
	this.length++;
	
	this[this.length-1] = temp;
}


function ColorRow(color_id, thumb, sizes)
{
	this.color_id = color_id;
	this.thumb = thumb;
	this.sizes = sizes;
}


function set_ddlLogoSubCategory(oscl, LogoCategory_id)
{


	var i = 0;
	var optioncount = 0;
	
	
	for(i = document.logoSelect.LogoTypesSubCategory.options.length; i >= 0; i--) {
		document.logoSelect.LogoTypesSubCategory[i] = null;
	}
	
	for(i = 0; i < oscl.length; i++) {
		
		if(oscl[i].category_id == LogoCategory_id)	{
			document.logoSelect.LogoTypesSubCategory[optioncount] = new Option(oscl[i].name);
			document.logoSelect.LogoTypesSubCategory[optioncount].value = oscl[i].subcategory_id; 
			optioncount++;
		}
	}
	
		
}


