function confirmSell (item)
{
	var qnt = prompt("How many of this item would you like to sell?", "0");
	if (qnt)
	{
		var numericExpression = /^[0-9]+$/;
		if ((!qnt.match(numericExpression)) || (qnt == 0))
		{
			alert("You can only submit numbers!");
			return false;
		} else {
			if (confirm ("Are you sure you want to sell "+qnt+" items?"))
			{
				var sellURL = document.getElementById(item).href;
				sellURL = sellURL+"&qnt="+qnt;
				document.getElementById(item).href=sellURL;
				return true;
			} else {
				return false;
			}
		}
	} else {
		return false;
	}
}

