function addToCartAndShowInTheDiv(objForm)
{
	 //alert(objForm);
     AddToCart(objForm);
     showCartInTheDiv();
}
function showCartInTheDiv()
{
     var strCartHTML=getCartHTML( );
     //alert(strCartHTML);
     ChangeContent('shoppingCartDiv',strCartHTML);
}
function removeFromCartAndShowInTheDiv(i)
{
     RemoveFromCart(i);
     showCartInTheDiv();
}


function removeFromCartAndShowInManagement(i)
{
     RemoveFromCart(i);
	 location.href=location.href;
}

function ChangeContent(id, str) 
{
    if (navigator.userAgent.indexOf("Opera")!=-1
        && document.getElementById) { type="OP";}

    //Internet Explorer e.g. IE4 upwards :
    if (document.all) { type="IE";}

    //For Netscape version 4 :
    if (document.layers) { type="NN";}

    //Mozila e.g. Netscape 6 upwards
    if (!document.all && document.getElementById) {type="MO";}

    if (type=="IE") {
        document.all[id].innerHTML = str;
    }
    if (type=="NN") {
        document.layers[id].document.open();
        document.layers[id].document.write(str);
        document.layers[id].document.close();
    }
    if (type=="MO" || type=="OP") {
        document.getElementById(id).innerHTML = str;
    }
}
