function getContent(sMainName,sSubName)
{
var xmlHttp,strText="a";
Try.these(
        function() {xmlHttp = new XMLHttpRequest();},
        function() {xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");},
function() {xmlHttp = new ActiveXObject("Microsoft.XMLHTTP")}
        ); var url = '/cn/data_get.asp';
var pars = '?strClass=' + sMainName + '&strTitle=' + sSubName;
//document.write(url+pars);
xmlHttp.onreadystatechange = function()
{
if(xmlHttp.readyState == 4)
if(xmlHttp.status == 200)
strText = xmlHttp.responseText;
//return strText;
} xmlHttp.open("GET", url+pars,true);
xmlHttp.send(null);

return strText;

//return request.responseText+"";

}
以上函数中,我向把取得的内容直接返回给函数本身..请问该如何修改?