/**
 * @author	Victor Lee
 * @since   Version 1.0  $date 2008-10-07  
 * @desc  ajax for editpwd
 * @filesource  
 **/
 var XMLHttp; 
 var info;
 /**
 * @desc Create XMLHttpRequest
 */
 function createXMLHttpRequest(){
     if(window.XMLHttpRequest){
        XMLHttp = new XMLHttpRequest();//mozilla浏览器
     }
     else if(window.ActiveXObject){
         try{
            XMLHttp = new ActiveX0bject("Msxml2.XMLHTTP");//IE老版本
         }catch(e){}
         try{
             XMLHttp = new ActiveXObject("Microsoft.XMLHTTP");//IE新版本
         }catch(e){}
         if(!XMLHttp){
            window.alert("不能创建XMLHttpRequest对象实例");
            return false;
         }
     }
 }
 /**
 *第一个
 */
function dostart() {
	createXMLHttpRequest();
	//alert("a");
	var url = "sellm.php";
	//alert("a");
	var id = document.getElementById("brand").value;
	var str = "id="+id;
	XMLHttp.open("POST",url, true);
	XMLHttp.onreadystatechange = readusr;
	XMLHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
	XMLHttp.send(str);
}
function readusr() { 
  if(XMLHttp.readyState == 4) { 
      if(XMLHttp.status == 200){ 
       document.getElementById('list').innerHTML = XMLHttp.responseText; 
      }
    } 
}