﻿$(document).ready(function() {
    $("#BuyResonetb").val("是什么原因促使您购买本产品？");
    $("#BuyResonetb").blur(function() {
        if ($("#BuyResonetb").val() == '') $("#BuyResonetb").val("是什么原因促使您购买本产品？");
    });
    $("#BuyResonetb").focus(function() {
        if ($("#BuyResonetb").val() == "是什么原因促使您购买本产品？") $("#BuyResonetb").val("");
    });
    $("#remarktb").val("售后服务、销售方式，产品造型等是否存在缺陷？");
    $("#remarktb").blur(function() {
    if ($("#remarktb").val() == '') $("#remarktb").val("售后服务、销售方式，产品造型等是否存在缺陷？");
    });
    $("#remarktb").focus(function() {
    if ($("#remarktb").val() == "售后服务、销售方式，产品造型等是否存在缺陷？") $("#remarktb").val("");
    });
});
function resetValue() {
    if ($("#remarktb").val() == "售后服务、销售方式，产品造型等是否存在缺陷？") $("#remarktb").val("");
    if ($("#BuyResonetb").val() == "是什么原因促使您购买本产品？") $("#BuyResonetb").val("");
}
function setBuyway(obj) {
    var t = document.getElementById("buywaytb");
    t.value = obj.options[obj.selectedIndex].text;
    obj.selectedIndex = 0;
}
function setBikeType(obj) {
    var t = document.getElementById("biketypetb");
    t.value = obj.options[obj.selectedIndex].text;
    obj.selectedIndex = 0;
}
function setColor(obj) {
    var t = document.getElementById("colortb");
    t.value = obj.options[obj.selectedIndex].text;
    obj.selectedIndex = 0;
}
function setBuyFor(obj) {
    var t = document.getElementById("Buyfortb");
    t.value = obj.options[obj.selectedIndex].text;
    obj.selectedIndex = 0;
}