<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/// &lt;reference path="../Member/Scripts/jquery-1.8.3.min.js" /&gt;

//删除元素
function Remove(obj) {
    // $("#" + obj).parent().css("position", "");
    $("#" + obj).remove();
    window.location.reload();
}

//添加进购物车
function CartAdd(obj, type, producttype, product_id, product_quantityInput, product_number, product_price) {
    $("#cart_info").remove();
    var product_quantity = product_quantityInput.val();
    if (product_id == "" || product_quantity == "") {
        return false;
    }
    if (parseInt(product_quantity) &gt; parseInt(product_number)) {
        $.post("/Member/Ajax/LanguageHandler.ashx", { action: "loadLanguage", langus: "购买商品失败;商品添加到购物车失败;购买数量不能大于库存哦", cache: Math.random() }, function (langu) {
            var HintHtml = '&lt;div id="cart_info" class="ctDia-buyTipBox clearfix" style="width:337px"&gt;'
					+ '&lt;a class="ctDia-closeBtn" href="javascript:void(0);" onclick="Remove(\'cart_info\');"&gt;&lt;/a&gt;&lt;span class="ctDia-buyIconStatu ctDia-buyIconFail"&gt;&lt;/span&gt;'
					+ '&lt;div class="ctDia-buyTxtBox"&gt;&lt;div class="ctDia-buyTxtTit"&gt;';
            if (type == 1)
                HintHtml += langu.购买商品失败 + '！';
            else
                HintHtml += langu.商品添加到购物车失败 + '！';
            HintHtml += '&lt;/div&gt;&lt;p class="ctDia-buyTxtIntro"&gt;' + langu.购买数量不能大于库存哦 + '！&lt;/p&gt;'
					+ '&lt;/div&gt;'
					+ '&lt;/div&gt;';
            $(obj).after(HintHtml); //添加节点
            //$("#cart_info").parent().css("position", "relative");
        }, "json");
        return false;
    }
    $.ajax({
        type: "post",
        url: "/Ajax/ShoppingCartHandler.ashx",
        data: { action: "cart_product_add", product_id: product_id, product_quantity: product_quantity, producttype: producttype, type: type, product_price: product_price, cache: Math.random() },
        dataType: "json",
        beforeSend: function (XMLHttpRequest) {
            //发送前动作
        },
        success: function (data, textStatus) {
            if (data.msg == 1) {
                if (type == 1) {
                    location.href = "/Member/BuyNow.aspx";
                } else {
                    var HintHtml = '&lt;div id="cart_info" class="ctDia-buyTipBox clearfix" style="width:337px"&gt;'
						+ '&lt;a class="ctDia-closeBtn" href="javascript:void(0);" onclick="Remove(\'cart_info\');"&gt;&lt;/a&gt;&lt;span class="ctDia-buyIconStatu ctDia-buyIconSuccess"&gt;&lt;/span&gt;'
						+ '&lt;div class="ctDia-buyTxtBox"&gt;'
						+ '&lt;div class="ctDia-buyTxtTit"&gt;' + data.msgTitle + '&lt;/div&gt;'
						+ '&lt;p class="ctDia-buyTxtIntro"&gt;' + data.msgbox + '&lt;/p&gt;'
						+ ' &lt;div class="ctDia-buyTxtHand"&gt;&lt;a class="goto-accountBtn" title="' + data.gotoCart + '" href="/Member/Cart.aspx"&gt;&lt;/a&gt;'
						+ '&lt;a title="' + data.thenStroll + '" href="javascript:void(0);" onclick="Remove(\'cart_info\');" class="goto-stroll"&gt;' + data.thenStroll + '&lt;/a&gt;'
						+ '&lt;/div&gt;'
                        + '&lt;/div&gt;'
						+ '&lt;/div&gt;';
                    $(obj).after(HintHtml); //添加节点
                    //$("#cart_info").parent().css("position", "relative");
                    $(".login-cart em").html(data.count); //给头部购物车数量赋值
                }
            }
            else if (data.msg == 2) {
                LoadLogin(product_id, product_quantity, producttype);
            }
            else {
                var HintHtml = '&lt;div id="cart_info" class="ctDia-buyTipBox clearfix" style="width:337px"&gt;'
					+ ' &lt;a class="ctDia-closeBtn" href="javascript:void(0);" onclick="Remove(\'cart_info\');"&gt;&lt;/a&gt;&lt;span class="ctDia-buyIconStatu ctDia-buyIconWarm"&gt;&lt;/span&gt;'
					+ '&lt;div class="ctDia-buyTxtBox"&gt;&lt;div class="ctDia-buyTxtTit"&gt;';
                if (type == 1)
                    HintHtml += data.msgTitle1 + '！';
                else
                    HintHtml += data.msgTitle2 + '！';
                HintHtml += '&lt;/div&gt;&lt;p class="ctDia-buyTxtIntro"&gt;' + data.msgbox + '&lt;/p&gt;'
					+ '&lt;/div&gt;'
					+ '&lt;/div&gt;';
                $(obj).after(HintHtml); //添加节点
                //$("#cart_info").parent().css("position", "relative");
            }
        }
    });
    return false;
}

