function Add2WishList(productId){
	if(typeof(productId) === 'undefined'){
		return false;
	}else{
		var wlAddButton = $.addToWishListDisplayObject.addElemName + productId;
		var wlWaitButton = $.addToWishListDisplayObject.waitElemName + productId;
		toggleWLAddAndWaitDisplay(wlAddButton,wlWaitButton);
		
		var ajaxUrl = $.protocolServerNameAndContextRoot + '/AjaxInterestItemAdd' +  $.standardQueryStringParams;
		var ajaxData = {};
		ajaxData.requestType = 'AJAX';
		jQuery.each($.requiredAjaxCmdParams, function(name, val) {
		    ajaxData[name] = val;
		});
		ajaxData.productId = productId;
		ajaxData.catEntryId = productId;

		$.ajax({
		    url: ajaxUrl,
		    data: ajaxData,
		    cache: false,
		    type: 'POST',
		    dataType: 'json',
		    timeout: 6000, 
		    error: function(){
		        $($.addToWishListDisplayObject.errMsgElemName).html($.addToWishListDisplayObject.genericAddToWishListErrorMessage);
		        toggleWLAddAndWaitDisplay(wlAddButton,wlWaitButton);
		    },
		    success: function(json){
		    	/** success just means we have received a reply from the server. still need to parse response for error code */
		    	/* to view the complete response, uncomment this section - *requires json2.js include*
		    	var jsonText = JSON.stringify(json, function (key, value) {	return value; });
				alert('json resp: '+jsonText);*/
				if(json.addToWishListResults == 'true'){
					$(wlWaitButton).hide();
				}else{
					$($.addToWishListDisplayObject.errMsgElemName).html($.addToWishListDisplayObject.genericAddToWishListErrorMessage);
					toggleWLAddAndWaitDisplay(wlAddButton,wlWaitButton);
				}
		    }
		});
	}
}
/*toggle between showing 'Add to WishList' element and the 'Please wait...' element */
toggleWLAddAndWaitDisplay = function(addElem, waitElem){
	$(addElem).toggle();
	$(waitElem).toggle();
}
