function getHTTPObject(){var xmlhttp;if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();}else if(window.ActiveXObject){try
{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlhttp;}
function addToWishlist(id,type,elementId,path){var http=getHTTPObject();var url=path+'AddToWishList.action?id='+id+'&type='+type;http.open("GET",url,true);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){document.getElementById(elementId).innerHTML=http.responseText;}}};http.send(null);}