//删除购物车商品
function DeleteCart(obj, product_id, cartItemSelector) {
    if (product_id == "") {
        return false;
    }
    $.ajax({
        url: "/Ajax/ShoppingCartHandler.ashx",
        data: { action: "cart_product_delete", product_id: product_id, cache: Math.random() },
        dataType: "json",
        type: "post",
        beforeSend: function (XMLHttpRequest) {
            //发送前动作
        },
        success: function (data) {
            if (data.msg == 1) {
                var $cartItem = $(obj).parents(cartItemSelector + ":first");
                if (product_id == "0") {
                    $cartItem.replaceWith(data.cartMsg);
                }
                else {
                    if ($cartItem.siblings(cartItemSelector).length &gt; 0) {
                        $cartItem.remove();
                    } else {
                        $(".cartItemPlace").remove();
                        $(".cartItemEmpty").show();
                        $("#J_header-cart .header-carthd a em").html(0);
                    }
                }
            } else {
                alert(data.msgbox);
            }
        }
    });
    return false;
}

function LoadLogin(product_id, product_quantity, producttype) {
    $.post("/Member/Ajax/LanguageHandler.ashx", {
        action: "loadLanguage",
        langus: "用户登录;用户名;密码ToeasyDialog;验证码;登录2;注册;忘记密码;看不清换一张;请输入用户名密码和验证码;请输入用户名和密码;请输入用户名和验证码;请输入密码和验证码;请输入用户名;请输入密码;请输入验证码"
    , cache: Math.random()
    }, function (langu) {
        var strhtml = '&lt;div id="easyDialogInfo"&gt;&lt;div class="maskstyle" id="overlay"&gt;&lt;/div&gt;';
        strhtml += '&lt;div class="easyDialogBox" id="easyDialogBox" style="left: 53%;"&gt;&lt;div class="PopDiaWrap"&gt;';
        strhtml += '&lt;div class="ct-diabox"&gt;&lt;div class="ct-diatit"&gt;' + langu.用户登录 + '&lt;/div&gt;&lt;a href="javascript:;" class="PopDiaClose" onclick="$(\'#easyDialogInfo\').remove()"&gt;&lt;/a&gt;';
        strhtml += '&lt;div class="ct-diabd"&gt;&lt;div id="errorMsg"&gt;&lt;/div&gt;';
        strhtml += '&lt;div class="ct-diaitem clearfix"&gt;&lt;span class="paratit"&gt;' + langu.用户名 + '：&lt;/span&gt;';
        strhtml += '&lt;div class="paraitem"&gt;&lt;input type="text" class="dia-input dia-username" maxlength="30" id="txtUserName" onkeydown="replaceclass(this)"/&gt;&lt;/div&gt;&lt;/div&gt;';
        strhtml += '&lt;div class="ct-diaitem clearfix"&gt;&lt;span class="paratit"&gt;' + langu.密码ToeasyDialog + '：&lt;/span&gt;';
        strhtml += '&lt;div class="paraitem"&gt;&lt;input type="password" class="dia-input dia-pwd" maxlength="30" id="txtPwd" onkeydown="replaceclass(this)"/&gt;&lt;/div&gt;&lt;/div&gt;';
        strhtml += '&lt;div class="ct-diaitem clearfix"&gt;&lt;span class="paratit"&gt;' + langu.验证码 + '：&lt;/span&gt;';
        strhtml += '&lt;div class="paraitem"&gt;&lt;input type="text" class="dia-input dia-yzminput" maxlength="4" id="txtCode" onkeydown="replaceclass(this)"/&gt;';
        strhtml += '&lt;div class="dia-yzmpic"&gt;&lt;/div&gt;';
        strhtml += '&lt;span class="dia-gbyzm"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;';
        strhtml += '&lt;div class="ct-diaitem clearfix"&gt;&lt;span class="paratit"&gt;&amp;nbsp;&lt;/span&gt;';
        strhtml += '&lt;div class="paraitem" id="subInfo"&gt;&lt;input type="submit" class="dia-loginbtn" value="' + langu.登录2 + '" /&gt;&lt;/div&gt;&lt;/div&gt;';
        strhtml += '&lt;div class="ct-diaitem clearfix" style="padding:0"&gt;&lt;span class="paratit"&gt;&amp;nbsp;&lt;/span&gt;';
        strhtml += '&lt;div class="paraitem ct-dialoginHand clearfix"&gt;&lt;a href="/Member/Register.aspx" class="fl"&gt;' + langu.注册 + '&lt;/a&gt; &lt;a href="/Member/ForgotPwd.aspx" class="fr"&gt;' + langu.忘记密码 + '？&lt;/a&gt;&lt;/div&gt;';
        strhtml += '&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;';

        $("#easyDialogInfo").remove();
        $("body").append(strhtml);

        // IE6模拟fixed
        var isIE = ! -[1, ], isIE6 = isIE &amp;&amp; /msie 6/.test(navigator.userAgent.toLowerCase()); // 判断IE6
        if (isIE6) {
            document.body.style.height = '100%';
            document.getElementById("overlay").style.position = 'absolute';
            document.getElementById("overlay").style.setExpression('top', 'fuckIE6=document.documentElement.scrollTop+"px"');
            document.getElementById("easyDialogBox").style.setExpression('top', 'fuckIE6=document.documentElement.scrollTop+document.documentElement.clientHeight/2-100+"px"');
        } else {
            document.getElementById("easyDialogBox").style.position = 'fixed';
            document.getElementById("easyDialogBox").style.top = '40%';
        }
        $(".dia-yzmpic").html($('&lt;img style="cursor: pointer;" src="/Ajax/ValidateCode.ashx?r=' + Math.random() + '" alt="' + langu.看不清换一张 + '" /&gt;').click(function () {
            $(this).attr("src", '/Ajax/ValidateCode.ashx?r=' + Math.random());
        }));
        $(".dia-gbyzm").html($('&lt;span class="dia-gbyzm"&gt;' + langu.看不清换一张 + '&lt;/span&gt;').click(function () {
            $(".dia-yzmpic img").attr("src", '/Ajax/ValidateCode.ashx?r=' + Math.random());
        })).removeClass("dia-gbyzm");

        $("#subInfo").html($('&lt;input/&gt;').attr("type", "submit").attr("value", langu.登录2).addClass("dia-loginbtn").click(function () {
            var userName = $("#txtUserName").val();
            var pwd = $("#txtPwd").val();
            var code = $("#txtCode").val();
            if ($.trim(userName) == "" &amp;&amp; $.trim(pwd) == "" &amp;&amp; $.trim(code) == "") {
                $("#errorMsg").addClass("ct-diaErrorTip").html(langu.请输入用户名密码和验证码);
                $("#txtUserName").addClass("loginerror");
                $("#txtPwd").addClass("loginerror");
                $("#txtCode").addClass("loginerror");
                return false;
            }
            if ($.trim(userName) == "" &amp;&amp; $.trim(pwd) == "") {
                $("#errorMsg").addClass("ct-diaErrorTip").html(langu.请输入用户名和密码);
                $("#txtUserName").addClass("loginerror");
                $("#txtPwd").addClass("loginerror");
                return false;
            }
            if ($.trim(userName) == "" &amp;&amp; $.trim(code) == "") {
                $("#errorMsg").addClass("ct-diaErrorTip").html(langu.请输入用户名和验证码);
                $("#txtUserName").addClass("loginerror");
                $("#txtCode").addClass("loginerror");
                return false;
            }
            if ($.trim(pwd) == "" &amp;&amp; $.trim(code) == "") {
                $("#errorMsg").addClass("ct-diaErrorTip").html(langu.请输入密码和验证码);
                $("#txtPwd").addClass("loginerror");
                $("#txtCode").addClass("loginerror");
                return false;
            }
            if ($.trim(userName) == "") {
                $("#errorMsg").addClass("ct-diaErrorTip").html(langu.请输入用户名);
                $("#txtUserName").addClass("loginerror");
                return false;
            }
            if ($.trim(pwd) == "") {
                $("#errorMsg").addClass("ct-diaErrorTip").html(langu.请输入密码);
                $("#txtPwd").addClass("loginerror");
                return false;
            }
            if ($.trim(code) == "") {
                $("#errorMsg").addClass("ct-diaErrorTip").html(langu.请输入验证码);
                $("#txtCode").addClass("loginerror");
                return false;
            }
            $.post("/Member/Ajax/LoginHandler.ashx", {
                action: "loadLogin", userName: userName, pwd: pwd, code: code,
                product_id: product_id, product_quantity: product_quantity, producttype: producttype, cache: Math.random()
            }, function (rs) {
                if (rs.success)
                    location.href = "/Member/BuyNow.aspx";
                else
                    $("#errorMsg").addClass("ct-diaErrorTip").html(rs.message);
            }, "json");
        }));

        $("#overlay").show();
        $("#easyDialogBox").show();
    }, "json");
}


