//删除信息提示
	function ConfirmDel(hrefs)
	{
		var flag;
		flag = confirm("是否真的要删除此信息？");
		if(flag == true)
			location.href =hrefs;
	}
//信息搜索
	function info_search()
	{
		var keyValue;
		keyValue=window.showModalDialog("news_find.asp","selectcolor","dialogHeight:230px;dialogWidth:398px;dialogTop;dialogLeft;center:yes;help:No;resizable:No;status:No;");
		if(keyValue!= null) 
		{
			document.frmlist.keyWord.value=keyValue;
			document.frmlist.submit();
		}
	}
//首 页
	function firstPage(TotalPage,Pageno,hrefs)
	{
		if(Pageno-1<1)
		{
			alert("Aleady the Home Page!");
			return;
		}
		location.href=hrefs;
	}
//上一页
	function upPage(TotalPage,Pageno,hrefs)
	{
		if(Pageno-1<1)
		{
			alert("Aleady the First Page");
			return;
		}
		location.href=hrefs;
	}
//下一页
	function downPage(TotalPage,Pageno,hrefs)
	{
		if(TotalPage==Pageno)
		{
			alert("Aleady the End Page");
			return;
		}
		location.href=hrefs;
	}
//末 页
	function endPage(TotalPage,Pageno,hrefs)
	{
		if(Pageno==TotalPage)
		{
			alert("Aleady the End Page");
			return;
		}
		location.href=hrefs;
	}

//转到第几页
	function gotopage(hrefs)
	{
		var Pno;
		Pno = document.all("pageno").value;
		location.href=hrefs+"&pageno="+Pno;		
		//document.frmlist.submit();
	}
//发布
	function news_send()
	{
		var seled=checkselect();
		var flag;
		if(!seled)
		{
			alert("请选择要发布的信息！");
			return;
		}
		else
		{
			flag = confirm("是发布已选信息？");
			if(flag==true)
			{
				document.frmlist.Saction.value="news_sub";
				document.frmlist.action="news_man.asp";
				document.frmlist.submit();	
			}
		}
	}
//删除
	function info_del(strHref)
	{
		var seled=checkselect();
		var flag;
		if(!seled)
		{
			alert("请选择要审核的信息！");
			return;
		}
		else
		{
			flag = confirm("是否审核已选信息？");
			if(flag==true)
			{
				document.frmlist.Saction.value="info_del";
				document.frmlist.action=strHref;
				document.frmlist.submit();	
			}
		}
	}
	
//删除
	function del_info(strHref)
	{
		var seled=checkselect();
		var flag;
		if(!seled)
		{
			alert("请选择要删除的信息！");
			return;
		}
		else
		{
			flag = confirm("是否删除已选信息？");
			if(flag==true)
			{
				document.frmlist.Saction.value="info_del";
				document.frmlist.action=strHref;
				document.frmlist.submit();	
			}
		}
	} 

