﻿function showCartProductCount(containerId){
    if(!$chk(containerId))containerId="SpanCount";
    var elcontainer = $(containerId);
    if(!elcontainer)return;

    var req = new Request({
         method: 'get',
         url: "/ajax/getvalue.aspx?action=cartproductcount&ran=" + Math.random(),
         onRequest: function() {  },
         onComplete: function(response)
         {
            if(elcontainer){
                if($type(elcontainer)=="element" ){
                    if(elcontainer.get("tag")=="input")
                        elcontainer.set("value",response);
                    else
                        elcontainer.set('html',response);
                }
            }
         }
    }).send();
}

