﻿

function hcTrackEvent(  hcEventCategory,
                        hcEventAction,
                        hcEventLabel,
                        hcEventValue, 
                        hcCustVarIndex,
                        hcCustVarName,
                        hcCustVarScope
                     ) 
                        
                    {
                        var uid = GetCookie('hcxdom');

                         _gaq.push(['_setCustomVar', hcCustVarIndex, hcCustVarName,uid, hcCustVarScope], ['_trackEvent', hcEventCategory, hcEventAction, hcEventLabel, hcEventValue]);
                    }

function hcTrackEventNoQty(hcEventCategory,
                            hcEventAction,
                            hcEventLabel,
                            hcCustVarIndex,
                            hcCustVarName,
                            hcCustVarScope                            
                            )
                            
                            {
                                var uid = GetCookie('hcxdom');
                                   
                                 
                                 var  hcEventValue  = Number(document.getElementById(decodeURIComponent(qtybasketID)).value); 
                                _gaq.push(['_setCustomVar', hcCustVarIndex, hcCustVarName, uid, hcCustVarScope],['_trackEvent', hcEventCategory, hcEventAction, hcEventLabel, hcEventValue]);
                                //alert('Done');

                            }


                            function hcTrackEventDynQty(
                            hcEventCategory,
                            hcEventAction,
                            hcEventLabel,
                            hcCustVarIndex,
                            hcCustVarName,
                            hcCustVarScope,
                            qtybasketID
                            ) {
                                var uid = GetCookie('hcxdom');

                               // debugger;
                                var hcEventValue = Number(document.getElementById(decodeURIComponent(qtybasketID)).value);
                                _gaq.push(['_setCustomVar', hcCustVarIndex, hcCustVarName, uid, hcCustVarScope],['_trackEvent', hcEventCategory, hcEventAction, hcEventLabel, hcEventValue]);
                                //alert('Done');

                            }

