document.writeln("<link href='"+web_dir+"p_inc/news/style.css' type=text/css rel=stylesheet>");

document.writeln("<div id=\"News_nofview1\" class=\"News_hidden\">");
document.writeln("	<div class=\"News_boxtit\">");
document.writeln("		<span class=\"News_boxname\"><img src=\""+web_dir+"p_inc/news/img\/box1.gif\" width=16 height=16 align=\"absMiddle\" alt=\"窗口\" \/> 查看信息<\/span> ");
document.writeln("		<span class=\"News_boxx\"><img src=\""+web_dir+"p_inc/news/img\/cross_circle.gif\" width=16 height=16 alt=\"关闭\" align=\"absMiddle\" style=\"cursor: pointer\"onclick=\"News_divclose(\'News_nofview1\')\" \/><\/span>");
document.writeln("	<\/div>");
document.writeln("	<div id=\"News_cont\">");
document.writeln("		<div class=\"News_title1\" id=\"News_title1\"><\/div>");
document.writeln("		<div class=\"News_time1\" id=\"News_time1\"><\/div>");
document.writeln("		<div class=\"News_cont1\" id=\"News_cont1\"><\/div>					");
document.writeln("	<\/div>");
document.writeln("<\/div>");

var News_xmlHttp;
function qingtiandy_News_cxhr()
{
	try{
		News_xmlHttp=new XMLHttpRequest();
		}
	catch(e){
		News_xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}	
}
function qingtiandy_$(id){
	return document.getElementById(id);	
}


String.prototype.qingtiandy_Trim = function() { return this.replace(/(^\s*)|(\s*$)/g, "")}

function News_divclose(objid){ //关闭一个窗口
 var auobj=document.getElementById(objid);
 auobj.className="News_hidden";
}
function News_view(id){
  var auobj=document.getElementById("News_nofview1");       
	auobj.className="";    
	var w=document.documentElement.clientWidth / 2 -  270; 
	auobj.style.left = (document.documentElement.scrollLeft+document.documentElement.offsetWidth/2-550/2)+"px"; 
	auobj.style.top = (document.documentElement.scrollTop+document.documentElement.offsetHeight/2-300/2)+"px";
	qingtiandy_News_cxhr();		
	var url=baocuo_dir+"p_inc/news/save.asp";
	var t_post="id="+id;
	News_xmlHttp.open("post",url,true);
	News_xmlHttp.onreadystatechange=News_view_ok;
	News_xmlHttp.setRequestHeader("Content-Length",t_post.length);
	News_xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
	News_xmlHttp.send(t_post);	
}
function News_view_ok(){
	if(News_xmlHttp.readyState==4)
	{	
		if (News_xmlHttp.status==200)
		{
			var temp_x=News_xmlHttp.responseText;
			var s1,s2,s3,s4
			s1=temp_x.split("{|}")
			s2=s1[0]
			s3=s1[1]
			s4=s1[2]
			qingtiandy_$("News_title1").innerHTML=s2
			qingtiandy_$("News_time1").innerHTML=s4
			qingtiandy_$("News_cont1").innerHTML=s3
		}
	}
}
