function GetBrandOption(objSubCate,defaultValue1,defaultValue2,defaultValue11,defaultValue21,IsSetDefault){
   var myXhr = new XHR({method: 'get',
                        onSuccess:function(){
                                      var obj=document.getElementById("selBrand1");
                                      obj.options.length=0;
                                      try{eval(myXhr.response.text);}catch(e){obj.options.add(new Option("====请选择品牌====",""));defaultValue1="";defaultValue11="";}
                                      
                                      if(IsSetDefault)
                                         obj.value=defaultValue1;
                                         
                                      obj=document.getElementById("selBrand2");
                                      obj.options.length=0;
                                      try{eval(myXhr.response.text);}catch(e){obj.options.add(new Option("====请选择品牌====",""));defaultValue2="";defaultValue21="";}
                                      
                                      if(IsSetDefault)
                                         obj.value=defaultValue2;
                                         
                                      obj=document.getElementById("selProduct1");
                                      obj.options.length=0;
                                      obj.options.add(new Option("====请选择型号====",""));
                                      obj=document.getElementById("selProduct2");
                                      obj.options.length=0;
                                      obj.options.add(new Option("====请选择型号====",""));
                                      
                                      if(IsSetDefault)
                                         GetProducOption(objSubCate,document.getElementById("selBrand1"),defaultValue11,defaultValue21,true);
                                  }
   });
   myXhr.send("ajax.aspx", "ajaxid=productline&isproductoption=n&subcatesn="+objSubCate.value+"&datepara="+encodeURIComponent((new Date()).toString()));
}

function GetProducOption(objSubCate,objBrand,defaultValue11,defaultValue21,IsSetDefault){
  var myXhr = new XHR({method: 'get',
                        onSuccess:function(){
                                      var obj=null;
                                      if(objBrand.id.toLowerCase()=="selbrand1")
                                          obj=document.getElementById("selProduct1");
                                      else
                                          obj=document.getElementById("selProduct2");
                                      obj.options.length=0;
                                      try{eval(myXhr.response.text);}catch(e){obj.options.add(new Option("====请选择型号====",""));defaultValue11="";}
                                      
                                      if(IsSetDefault){
                                         obj.value=defaultValue11;
                                         if(defaultValue21!='stop')
                                            GetProducOption(objSubCate,document.getElementById("selBrand2"),defaultValue21,'stop',true);
                                      }
                                  }
   });
   myXhr.send("ajax.aspx", "ajaxid=productline&isproductoption=y&subcatesn="+objSubCate.value+"&brandsn="+objBrand.value+"&datepara="+encodeURIComponent((new Date()).toString())+"&fresh="+Math.random());
}