/**
	* 初始化一个xmlhttp对象
	*/
	function InitAjax()
	{
	　var ajax=false; 
	　try { 
	　　ajax = new ActiveXObject("Microsoft.XMLHTTP"); 
	    ajax.setRequestHeader("Cache-Control","no-cache");
	　} catch (e) { 
	　　try { 
	　　　ajax = new ActiveXObject("Msxml2.XMLHTTP"); 
		  
	　　} catch (E) { 
	　　　ajax = false; 
	　　} 
	　}
	　if (!ajax && typeof XMLHttpRequest!='undefined') { 
	　　ajax = new XMLHttpRequest(); 
	　} 
	  
	　return ajax;
	}
	function ajax_send(Url,Dis)
	{	
	  //loadBar(1);
	　//如果没有把参数newsID传进来
	  view = document.getElementById('view_more'); 
	  if (view)
	  {
		  StartThis();
	  }
	　if (typeof(Url) == 'undefined')
	　{
	　　return false;
	　}
	  if (typeof(Dis) == 'undefined')
	　{
	　　return false;
	　}

	  Url += "&random="+Math.random();
	  Url += "&timestamp="+new Date().getTime();
	　//需要进行Ajax的URL地址
	　var url = Url;

	　//获取新闻显示层的位置
	　var show = document.getElementById(Dis); 
	  show.style.display="";

	　//实例化Ajax对象
	　var ajax = InitAjax();

	　//使用Get方式进行请求
	　ajax.open("GET", url, true); 

	　//获取执行状态
	　ajax.onreadystatechange = function() { 
	　　//如果执行是状态正常，那么就把返回的内容赋值给上面指定的层
	　　if (ajax.readyState == 4 && ajax.status == 200) { 
	　　　	show.innerHTML = ajax.responseText; 
	　　} 
	　}
	　//发送空
	　ajax.send(null); 
	}

	//回调的JavaScript函数，用来在父窗口显示信息
	function ajax_post(Msg,Dis)
	{
	　//把父窗口显示消息的层打开
	　parent.document.getElementById(Dis).style.display = "block";
	　//把本窗口获取的消息写上去
	　parent.document.getElementById(Dis).innerHTML = Msg;
	　//并且设置为3秒后自动关闭父窗口的消息显示
	　//setTimeout("parent.document.getElementById('message').style.display = 'none'", 3000);
	}
	function StartThis()
	{	
	   var view_more = document.getElementById("view_more");
	   view_more.style.height="600px";
	   view_more.style.clientHeight="600px";
	   view_more.style.left=(document.body.clientWidth/2-view_more.clientWidth/2)+"px";
	   //view_more.style.top=(document.body.scrollTop+document.body.clientHeight/2-view_more.clientHeight/2)+"px";
	   view_more.style.top=(document.body.scrollTop+document.body.clientHeight/2-200)+"px";
	   document.getElementById("view_more").style.display="block";
	}

	function CloseThis()
	{	
		
		document.getElementById("view_more").style.display="none";
		document.getElementById("view_more").innerHTML = "";
		view_more.style.height="600px";
	    view_more.style.clientHeight="600px";
		
	}
	function WdMaxThis()
	{	
		var Wdresize=formwindows.style.width;
		formwindows.style.width="100%";
	}
	function WdMixThis()
	{	
		formwindows.style.width=Wdresize;
	}
	function Show_Hide_Menu(){

		if(window.parent.home_Frame.cols=="0,*"){
		//document.getElementById("menuICON").src="../image/hidemenu.gif";
		//document.getElementById("menuICON").alt="隐藏菜单"
		window.parent.home_Frame.cols="182,*";
		}
		else{
		//document.getElementById("menuICON").src="../image/showmenu.gif";
		//document.getElementById("menuICON").alt="显示菜单"
		window.parent.home_Frame.cols="0,*";}
	}

	function Hide_Menu(){
		//document.getElementById("menuICON").src="../image/hidemenu.gif";
		//document.getElementById("menuICON").alt="隐藏菜单"
		window.parent.home_Frame.cols="0,*";
	}

	function Show_Menu(){
		//document.getElementById("menuICON").src="../image/hidemenu.gif";
		//document.getElementById("menuICON").alt="隐藏菜单"
		window.parent.home_Frame.cols="182,*";
	}
