
function bindContent(id,URL,errorMsg){ 	
    if (document.getElementById(id)!=null){
		dojo.io.bind({
			url: URL,
			load: function(type, data, evt) {document.getElementById(id).innerHTML=data},
			error: function(type, error) { document.getElementById(id).innerHTML+=errorMsg;},
			mimetype: 'text/plain'
		});
	}

}

function getMenu(mId,cId,kId,URL,status,errorMsg){
	getCurrentClass(mId);
	var tempUrl; 
	if(status!=0){
		tempUrl=URL+"&status="+status;
	}else{
		tempUrl=URL;
	}
	bindContent(cId,tempUrl,errorMsg);
	
	var args='&nbsp;&nbsp;&nbsp;<a href="#" onclick="bindContent(\''+cId+'\',\''+URL+'&status=2\',\''+errorMsg+'\');")>\u672c\u5468</a>&nbsp;&nbsp;&nbsp;<a href="#" onclick="bindContent(\''+cId+'\',\''+URL+'&status=3\',\''+errorMsg+'\');")>\u672c\u6708</a>&nbsp;&nbsp;&nbsp;<a href="#" onclick="bindContent(\''+cId+'\',\''+URL+'&status=4\',\''+errorMsg+'\');")>\u5168\u90e8</a>';
	/*alert(args);*/
	/*document.getElementById(kId).innerHTML='&nbsp;&nbsp;&nbsp;<a href="#" onclick='+oneUrl+mUrl+twoUrl+'>&#x672c;&#x5468;</a>&nbsp;&nbsp;&nbsp;<a href="#" >������������</a>&nbsp;&nbsp;&nbsp;<a href="#">������������</a>';*/
	document.getElementById(kId).innerHTML=args;
}

function getCurrent(mId,cId,kId,URL,errorMsg){
	getCurrentClass(mId);
	bindContent(cId,URL,errorMsg);

	document.getElementById(kId).innerHTML="";
}