ShowSubCategory = function(id)
{
	parts 			= id.split("_");
	sub_category 	= parts[0];
	category 		= parts[1];
	divname			= "SubCategory_"+sub_category+"_Cat_"+category;
		
	sub_categories = document.getElementsByClassName('Cat_'+category);
	
	for(i=0;i<sub_categories.length;i++)
	{
		if(!$(sub_categories[i].id).className.match('hidden'))
		{
			$(sub_categories[i].id).className = 'Cat_'+category+' hidden';
		}
	}
	
	$(divname).className = 'Cat_'+category;
	
	$("Select_"+category).blur();

}

GoToPartner = function(url)
{
	
	var	strsearc = url.search(/www.zazzle.com/);

	if(strsearc != -1)
	{
		content = 	
				"If you are an Organizer and would like to personalize a product for others to purchase, please do the following:\n\n" +
				"\t 1. Personalize the item by entering your text in the\n" +
				"\t     fields and/or uploading a photo or graphic\n" +
				"\t     image.\n" +
				"\t 2. Email a link for your personalized product to\n" +
				"\t     your group and yourself.\n" +
				"\t 3. \"Add to Cart\" to make a purchase yourself.";
	}
	else
	{
		content = 	"You will now be taken to our partner to personalize and order your selected item.\n\n" ;					
	}
		var answer = confirm(content);
	//alert(answer);
	if (answer===true){
		window.open(url);
	}
	
	return false;

	//new window(url);
}