var http = getXMLHTTPObj();
var http2 = getXMLHTTPObj();
var http3 = getXMLHTTPObj();

function getXMLHTTPObj()
{
	var C = null;
	try{
		C = new ActiveXObject("Msxml2.XMLHTTP");
	}catch(e){
		try{
			C = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(sc){
			C = null;
	   }
	}
	if( !C && typeof XMLHttpRequest != "undefined" )
	{
		C = new XMLHttpRequest();
	}return C;
 }


function AjaxGetCommentlist(newsid){
 	//http.open('get', 'http://localhost:8080/ccweb/frontpage/Newnews/in_commentlist.jsp?newsid='+newsid);
	//http.open('get', 'http://www.cc4cc.com/frontpage/Newnews/in_commentlist.jsp?newsid='+newsid);
	//http.onreadystatechange = CommentlistResponse;
	//http.send(null);
	//http2.open('get', 'http://localhost:8080/ccweb/head2.jsp');
	http2.open('get', 'http://www.cc4cc.com/head2.jsp');
	http2.onreadystatechange = Head2Response;
    http2.send(null);

	//http3.open('get', 'http://localhost:8080/ccweb/frontpage/Sharepage/index_top.jsp');
	http3.open('get', 'http://www.cc4cc.com/frontpage/Sharepage/index_top.jsp');
	http3.onreadystatechange = IndexTopResponse;
    http3.send(null);
}

/*function CommentlistResponse() {
    if(http.readyState == 4){
        var response = http.responseText;
        document.getElementById("div_commentlist").innerHTML = response;
    }
}*/

function Head2Response() {
    if(http2.readyState == 4){
        var response = http2.responseText;
        document.getElementById("div_header2").innerHTML = response;
    }
}

function IndexTopResponse() {
    if(http3.readyState == 4){
        var response = http3.responseText;
        //document.getElementById("div_index_top").innerHTML = response;
		//alert(response);
    }
}