//=============================================================================
//产品分类展叠操作
//=============================================================================
function lShowTD(sid)
{
var whichEl = document.getElementById("submenu" + sid).style;
if (whichEl.display == "none")
{
whichEl.display = "";
}
else
{
whichEl.display = "none";
}
}
//=============================================================================
//产品选中
//=============================================================================
function SelProduct(FieldUrl)
{
	var _obj=document.getElementsByName("SelPtd");
	var intCounter,strValue;
	intCounter=0,strValue=0;
	
	for(i = 0 ; i < _obj.length ;  i++)   
	{   
		if(_obj[i].checked == true)   
		{   
			if(intCounter > 0)   
			{   
				strValue = strValue + ","  + _obj[i].value   
			}   
			else  
			{   
				strValue = _obj[i].value   
			}   
			intCounter = intCounter + 1    
		}
	}
	if (strValue!=0&&strValue!="")
	{
		var url=FieldUrl+".aspx?PtdID="+strValue;
		BtWindow(url,FieldUrl,800,600);
	}
	else
	{
		alert("请选择要订购的型号!");
		}
}
function pageName()
    {
        var a = location.href;
        var b = a.split("/");
        var c = b.slice(b.length-1, b.length);
        return c.slice(0, 1);
    }
function writetop()
{
 // var stl= Math.max(document.body.scrollTop,document.documentElement.scrollTop);
  //if(stl ==1){
	document.write ("【<a href='javascript:history.back()' class='ptd'>返回</a>】【<a href='#top' class='ptd'>▲至顶</a>】");
// }
}
//=============================================================================
//弹出窗体
//=============================================================================
function BtWindow(theURL,winName,Wval,Hval)
 { //v2.0无滚动条
  var features;
  var featv;
  features="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=on, resizable=no,location=no, status=no," + "width="+ Wval + ",height=" + Hval;
  features=features + ",top=" +(window.screen.height-Hval)/2 +",left=" + (window.screen.width-Wval)/2+ "";//弹出屏幕居中
  featv=window.open(theURL,winName,features);
  featv.focus();
  }
