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.Searchform.classid.options[document.Searchform.classid.selectedIndex].value;
	//alert(postValue);
	var result = postData("/changeclass.asp",postValue,"txt");
	strarr = result.split("+");
	//alert(strarr[0]);
	if(strarr[0]!=""){
		if(strarr[0]=="true"){
			//alert(strarr[1]);
			document.getElementById('smallclass').innerHTML = strarr[1];
		}
		else if(strarr[0]=="false"){
			document.getElementById('smallclass').innerHTML = strarr[1];
		}
	}
}
function changeclass(){
	demoTxt();
}
