
function ShowComm(urlk,sid,str)
{   
	var xmlHttp = false;
    try{
        xmlHttp = new XMLHttpRequest;
    }catch(e){
        try{
            xmlHttp=new ActiveXObject("MSXML2.XMLHTTP");
        }catch(e2){
            try{
                xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
            }catch(e3){
                xmlHttp = false;
            }
        }
    }
if(xmlHttp){
	
		  xmlHttp.open('POST',urlk+'_'+sid+'.html',true);
		  xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		  var SendData = 'y='+Math.random();
		  xmlHttp.send(SendData);
		  xmlHttp.onreadystatechange=function(){
		       if(xmlHttp.readyState==4){
			       if(xmlHttp.status==200)
			         {
			         
			        document.getElementById(str).innerHTML=xmlHttp.responseText;
							if(str!='dianping')document.getElementById("Skey").focus();
			         	if((urlk.split("_")[0]=="Treatment")&&(str='dianping'))ShowComm(urlk.replace("Treatment","Treatmentlist")+'_'+0,0,'SFM_Content');
			         	if((urlk.split("_")[0]=="disease")&&(str='dianping'))ShowComm(urlk.replace("disease","diseaselist")+'_'+0,0,'SFM_Content');
			         	xmlHttp=null;
			         	delete xmlHttp;
                
			         	}
			       else
			         {document.getElementById(str).innerHTML='出错提示：'+xmlHttp.statusText;
			         	}
		         }
		     else{
				      document.getElementById(str).innerHTML='<div align=center>数据载入中...</div>';
					   }
	  	    }
		}
		
}


