function show_div(){   
var obj_div=document.getElementById("morelinkbox");   
obj_div.style.display=(obj_div.style.display=='none')?'block':'none'; 
}    
function   hide_div(){
var obj_div=document.getElementById("morelinkbox");   
obj_div.style.display=(obj_div.style.display=='none')?'block':'none';    
 }


function iframeAutoFit()
{
var ex;
    try
    {
        if(window!=parent)
        {
            var a = parent.document.getElementsByTagName("test");
            for(var i=0; i<a.length; i++) 
            {
                if(a[i].contentWindow==window)
                {
                    var h1=0, h2=0;
                    if(document.documentElement && document.documentElement.scrollHeight)
                    {
                        h1=document.documentElement.scrollHeight;
                    }
                    if(document.body) h2=document.body.scrollHeight;
                    var h=Math.max(h1, h2);
                    if (window.ActiveXObject) { h += 4; }
                    else {h += 4;}
                    a[i].style.height = h + "px";
                    window.removeEventListener('resize', iframeAutoFit, false);//¼æÈÝ¹È¸èä¯ÀÀÆ÷Ê±ÒªÈ¥µôRISZE¼àÌý
                }
            }
        }
    }
catch (ex){}
}
if(document.attachEvent)
{
    window.attachEvent("onload", iframeAutoFit);
    window.attachEvent("onresize", iframeAutoFit);
}
else
{
    window.addEventListener('load', iframeAutoFit, false);
    window.addEventListener('resize', iframeAutoFit, false);
}




function searchaction()
{
if(document.getElementById("searchtext").value!="")
 {
 var desurl="http://www.datihu.com/mwjc/SerchNews.aspx?title="+ escape(document.getElementById("searchtext").value)+"&typeid=1";
 window.location.href =desurl;
}
else
{
window.location.href="http://group.datihu.com";
}
 return true;
} 
