﻿        function ASearch() {
            if (document.form1.item("SearchDropDown").value=="1") {
                window.location = "usedcar.aspx";
            } else {
            window.location = "newcar.aspx";
            }
        }
        function searchname_TextChanged()
        {
            if (document.form1.item("searchname").value== "车辆描述")
            {
                document.form1.item("searchname").value = "";
            }
        }
        function searchname_onblur()
        {
            if(document.form1.item("searchname").value=="")
            {
                document.form1.item("searchname").value = "车辆描述";
            }
        }
        function MM_preloadImages() { //v3.0
            var d = document; if (d.images) {
                if (!d.MM_p) d.MM_p = new Array();
                var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
                    if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; } 
            }
        }
        function copyWebsite(){
            var clipBoardContent="";
            clipBoardContent+=this.location.href;
            window.clipboardData.setData("Text",clipBoardContent);
            alert("复制成功，直接粘贴即可！");
        }
        function Recommended()
        {
            NowURL="我向您推荐，很好很强大的二手车超市网。www.carmall.cn";
            clipboardData.setData('text',NowURL);
            alert('复制成功, 直接粘贴即可！')
        }
        function on_over_module(prename, imgid, idx) 
        {
            var strImg = "images/" + prename + "_" + idx + "_down.gif";
            var oImg = eval("document.all." + imgid)[idx];
            oImg.src = strImg;
        }
        function on_out_module(prename, imgid, idx) {
            var strImg = "images/" + prename + "_" + idx + ".gif";
            var oImg = eval("document.all." + imgid)[idx];
            oImg.src = strImg;
        }
        function MM_jumpMenu(targ, selObj, restore) { //v3.0
            eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
            if (restore) selObj.selectedIndex = 0;
        }
        function on_click(prename, imgid, idx) {
            var strImg = "images/" + prename + "_" + idx + "_down.gif";
            var oImg = eval("document.all." + imgid)[idx];
            alert(strImg);
            oImg.src = strImg;
        }