function set_href(whichone)
{
	var strID = "a" + whichone;
	var optionID = document.getElementById(strID);
	optionID.target = "right";
	
	switch (whichone)
	{
		case 1:
			optionID.href = "RK_SampleRecipes_Frame.htm";
			optionID.target = "_top";
			break;
		case 2:
			optionID.href = "RK_Categories_Frame.htm";
			optionID.target = "_top";
			break;
		case 3:
			optionID.href = "ShopList_Frame.htm";
			optionID.target = "_top";
			break;
		case 4:
			optionID.href = "RK_OrderForm.htm";
			break;
		case 5:
			optionID.href = "ModServings.asp?OldServe=6&NewServe=6";
			break;
		case 6:
			optionID.href = "Artichoke_Jalapeno_Dip.htm";
			break;
		case 7:
			optionID.href = "Farfalle.htm";
			break;
		case 8:
			optionID.href = "TomatoSoup.htm";
			break;
		case 9:
			optionID.href = "ShopList.htm";
			break;
		case 10:
			optionID.href = "CreateItems.htm";
			break;

	}
}

function nonselect(whichone)
{
	document.getElementById(whichone).removeAttribute("href");
	document.getElementById(whichone).removeAttribute("target");
}

function SetQty(howmany)
{
//	var bup = document.getElementById("btnup");
//	var bdn = document.getElementById("btndn");
	var cdqty = document.getElementById("tdqty");

//	var cont = "false";

	var newqty = Number(cdqty.innerHTML);

	var totqty = Number(howmany) + newqty;

	if(totqty>=2&&totqty<=10)
	{
//alert("totqty = "+totqty);
//		var whichframe = document.getElementById("right");
		parent.right.location = "ModServings.asp?NewServe=" + totqty;
//		if(bup.src.search("btnupdis.jpg") > -1)
//			cont = "false";
//		else
//			cont = "true";
	}
//	else
//	{
//		if(bdn.src.search("btndndis.jpg") > -1)
//			cont = "false";
//		else
//			cont = "true";
//	}
//	alert("cont = " + cont);
//	if(cont=="true")
//	{
//		if(totqty <= 10 && newqty >= 2)
//			var whichframe = document.getElementById("right");
//			whichframe.URL = ("ModServings.asp?NewServe=" & newqty);
//		cdqty.innerHTML = totqty;
//	}
//	if(totqty > 2)
//	{
//		bdn.disabled = false;
//		bdn.src = "../images/btndn.jpg";
//		bdn.title = "Decrease by two";
//		if(totqty < 10)
//		{
//			bup.disabled = false;
//			bup.src = "../images/btnup.jpg";
//			bup.title = "Increase by two";
//		}
//		else
//		{
//			bup.disabled = true;
//			bup.src = "../images/btnupdis.jpg";
//			bup.title = "";
//		}
//	}
//	else
//	{
//		bup.disabled = false;
//		bdn.disabled = true;
//		bdn.src = "../images/btndndis.jpg";
//		bdn.title = "";
//	}
}

