// JavaScript Document
function SearchDesigner(varCategory)
{

	obj = document.getElementById("Brands");
	strobj = obj[obj.selectedIndex].text;

	// Keep Category if it is in here
	if (varCategory == null) varCategory = "";
	strCategory = varCategory;

	// escape html chars
	strobj = escape(strobj);
	strCategory = escape(strCategory);
	
	strUrl = "";
	if (strCategory != "Show%20All")  strUrl = "&category=" + strCategory;

	window.location.href="http://www.ccsboutique.com.au/shop/index.php?designer=" + strobj + strUrl;
}

function SearchCategory(bDir)
{
	obj = document.getElementById("Category");
	strCategory = obj[obj.selectedIndex].text;

	// Keep designer search if it is in here
	obj = document.getElementById("Brands");
	strBrands = obj[obj.selectedIndex].text;
	
	// escape html chars
	strBrands = escape(strBrands);
	strCategory = escape(strCategory);
	
	strDesigner = "";
	if (strBrands != "Show%20All") strDesigner = "&designer=" + strBrands;
	
	window.location.href="http://www.ccsboutique.com.au/shop/index.php?category=" + strCategory + strDesigner;
}


