﻿// JScript 文件

function AddToShopCart(productID,productNum)

{

         var url=null;
        var prodnum=productNum==null?1:productNum;
 

         if(productID==null || productID<1)

                   url="../other/order_car.aspx";

         else

                  url="../other/shop_productset.aspx?ProductID="+productID+"&ProductNum="+prodnum+"&reference_url="+escape(window.location.href);

            
         var popup=window.open(url,"shopcart");
         popup.focus();
         //popup.location.href=url;

}

function AddFav(productID)
{
    $("#ajaxmsg").load("../Ajax/AddFav.ashx?ProductID="+productID);
}