public static void usePokeBall(Item item)
	{
		if (!hasItem(item))
		{
			errorWindow.addMessage(" You don't have this item in your inventory to use! ");
			errorWindow.toFront();
			return;
		}

		if (!Battle.BATTLE_TYPE.equals("WILD"))
		{
			errorWindow.addMessage("You can't steal a Trainer's Pokemon!");
			errorWindow.toFront();
			itemCancel = false;

			if (!itemCancel)
			decrementItem(item);

			return;
		}
		else
		{
			throwingPokeBall=true;
			Battle.b1.addText("You throw a "+item.type+"!");
			Battle.pokeball=item;

			itemCancel=false;

			if (!itemCancel)
			decrementItem(item);
		}
	}