// JavaScript Document
var xmlhttp = null; 
try{xmlhttp = new ActiveXObject('MSXML2.XMLHTTP'); } 
catch(e) 
{try{xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');}catch(e2){}}   
function  postData(url, data, respType)
{
	
	xmlhttp.open('POST', url, false);
	xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xmlhttp.send(data);
	if(respType == "txt") 
	  return xmlhttp.responseText;
	else if(respType == "xml")
	  return xmlhttp.responseXML.xml;
	else 
	  return "no support for " + respType;	
}
function demoTxt()
{	
	
	var strarr;
	var postValue = "ClassID="+document.form1.big_class_id.options[document.form1.big_class_id.selectedIndex].value;
	//alert(postValue);
	var result = postData("getManuModel.php",postValue,"txt");
	strarr = result.split("+");
	//alert(strarr[0]);
	if(strarr[0]!=""){
		if(strarr[0]=="true"){
			//alert(strarr[1]);
			document.getElementById('smallidname').innerHTML = strarr[1];
		}
		else if(strarr[0]=="false"){
			//alert(strarr[1]);
			document.getElementById('smallidname').innerHTML = strarr[1];
		}
	}
}
function changesmallclass(){
	
	demoTxt();
}

function  postData1(url, data, respType)
{
	
	xmlhttp.open('POST', url, false);
	xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xmlhttp.send(data);
	if(respType == "txt") 
	  return xmlhttp.responseText;
	else if(respType == "xml")
	  return xmlhttp.responseXML.xml;
	else 
	  return "no support for " + respType;	
}
function demoTxt1()
{	
	var strarr;
	var postValue = "ClassID="+document.form1.big_class_id.options[document.form1.big_class_id.selectedIndex].value;
	//alert(postValue);
	var result = postData1("getshuoming.php",postValue,"txt");
	strarr = result.split("+");
	//alert(strarr[0]);
	if(strarr[0]!=""){
		if(strarr[0]=="true"){
			//alert(strarr[1]);
			document.getElementById('smallidname').innerHTML = strarr[1];
		}
		else if(strarr[0]=="false"){
			//alert(strarr[1]);
			document.getElementById('smallidname').innerHTML = strarr[1];
		}
	}
}
function changesmallclass1(){
	
	demoTxt1();
}

