function changeitem(bgid,conid,num){
	for (i=0;i<num;i++){
		var tdid="bg"+i;
		if (tdid==bgid){
		    document.getElementById(tdid).style.backgroundColor="#9D6B91";
	    }
		else
		{
		    document.getElementById(tdid).style.backgroundColor="#823F72";
	    }
	}
	GetResult(conid);
}
function GetResult(str) { 
    var exitdos = new ActiveXObject("Microsoft.XMLHTTP"); 
    exitdos.open("POST","../../js/item.aspx?a="+Math.random()+"&id="+escape(str),false); 
    exitdos.send(); 
	document.getElementById("itemname").innerHTML=unescape(exitdos.responseText);
}
