﻿/// <reference path="../jquery-1.4.1-vsdoc.js" />

function AddTempOrder(packageID) {
    AjaxMethodPL.AddPackageOrder
    (
        packageID,
        function (result) {
            //函数在common文件里
            AddTemp_CallBack(result);
        }
    )
}
//function ChangeCurrency() {
//    var currencyMark;
//    var price;
//    var currencyEn = $("select[id$='CurrencyNew'] option:selected").text();
//    $("span[name='price']").each(function () {
//        var amount = $(this).text();
//        currencyMark = amount.substring(0, 1);
//        price = amount.substring(1, amount.length);
//        //AjaxMethodPL计算完价格在给当前的$(this).text()
//        AjaxMethodPL.ToCurrentCurrency(currencyEn, price, function (result) {
//            if (result.value != null || result.error != null) {
//                $(this).text("$" + result.value);
//            }
//        });
//    });
//}
function OnLoad() {
    /// <summary>
    /// 初始化，登录过的，把原价格画线
    /// </summary>
    var userID = $("input[id$='hdUserID']").val();
    if (parseInt(userID) != 0 && parseInt(userID) != -1) {
        $("p[mark='vip']").css("display", "block");
        $("div[mark='vip']").css("display", "block");
        $("span[name='price']").each(function () {
            $(this).css("textDecoration", "line-through");
        });
    }
}
