<!--

//------------------------------------------------showmore
var new_window;
function showmore(id,path) {  //reloads the window if Nav4 resized
	wdwidth=700;
	wdheight=600;
	wdleft=(screen.width-wdwidth)/2;
	wdtop=20;//(screen.height-wdheight)/2;
	//同时考虑admin目录下的调用问题，所有../Show_more.php
	if(path==null||path==1){
		path="./";
	}else{
		if(path==2){
			path="../";
		}else{
			path="./";
		}
	}
	new_window =window.open(path+'Show_more.php?doc_id='+id,'show_more','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+wdwidth+'px,height='+wdheight+'px,top='+wdtop+'px,left='+wdleft+'px');
	window.setTimeout("new_window.focus();",300);
}

function showleave(id,path) {  //reloads the window if Nav4 resized
	wdwidth=700;
	wdheight=600;
	wdleft=(screen.width-wdwidth)/2;
	wdtop=20;//(screen.height-wdheight)/2;
	//同时考虑admin目录下的调用问题，所有../Show_more.php
	if(path==null||path==1){
		path="./";
	}else{
		if(path==2){
			path="../";
		}else{
			path="./";
		}
	}
	new_window =window.open(path+'Show_leave.php?doc_id='+id,'show_more','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+wdwidth+'px,height='+wdheight+'px,top='+wdtop+'px,left='+wdleft+'px');
	window.setTimeout("new_window.focus();",300);
}
//------------------------------------------------gotoshow
function gotoshow(pageid,docid) {  //reloads the window if Nav4 resized
	var tourl="";
	if (pageid>=1000){
		switch (pageid) {
			case 9999:
				tourl="OldNews.php";
				break;
			case 99999:
				tourl="EmailToUs.php";
				break;
			default:
				tourl="index.php";
				break;
		}
	}else{
		tourl="index.php?page_id="+pageid;
		if (docid!=0){tourl=tourl+"#link"+docid;}
	}
	
	location.href=tourl;
}
//------------------------------------------------editdiv
var hd;
var bd="";
var pid="";
var height=0;
var width=0;
function editdiv(id,w,h){
	hd=0;
	if (h>550){h=550;}
	wdwidth=700;
	wdheight=h+160;
	height=h+40;
	width=w+25;

	par="dialogWidth:"+wdwidth+"px;dialogHeight:"+wdheight+"px;center:yes;status:no;";
	window.showModalDialog("./admin/One_modify.php?model=modify&id="+id,window,par);
	if (hd==1)
	{
		vform.ddid.value=id;
		vform.ddbd.value=bd;
		vform.ddpid.value=pid;
		vform.submit();
	}
}
//------------------------------------------------双击页面后，滚动
var currentpos,timer;
function initialize()
{
	timer=setInterval("scrollwindow()",50);
}
function sc(){
	clearInterval(timer);
}
function scrollwindow()
{
	currentpos=document.body.scrollTop;
	window.scroll(0,++currentpos);
	if (currentpos != document.body.scrollTop)
	sc();
}

function release_onchange(release_id)
{
     href="OldNews.php?doc_release_id=" + release_id
     location.href=href
}

document.onmousedown=sc;
document.ondblclick=initialize;

//------------------------------------------------提交
document.write("<form name=\"vform\"  ACTION=\"./admin/One_modify.php\"  METHOD=POST>");
document.write("<input name=ddid type=hidden value=\"\">");
document.write("<input name=ddbd type=hidden value=\"\">");
document.write("<input name=ddpid type=hidden value=\"\">");
document.write("</form>");
//------------------------------------------------
// -->

