Minecaft Item Prices

by Tgwizman

HTML

<div id="head">
Minecraft Item Value Calculator
</div>
<div id="foot">
By Tgwizman (Tyler Keohane)
</div>
<div id="wrapper">
    <div id="left">
        <select id="lo" class="o"></select><br>
        <input type="text" id="lv" class="v" value="1"/>
    </div>
    <div id="right">
        <select id="ro" class="o"></select><br>
        <input type="text" id="rv" class="v" value="1" readonly/>
    </div>
    <input type="button" class="calc" onclick="calcItems()" value="Generate Values"/>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="5V3WEGKE3K4C8">
    <input type="image" class="donate" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal">
    </form>
</div>
<div id="foot">
    Special thanks to Acteon on <a href="http://www.minecraftforum.net/user/838745-acteon/">the Minecraft Forums</a> for giving me a list of items/prices!
</div>

CSS

#wrapper {
    margin: 20px auto 0px auto;
    padding: 20px;
    width: 300px;
    height: 100px;
    background-color: #999;
}

#head{font-size:32px;font-weight:bold}

#head, #foot {
    margin: 20px auto 0px auto;
    width: 320px;
    text-align: center;
}

#left{float:left}
#right{float:right}

.calc {
    margin: 20px 100px;
}

.donate {
    margin: -15px 0 0 115px;
}

#lo, #ro {
    width: 105px;
}

.v {
    width: 100px;
    text-align: right;
}

JavaScript

var items = {
    "Tall Grass": 1,
    "Cobblestone": 1,
    "Cobblestone Slab": 1,
    "Dirt": 1,
    "Glass": 1,
    "Grass": 1,
    "Leaves": 1,
    "Mycelium": 1,
    "Netherrack": 1,
    "Sand": 1,
    "Snow": 1,
    "Stone": 1,
    "Stone Brick Stairs": 1,
    "Stone Bricks": 1,
    "Stone Slab": 1,
    "Stone Stairs": 1,
    "Button": 2,
    "Stone Presure Plate": 2,
    "Stick": 1,
    "Gravel": 4,
    "Nether Brick": 4,
    "Sandstone": 4,
    "Sandstone Slab": 4,
    "Lever": 5,
    "Cactus": 8,
    "Furnace": 8,
    "Vines": 8,
    "Wooden Planks": 8,
    "Wooden Slab": 8,
    "Torch": 9,
    "Fence": 12,
    "Wooden Stairs": 12,
    "Ladder": 14,
    "Flower": 16,
    "Lily Pad": 16,
    "Wooden Pressure Plate": 16,
    "Wheat": 24,
    "Trap Door": 24,
    "Charcoal": 32,
    "Crafting Table": 32,
    "Fence Gate": 32,
    "Mushroom Red": 32,
    "Mushroom Brown": 32,
    "Sapling": 32,
    "Wood": 32,
    "Sugar": 32,
    "Sugar Cane": 32,
    "Wool": 48,
    "Soul Sand": 49,
    "Chest": 64,
    "Obsidian": 64,
    "Redstone": 64,
    "Redstone Torch": 68,
    "Bread": 72,
    "Bone": 72,
    "Magma Crème": 887,
    "Iron Bars": 96,
    "Rail": 96,
    "Dispenser": 119,
    "Slimeball": 119,
    "Coal": 128,
    "Note Block": 128,
    "Spider Eye": 128,
    "Jack'o'Lantern": 144,
    "Melon (Block)": 144,
    "Pumpkin": 144,
    "Moss Stone": 145,
    "Gunpowder": 192,
    "Brick Block": 256,
    "Brick Slab": 256,
    "Clay Block": 256,
    "Detector Rail": 256,
    "Iron": 256,
    "Bookshelf": 336,
    "Brick Stairs": 348,
    "Piston": 348,
    "Sticky Piston": 372,
    "Cake": 384,
    "Glowstone Dust": 384,
    "Blaze Powder": 768,
    "Blaze Rod": 1536,
    "TNT": 964,
    "Ender Pearl": 1024,
    "Eye of Ender": 1792,
    "Glowstone (Block)": 1536,
    "Gold Nugget": 227.5555556,
    "Gold": 2048,
    "Powered Rail": 2048,
    "Iron Block": 2304,
    "Lapis Lazuli": 864,
    "Lapis Lazuli (Block)": 7776,
    "Diamond": 8192,
    "Jukebox":...