ajax-shopping-cart-with-jquery-and-php not calculating properly
<p>I have downloaded code from <a href="http://www.99points.info/2010/12/ajax-shopping-cart-with-jquery-and-php/" rel="nofollow">http://www.99points.info/2010/12/ajax-shopping-cart-with-jquery-and-php/</a> to customise a shopping cart. The problem is I don't know where or how to add decimal points to make the cart add up properly. The original code uses whole dollars so when adding the total does not include the .50
<a href="http://www.blissballs.com.au/OnlineStoreTest.html" rel="nofollow">http://www.blissballs.com.au/OnlineStoreTest.html</a> (see page)
I also need to add a shipping cost of $10AUD under $75AUD total and 10% GST(Sales Tax).
I have graphic design background and am only proficient in modifying .css so please excuse my ignorance!
Below is the script inserted in the </p>

<pre><code>    &lt;script type="text/javascript" src="jquery-1.3.2.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="jquery.livequery.js"&gt;&lt;/script&gt;

    &lt;link href="css/css.css" rel="stylesheet" type="text/css" media="screen" /&gt;
    &lt;script type="text/javascript"&gt;

    $(document).ready(function() {

var Arrays=new Array();

$('#wrap li').mousemove(function(){

    var position = $(this).position();

    $('#cart').stop().animate({

            right   : position.left+'px',

        },250,function(){

    });         
}).mouseout(function(){

}); 

$('#wrap li').click(function(){

    var thisID = $(this).attr('id');

    var itemname  = $(this).find('div .name').html();
    var itemprice = $(this).find('div .price').html();

    if(include(Arrays,thisID))
    {
        var price    = $('#each-'+thisID).children(".shopp-price").find('em').html();
        var quantity = $('#each-'+thisID).children(".shopp-quantity").html();
        quantity = parseInt(quantity)+parseInt(1);

        var total = parseInt(itemprice)*parseInt(quantity);

        $('#each-'+thisID).children(".shopp-price").find('em').html(total);
        $('#each-'+thisID).children(".shopp-quantity").html(quantity);

        var prev_charges = $('.cart-total span').html();
        prev_charges = parseInt(prev_charges)-parseInt(price);

        prev_charges = parseInt(prev_charges)+parseInt(total);
        $('.cart-total span').html(prev_charges);

        $('#total-hidden-charges').val(prev_charges);
    }
    else
    {
        Arrays.push(thisID);

        var prev_charges = $('.cart-total span').html();
        prev_charges = parseInt(prev_charges)+parseInt(itemprice);

        $('.cart-total span').html(prev_charges);
        $('#total-hidden-charges').val(prev_charges);

        $('#left_bar .cart-info').append('&lt;div class="shopp" id="each-'+thisID+'"&gt;&lt;div class="label"&gt;'+itemname+'&lt;/div&gt;&lt;div class="shopp-price"&gt; $&lt;em&gt;'+itemprice+'&lt;/em&gt;&lt;/div&gt;&lt;span class="shopp-quantity"&gt;1&lt;/span&gt;&lt;img src="remove.png" class="remove" /&gt;&lt;br class="all" /&gt;&lt;/div&gt;');

        $('#cart').css({'-webkit-transform' : 'rotate(20deg)','-moz-transform' : 'rotate(20deg)' });
    }

    setTimeout('angle()',200);
}); 


$('.remove').livequery('click', function() {

    var deduct = $(this).parent().children(".shopp-price").find('em').html();
    var prev_charges = $('.cart-total span').html();

    var thisID = $(this).parent().attr('id').replace('each-','');

    var pos = getpos(Arrays,thisID);
    Arrays.splice(pos,1,"0")

    prev_charges = parseInt(prev_charges)-parseInt(deduct);
    $('.cart-total span').html(prev_charges);
    $('#total-hidden-charges').val(prev_charges);
    $(this).parent().remove();

}); 

$('#Submit').livequery('click', function() {

    var totalCharge = $('#total-hidden-charges').val();

    $('#left_bar').html('Total Charges: $'+totalCharge);

    return false;

}); 

});

function include(arr, obj) {
  for(var i=0; i&lt;arr.length; i++) {
if (arr[i] == obj) return true;}}
    function getpos(arr, obj) {
    for(var i=0; i&lt;arr.length; i++) {
if (arr[i] == obj) return i;}}        function angle(){$('#cart').css({'-webkit-transform' : 'rotate(0deg)','-moz-transform' : 'rotate(0deg)' });}
</code></pre>

<p></p>
