function buyItem(name, price, inid, sid, itd)
{
	var name;
	var price;
	var inid;
	var Ask = confirm("Really buy "+name+" for "+price+"?");
	if(Ask)
	{
		document.location.href = 'store.php?view='+sid+'&purchase='+itd+'&stamp='+inid+'';
	}
}

function buyItemUser(name, price, stamp, sid, itemsid)
{
	var name;
	var price;
	var inid;
	var Ask = confirm("Really buy "+name+" for "+price+"?");
	if(Ask)
	{
		document.location.href = 'usershops.php?shop='+sid+'&purchase='+itemsid+'&stamp='+stamp+'&';
	}
}

function makeSure(question,url)
{
	var question, url;
	var Ask = confirm(question);
	if(Ask)
		document.location.href = url;
	else
		return false;
}

function planMove(move)
{
	var Attack = document.getElementById("attack");
	var Skill = document.getElementById("skill");
	var Item = document.getElementById("item");
	var Flee = document.getElementById("flee");
	Attack.style.display = "none";
	Skill.style.display = "none";
	Item.style.display = "none";
	Flee.style.display = "none";
	var theDiv = document.getElementById(""+move+""); //The one we want to see
	theDiv.style.display = "block";
}