
    function change_focus_main(strObjName, idx, strFnName)
    {
	    var theObj = document.getElementById(strObjName)
	    var div = theObj.getElementsByTagName('div')
	    if (div.length == 0) {return;}
	    var div_title = div[0]
	    var the_ul = div_title.getElementsByTagName('ul')
	    var the_li = the_ul[0].getElementsByTagName('li')
	    for (var i = 0; i < the_li.length; i++){the_li[i].className = 'menu'}
	    the_li[idx].className = 'menu cur'
	    eval(strFnName)
    }
    function change_focus_right(strObjName, idx, strFnName)
    {
	    var theObj = document.getElementById(strObjName)
	    var div = theObj.getElementsByTagName('div')
	    if (div.length == 0) {return;}
	    var div_title = div[0]
	    var the_ul = div_title.getElementsByTagName('ul')
	    var the_li = the_ul[0].getElementsByTagName('li')
	    for (var i = 1; i < the_li.length; i++){the_li[i].className = 'menu'}
	    the_li[idx].className = 'menu cur'
	    eval(strFnName)
    }

    //动漫新闻
    function ajax_event_newstopic(tarURL)
    {
	    http.open("GET", tarURL, true)
	    http.onreadystatechange = handleHttpRequest_newstopic
    	
	    http.send(null);
//	    return;
    }
    function handleHttpRequest_newstopic()
    {
	    if(http.readyState == 4)
	    {
		    if(http.status == 200)
		    {
			    var txtDocument = unescape(http.responseText);
			    var theObj = document.getElementById("c1_box_content_newstopic")
			    theObj.innerHTML = txtDocument
		    }
	    }
    }

    //动漫新闻
    function ajax_event_updates(tarURL)
    {
	    http.open("GET", tarURL, true)
	    http.onreadystatechange = handleHttpRequest_updates
	    http.send(null);
//	    return;
    }
    function handleHttpRequest_updates()
    {
	    if(http.readyState == 4)
	    {
		    if(http.status == 200)
		    {
			    var txtDocument = unescape(http.responseText);
			    var theObj = document.getElementById("c1_box_content_updates")
			    theObj.innerHTML = txtDocument
		    }
	    }
    }


    //在线漫画
    function ajax_event_onlinecomic(tarURL)
    {
	    http.open("GET", tarURL, true)
	    http.onreadystatechange = handleHttpRequest_onlinecomic
	    http.send(null);
//	    return;
    }
    function handleHttpRequest_onlinecomic()
    {
	    if(http.readyState == 4)
	    {
		    if(http.status == 200)
		    {
			    var txtDocument = unescape(http.responseText);
			    var theObj = document.getElementById("c1_box_content_sort")
			    theObj.innerHTML = txtDocument
		    }
	    }
    }


    //动漫剧场
    function ajax_event_books(tarURL)
    {
	    http.open("GET", tarURL, true)
	    http.onreadystatechange = handleHttpRequest_books
	    http.send(null);
//	    return;
    }
    function handleHttpRequest_books()
    {
	    if(http.readyState == 4)
	    {
		    if(http.status == 200)
		    {
			    var txtDocument = unescape(http.responseText);
			    var theObj = document.getElementById("c2_box_content_comic")
			    theObj.innerHTML = txtDocument
		    }
	    }
    }
	
	
    //动漫剧场
    function ajax_event_anime(tarURL)
    {
	    http.open("GET", tarURL, true)
	    http.onreadystatechange = handleHttpRequest_anime
	    http.send(null);
//	    return;
    }
    function handleHttpRequest_anime()
    {
	    if(http.readyState == 4)
	    {
		    if(http.status == 200)
		    {
			    var txtDocument = unescape(http.responseText);
			    var theObj = document.getElementById("c2_box_content_anime")
			    theObj.innerHTML = txtDocument
		    }
	    }
    }

    //VIP共享
    function ajax_event_vip(tarURL)
    {
	    http.open("GET", tarURL, true)
	    http.onreadystatechange = handleHttpRequest_vip
	    http.send(null);
//	    return;
    }
    function handleHttpRequest_vip()
    {
	    if(http.readyState == 4)
	    {
		    if(http.status == 200)
		    {
			    var txtDocument = unescape(http.responseText);
			    var theObj = document.getElementById("c2_box_content_vip")
			    theObj.innerHTML = txtDocument
		    }
	    }
    }

    //动漫排行
    function ajax_event_sort(tarURL)
    {
	    http.open("GET", tarURL, true)
	    http.onreadystatechange = handleHttpRequest_sort
	    http.send(null);
//	    return;
    }
    function handleHttpRequest_sort()
    {
	    if(http.readyState == 4)
	    {
		    if(http.status == 200)
		    {
			    var txtDocument = unescape(http.responseText);
			    var theObj = document.getElementById("c2_box_content_newbook")
			    theObj.innerHTML = txtDocument
		    }
	    }
    }

    //新书推荐
    function ajax_event_newbook(tarURL)
    {
	    http.open("GET", tarURL, true)
	    http.onreadystatechange = handleHttpRequest_newbook
	    http.send(null);
//	    return;
    }
    function handleHttpRequest_newbook()
    {
	    if(http.readyState == 4)
	    {
		    if(http.status == 200)
		    {
			    var txtDocument = unescape(http.responseText);
			    var theObj = document.getElementById("c2_box_content_newbook")
			    theObj.innerHTML = txtDocument
		    }
	    }
    }
    
    //缤纷天地
    function ajax_event_gallery(tarURL)
    {
	    http.open("GET", tarURL, true)
	    http.onreadystatechange = handleHttpRequest_gallery
	    http.send(null);
//	    return;
    }
    function handleHttpRequest_gallery()
    {
	    if(http.readyState == 4)
	    {
		    if(http.status == 200)
		    {
			    var txtDocument = unescape(http.responseText);
			    var theObj = document.getElementById("c2_box_content_gallery")
			    theObj.innerHTML = txtDocument
		    }
	    }
    }
    //动漫文学
    function ajax_event_wenxue(tarURL)
    {
	    http.open("GET", tarURL, true)
	    http.onreadystatechange = handleHttpRequest_wenxue
	    http.send(null);
//	    return;
    }
    function handleHttpRequest_wenxue()
    {
	    if(http.readyState == 4)
	    {
		    if(http.status == 200)
		    {
			    var txtDocument = unescape(http.responseText);
			    var theObj = document.getElementById("c2_box_content_wenxue")
			    theObj.innerHTML = txtDocument
		    }
	    }
    }
