Something is wrong with my javascript script with arrays
<p>so basically my javascript array script looks like -</p>

<pre><code>cars = $('#bike').val();
var priceone = document.documentElement.getAttribute('priceone');
var pricetwo = document.documentElement.getAttribute('pricetwo');
var pricethree = document.documentElement.getAttribute('pricethree');
var pricefour = document.documentElement.getAttribute('pricefour');
var pricefive = document.documentElement.getAttribute('pricefive');
var pricesix = document.documentElement.getAttribute('pricesix');
var priceseven = document.documentElement.getAttribute('priceseven');
var priceeight = document.documentElement.getAttribute('priceeight');
var pricenine = document.documentElement.getAttribute('pricenine');
var priceMatrix = {
    cars: {
        1: {
            t1: priceone,
            t2: pricetwo,
            t3: pricethree
        },
        2: {
            t1: pricefour,
            t2: pricefive,
            t3: pricesix
        },
        3: {
            t1: priceseven,
            t2: priceeight,
            t3: pricenine
        }
    }
};
</code></pre>

<p>Maybe anyone have an idea, why the priceMatrix array, doesn't work? How should I insert all the variables into array, so it would work? The cars: is variable cars defined at top of the script and the priceone, pricetwo... pricenine are variables that are defined at top too. Hope you can help. If possible please write, how should I define var cars in javascript mode, so it takes the select fields value too. Here is the script, so you can cehck it - <a href="http://jsfiddle.net/tSsvb/2/" rel="nofollow">http://jsfiddle.net/tSsvb/2/</a> .</p>
