$ 0 0 var aUrl = encodeURIComponent('/XXXXXX/XXXXX/Status.xsjs?n1=' + y + '&n2=6&n3='+Status); Check this.