function show_brands(category, logo_cnt)
{
	var str = "";

	for(var i = 1; i<=logo_cnt; i++)
	{
		if(i<10)
			str = "0"+i;
		else
			str = i+"";
		
		if(!js_in_array(str,arrLogos[category]))
		{			
			document.getElementById("logo_"+str).src = "/images/logos/"+page_img_nm+"_"+str+".gif";
		}
	}	
}

function reset_brands()
{
	var str = "";
	for(var i = 1; i<=logo_cnt; i++)
	{
		if(i<10)
			str = "0"+i;
		else
			str = i+"";
			
		document.getElementById("logo_"+str).src = "/images/logos/"+page_img_nm+"_on_"+str+".gif";
	}
}

function js_in_array(the_needle, the_haystack)
{
	if(the_haystack.length == 0)
	{
		return true;
	}
	var the_hay = the_haystack.toString();
	
	if(the_hay == '')
	{
		return false;
	}
	
	var the_pattern = new RegExp(the_needle, 'g');
	var matched = the_pattern.test(the_haystack);
	return matched;
}