function ajaxShopListUpdateList(a,g,f,e){var b="/ajax/com.eonegroup.eonecommerce.ajax.AJAXShopListUpdateList";var c="linkType="+a+"&sequence="+g+"&title="+escape(f)+"&desc="+escape(e);var d=new Ajax.Request(b,{postBody:c})}function ajaxShopListAddItem(c,a,d,b){ajaxShopListAddItem(c,a,d,b,"")}function ajaxShopListAddItem(g,a,h,f,c){var b="/ajax/com.eonegroup.eonecommerce.ajax.AJAXShopListAddItem";var d="linkType="+a+"&itemId="+escape(g)+"&sequence="+h+"&quantity="+f+"&listName="+escape(c);var e=new Ajax.Request(b,{postBody:d,onComplete:ajaxShopListAddItemResponse})}function getContextPath(){var b="";var a=location.pathname.lastIndexOf("/")+1;if(a<=0){a=location.pathname.length-1}if(location.pathname.lastIndexOf("/")==0){b=location.pathname.substring(1,a)}else{b=location.pathname.substring(0,a)}return b}function ajaxShopListAddItemResponse(b){var d=b.responseXML.getElementsByTagName("success").item(0).firstChild.nodeValue;var a=b.responseXML.getElementsByTagName("linkType").item(0).firstChild.nodeValue;var c=b.responseXML.getElementsByTagName("itemId").item(0).firstChild.nodeValue;if(d=="true"){$("list_response_"+a+"_"+c).innerHTML="This item has been added to your wishlist"}else{}};