function copyToclipboard(ss)
{
            window.clipboardData.setData("text",ss);
            alert("您已经复制了本页的链接，可以直接粘贴发给您的朋友。");
}


function g(formname)	{
var url = "http://www.baidu.com/baidu";
if (formname.s[1].checked) {
	formname.ct.value = "2097152";
}
else {
	formname.ct.value = "0";
}
formname.action = url;
return true;
}

    function loadSecondCategory(Id,Brand)
　　{
　　	var drp4 = document.getElementById("ddl_City");
　　	for(var i=drp4.options.length-1;i>-1;i--)
　　	{
　　		drp4.remove(i);
　　	}
　　	var oHttpReq = new ActiveXObject("MSXML2.XMLHTTP");
　　	var oDoc = new ActiveXObject("MSXML2.DOMDocument");
　　	oHttpReq.open("GET", "/LoadCity.aspx?Provinceid="+Id, false);
　　	oHttpReq.send("");
　　	result = oHttpReq.responseText;
　　	oDoc.loadXML(result);

　　	items = oDoc.selectNodes("//NewDataSet/GetShowCityName");
　　	var defOption=document.createElement("OPTION");
　　		defOption.text="== 选择城市 ==";
　　		defOption.value="";
　　		drp4.options.add(defOption);
　　	for (var item = items.nextNode(); item; item = items.nextNode())
　　	{
　　		var cid = item.selectSingleNode("F_Id").nodeTypedValue;
　　		var cname = item.selectSingleNode("F_CityName").nodeTypedValue;
		　　
　　		var newOption = document.createElement("OPTION");
            newOption.text = cname;
　　		newOption.value = cid;
　　		drp4.options.add(newOption);
　　		if( Brand != '' && Brand != null )
　　		{
　　		if(cid == Brand)
　　		{
　　		    drp4.selectedIndex = i+2;
　　		}
　　		i++;
　　		}
　　	}
　　}

      
        function LinkTO(Id,cId)
        {
         //   window.location.href="CarModelPrice.aspx?ModelId=" + Id + "&AreaId=" + cId;
            if( cId != null && cId != '' )
            {
                 window.location.href= "http://car.autocity.com.cn/sp_" + Id + "_" + cId + ".html";
            }
            else
            {
                window.location.href= "http://car.autocity.com.cn/sp_" + Id + ".html";
            }
        }
