function itemInfo(data) { var cartUrl = ""; var cartUrlClose = ""; var temp = new Array(); temp = data.split(';'); var item = temp[0]; var flag = temp[1]; if(flag=='true') { DWRUtil.setValue("isAdded-"+item, " is in+"+cartUrl+"your cart."+cartUrlClose); } else { DWRUtil.setValue("isAdded-"+item, " is not in "+cartUrl+"your cart."+cartUrlClose); } }