function addToWishList(productCode,sitePath)
{
		
		var productCode=productCode;
		var sitePath=sitePath;
	//alert("addToWishList--> "+sitePath);
	
	
	$.post(sitePath+"addproducttowishlist.htm",{
			productCode:productCode
	},
									function(data)
									{
									
										eval(data);
										if(obj.user == "no")
										{
											 if(confirm("Please Sign In to access this functionality. Thanks!"))
											 {
												 document.location.href=sitePath+"myaccountlogin.htm";
											 }																				 
										}
										else
										{
											if(obj.productexist=="yes")
											{
												 alert("This product already exist in shortList!");
												 return false;
											}
											
											if(confirm("Product added! Would you like to see this product in shortlist?")){
												//document.frmProduct.action=sitePath+"shortlist.htm";
												//document.frmProduct.submit();
												
												document.location.href=sitePath+"shortlist.htm";
											}
										}
									},
									"html" );
}


function showWishList()
{
	document.location.href=sitePath+"shortlist.htm";
}
function removeProductFromWishList(productCode)
{
	var productCode=productCode;
	//alert("productCode "+productCode);
	if(confirm("Are you sure to delete")){
		document.wishlistFrm.action="deleteproductfromwishlist.htm?productCode="+productCode;
		document.wishlistFrm.submit();
	}
	
}

function clearAllFromShortList(formName)
{
	//alert("formName:"+formName);
	if(confirm("Are you sure to clear all products from short list")){
		document.forms[formName].action = "clearallfromshortlist.htm";
		document.forms[formName].submit();
	}
	
}