var replaceclass = function (input) {
    $(input).removeClass("loginerror");
    $(input).removeClass("login-form-error");
};


function AddEnquiry(ProductId) {
    LoadTableInfo(ProductId);
}

function LoadTableInfo(ProductId) {
    $.post("/Member/Ajax/LanguageHandler.ashx", { action: "loadLanguage", langus: "真实姓名;公司名称;联系手机;联系邮箱;期望价格;了解内容;询价提交", cache: Math.random() }, function (langu) {
        var strhtml = '&lt;div id="easyDialogInfo"&gt;&lt;div class="maskstyle" id="overlay"&gt;&lt;/div&gt;&lt;div class="easyDialogBox" id="easyDialogBox"&gt;';
        strhtml += '&lt;div class="zdyform"&gt;&lt;a href="javascript:;" class="PopDiaClose" onclick="$(\'#easyDialogInfo\').remove()"&gt;&lt;/a&gt;&lt;div class="zdyform-parawrap"&gt;';
        strhtml += '&lt;table class="zdyform-tbl"&gt;';
        strhtml += '&lt;tr&gt;&lt;td class="paratit"&gt;' + langu.真实姓名 + '：&lt;/td&gt;';
        strhtml += '&lt;td&gt;&lt;input type="text" class="inputelem" id="txtUserName" maxlength="20" onkeydown="replaceclass(this)"/&gt;&lt;/td&gt;';
        strhtml += '&lt;td class="paratit"&gt;' + langu.公司名称 + '：&lt;/td&gt;';
        strhtml += '&lt;td&gt;&lt;input type="text" class="inputelem" id="txtCompanyName" maxlength="50" onkeydown="replaceclass(this)"/&gt;&lt;/td&gt;&lt;/tr&gt;';
        strhtml += '&lt;tr&gt;&lt;td class="paratit"&gt;' + langu.联系手机 + '：&lt;/td&gt;';
        strhtml += '&lt;td&gt;&lt;input type="text" class="inputelem" id="txtPhone" maxlength="11" onkeydown="replaceclass(this)"/&gt;&lt;/td&gt;';
        strhtml += '&lt;td class="paratit"&gt;' + langu.联系邮箱 + '：&lt;/td&gt;';
        strhtml += '&lt;td&gt;&lt;input type="text" class="inputelem" id="txtEmail" maxlength="20" onkeydown="replaceclass(this)"/&gt;&lt;/td&gt;&lt;/tr&gt;';
        strhtml += '&lt;tr&gt;&lt;td class="paratit"&gt;' + langu.期望价格 + '：&lt;/td&gt;';
        strhtml += '&lt;td&gt;&lt;input type="text" class="inputelem" id="txtExpectedPrice" maxlength="10" onkeyup="validateNumPriceRW(\'txtExpectedPrice\')" onkeydown="replaceclass(this)"/&gt;&lt;/td&gt;';
        strhtml += '&lt;td class="paratit"&gt;QQ：&lt;/td&gt;';
        strhtml += '&lt;td&gt;&lt;input type="text" class="inputelem" id="txtQQ" maxlength="20" onkeyup="updateInventory(this)" /&gt;&lt;/td&gt;&lt;/tr&gt;';
        strhtml += '&lt;tr&gt;&lt;td class="paratit" style="vertical-align: top"&gt;' + langu.了解内容 + '：&lt;/td&gt;';
        strhtml += '&lt;td colspan="3"&gt;&lt;textarea class="areaform" id="txtContent" maxlength="500" onkeydown="replaceclass(this)"&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;/tr&gt;';
        strhtml += '&lt;tr&gt;&lt;td class="paratit" style="vertical-align: top"&gt;&amp;nbsp;&lt;/td&gt;';
        strhtml += '&lt;td colspan="3" id="subInfo"&gt;&lt;input type="submit" class="zdyform-subtn" value="' + langu.询价提交 + '" /&gt;&lt;/td&gt;&lt;/tr&gt;';
        strhtml += '&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;';
        $("#easyDialogInfo").remove();
        $("body").append(strhtml);

        // IE6模拟fixed
        var isIE = ! -[1, ], isIE6 = isIE &amp;&amp; /msie 6/.test(navigator.userAgent.toLowerCase()); // 判断IE6
        if (isIE6) {
            document.body.style.height = '100%';
            document.getElementById("overlay").style.position = 'absolute';
            document.getElementById("overlay").style.setExpression('top', 'fuckIE6=document.documentElement.scrollTop+"px"');
            document.getElementById("easyDialogBox").style.setExpression('top', 'fuckIE6=document.documentElement.scrollTop+document.documentElement.clientHeight/2-100+"px"');
        } else {
            document.getElementById("easyDialogBox").style.position = 'fixed';
            document.getElementById("easyDialogBox").style.top = '30%';
        }

        $("#overlay").show();
        $("#easyDialogBox").show();

        $("#subInfo").html($('&lt;input/&gt;').attr("type", "submit").attr("value", langu.询价提交).addClass("zdyform-subtn").click(function () {
            var UserName = document.getElementById("txtUserName");
            var CompanyName = document.getElementById("txtCompanyName");
            var Phone = document.getElementById("txtPhone");
            var Email = document.getElementById("txtEmail");
            var ExpectedPrice = document.getElementById("txtExpectedPrice");
            var QQ = $("#txtQQ").val();
            var Contents = document.getElementById("txtContent");
            if (!checkEnquiry(UserName, "姓名不能为空哦！") || !checkEnquiry(CompanyName, "公司名称不能为空哦！")
                        || !checkEnquiry(Phone, "联系手机不能为空哦！") || !checkEnquiry(Email, "联系邮箱不能为空哦！")
                        || !checkEnquiry(ExpectedPrice, "期望价格不能为空哦！") || !checkEnquiry(Contents, "了解内容不能为空哦！"))
                return false;

            //        if (!/^[\u4E00-\u9FA5]{2,6}(?:·[\u4E00-\u9FA5]{2,6})*$/.test(UserName.value)) {
            //            $("#txtUserName").addClass("loginerror");
            //            //alert("您输入的姓名不正确，请重新输入");
            //            $("#txtUserName").focus();
            //            return false;
            //        }

            //        if (!/^[\u4E00-\u9FA5]{5,50}(?:·[\u4E00-\u9FA5]{5,50})*$/.test(CompanyName.value)) {
            //            $("#txtCompanyName").addClass("loginerror");
            //            // alert("您输入的公司名称不正确，请重新输入");
            //            $("#txtCompanyName").focus();
            //            return false;
            //        }

            if (!/^(13|15|18|14)[0-9]{9}$/.test(Phone.value)) {
                $("#txtPhone").addClass("loginerror");
                //artbox.alert("您输入的联系手机不正确，请重新输入");
                $("#txtPhone").focus();
                return false;
            }

            if (!/^((([a-z]|\d|[!#\$%&amp;'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&amp;'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(Email.value)) {
                $("#txtEmail").addClass("loginerror");
                //alert("您输入的联系邮箱不正确，请重新输入");
                $("#txtEmail").focus();
                return false;
            }

            $.post("/Member/Ajax/EnquiryHandler.ashx", {
                action: "addEnquiry", ProductId: ProductId, UserName: UserName.value, CompanyName: CompanyName.value
                        , Phone: Phone.value, Email: Email.value, ExpectedPrice: ExpectedPrice.value, QQ: QQ, Contents: Contents.value, cache: Math.random()
            }, function (data) {
                if (data.success)
                    $("#easyDialogInfo").remove();
                else
                    alert(data.message);
            }, "json");
        }));

    }, "json");
}


// 表单验证
var checkEnquiry = function (input, msg) {
    if (input.value == '' || input.value == 0) {
        input.className = "loginerror " + input.className;
        //alert(msg);
        input.focus();
        return false;
    } else {
        return true;
    };
};

//不让输入除数字以外字符（第一个字符不能为0） invObj 控件ID
function updateInventory(invObj) {
    var inventory = invObj.value;
    if ((/(^0+)|[^\d]/g).test(inventory)) {
        inventory = inventory.replace(/(^0+)|[^\d]/g, "");
        invObj.value = inventory;
    }
}

//价格区间不让输入除数字以外字符
function validateNumPriceRW(rangePriceId) {
    var priceObj = document.getElementById(rangePriceId);
    var pvalue = priceObj.value;
    if ((/[^0-9\.]*/g).test(pvalue)) {
        pvalue = pvalue.replace(/[^0-9\.]*/g, "");
        priceObj.value = pvalue;
    }
    var fpValue = Number(pvalue);
    if (isNaN(fpValue)) {
        priceObj.value = "";
        return;
    }
    if (fpValue == 0) {
        if (pvalue.length &gt; 1 &amp;&amp; !(/\./.test(pvalue))) {
            priceObj.value = "0";
        }
        return;
    }
    if (/\./.test(pvalue)) {
        var integer = pvalue.split(".")[0];
        var decimal = pvalue.split(".")[1];
        pvalue = Number(integer) + "." + decimal;
    } else {
        pvalue = Number(pvalue);
    }
    priceObj.value = pvalue;
}</pre></body></html>