function jump_menu_go(obj)
{
	var value = obj.options[obj.selectedIndex].value;
	if(value != "" && value != 0)
	{
		window.location.href = "?p=" + value;
	}
}

function jump_menu_update_product(obj)
{
	var product_obj = document.getElementById("jump_menu_product");
	
	var category_id = obj.options[obj.selectedIndex].value;
	
	// Remove all values from jump_menu_product
	for(var i=product_obj.options.length; i>=0; i--) product_obj.options[i] = null;
	
	// Add default choice
	var default_option = document.createElement("option");
	default_option.setAttribute("value", "");
	var default_text = document.createTextNode("-- Select Product --");
	default_option.appendChild(default_text);
	product_obj.appendChild(default_option);
	
	product_obj.disabled = false;
	
	// Add the rest of the choices
	for(var i=0; i<products.length; i++)
	{
		if(products[i][0] == category_id)
		{
			var cur_option = document.createElement("option");
			cur_option.setAttribute("value", products[i][1]);			
			var txt = document.createTextNode(products[i][2]);
			cur_option.appendChild(txt);
			product_obj.appendChild(cur_option);
		}
	}
}