document.write('
'); function hiddencart(){ document.getElementById("Layer1").style.display="none"; } function showcart(){ document.getElementById("Layer1").style.display=""; } function cartdelproduct(id){ var hiddenli = document.getElementById('minicart_' + id); hiddenli.style.display = 'none'; var newurl = '[$syspath]cart.aspx?act=del&id=' + id + '&d=' + Date(); var myajaxdel = new Ajax.Updater( {success: 'delaaa'}, newurl, { asynchronous:true, method: 'get', evalscrīpts:true, onComplete : showCartInfo } ); } function cartdelproductbind(id){ var hiddenli = document.getElementById('minicartbind_' + id); hiddenli.style.display = 'none'; var newurl = '[$syspath]cart.aspx?act=del&bindingid=' + id + '&d=' + Date(); var myajaxdel = new Ajax.Updater( {success: 'delaaa'}, newurl, { asynchronous:true, method: 'get', evalscrīpts:true, onComplete : showCartInfo } ); } function showCartInfo(){ var newurl = '[$syspath]js_floatcarttext.aspx?d=' + Date(); var myajaxfresh = new Ajax.Updater( {success: 'Layer1'}, newurl, { asynchronous:true, method: 'get', evalscrīpts:true, onComplete : InitCartCount } ); } function InitCartCount(){ $('topcarttotal').innerHTML = $('minicarttotal').innerHTML; } showCartInfo();