	//图片自动调整的模式，1为按比例调整 ，2 按大小调整。
	var resizemode=1
	function imgresize(o){
	 	if (resizemode==2 || o.onmousewheel){
	 	if(o.width > 600 ){
				o.style.width='600px';
			}
			if(o.height > 800){
				o.style.height='800px';
			}
		}else{
		var parentNode=o.parentNode.parentNode
		if (parentNode){
		if (o.offsetWidth>=parentNode.offsetWidth) o.style.width='90%';
		}else{
		var parentNode=o.parentNode
		if (parentNode){
			if (o.offsetWidth>=parentNode.offsetWidth) o.style.width='90%';
			}
		}
	}
	}
	
function SameH(Div1,Div2) //左右高度
{
var a=document.getElementById("Div2")
var b=document.getElementById("Div1")
if (a.scrollHeight<b.scrollHeight)     
{
a.style.height=b.scrollHeight+"px"; 
}
else
{
b.style.height=a.scrollHeight+"px"; }
}



	
function fodc(obj) //标签
{
//var p = document.getElementById("Fod_list").getElementsByTagName("div");
var pc = obj.parentNode.parentNode.parentNode.parentNode;
//alert(p.innerHTML);
var pc1 = obj.parentNode.getElementsByTagName("div");
var tc = pc.getElementsByTagName("tr")[1].getElementsByTagName("div");
var nc = pc1.length;
for(i=0;i<nc;i++)
{
if(pc1[i] == obj)
{
pc1[i].className = "txsc";
tc[i].className = "dis";
}
else
{
pc1[i].className = "txcardc";
tc[i].className = "undis";				
}
}
}
function news_search(theForm)
{
  if (theForm.k.value == "")
  {
 alert("请输入要搜索的内容");
 theForm.k.focus();
 return (false);
  }
  return (true);
}
document.write("<script language='JavaScript' src='/inc/main.js'></script>");