//透明层加载
document.write("<div id=\"AlphaDiv\" style=\"filter: Alpha(Opacity=40); position:absolute; width:100%; height:100%; z-index:1; background-color: #CCCCCC; layer-background-color: #CCCCCC; left: 0px; top: 0px;visibility:hidden\" ></div>");

var attaIdx = 0;
var IsIE;
var ExistAttaInfo = new Array();

function $(e) { return document.getElementById(e); }

function trim(str) {
    return str.replace(/(^\s*)|(\s*$)/g, "");
}
//---------------------新闻公告附件查看---------------------------
//添加修改公告通知
function AddNotice(iType,id)
{
	num = window.showModalDialog("../News/NoticeEdit.aspx?url_Type="+iType+"&url_iNoticeID="+id, "", "dialogWidth:900px; dialogHeight:600px; status:no; directories:yes;scrollbars:no;Resizable=no;help:no;scroll:no ");
	if(num!=undefined)
	{
		location.href="../News/NoticeList.aspx?url_CateID="+iType;
	}
}
function NoticeView(id)
{
	var qminoa = window.open("NoticeView.aspx?url_id="+id,"","resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,top=0,left=0,width=900,height=700");
	qminoa.moveTo(0,0);
	qminoa.resizeTo(screen.availWidth,screen.availHeight);
}
//----------------------显示新闻-------------------------------
function NewsView(cateid,id)
{
    var qminoa = window.open("ShowInfo.aspx?cateid=" + cateid + "&url_id=" + id, "", "resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,top=0,left=0,width=900,height=700");
	qminoa.moveTo(0,0);
	qminoa.resizeTo(screen.availWidth,screen.availHeight);
}
function NewsView2(id)
{
	location.href="NewsView.aspx?url_id="+id;
}
//网站管理级别
function DownUrl(id,name,PowerRank,Manage)
{
	document.Form1.DownCateID.value=id;
	document.Form1.DownCateName.value=name;
	document.Form1.DownPowerRank = PowerRank;
	MainFrame.location="DownClassView.aspx?Act=&id="+id+"&Manage="+Manage;
	MainFrame.MM_showHideLayers('LayerShowLoading','','show');
}
//栏目管理级别
function DownCateUrl(id)
{
	MainFrame.location="DownClassView.aspx?Act=&id="+id+"&Manage="+Manage;
	MainFrame.MM_showHideLayers('LayerShowLoading','','show');
}
//密码修改
function changePwd()
{
	window.showModalDialog("fmChangePsw.aspx", "", "dialogWidth:300px; dialogHeight:200px; status:no; directories:yes;scrollbars:no;Resizable=no;help:no;scroll:no ");
}
function homechangePwd()
{
	window.showModalDialog("WebManage/WebFrame/fmChangePsw.aspx", "", "dialogWidth:300px; dialogHeight:200px; status:no; directories:yes;scrollbars:no;Resizable=no;help:no;scroll:no ");
}
//选择下载栏目
function selectDownUrl(id,name,PowerRank)
{
	window.returnValue=name+"#"+id;
	window.top.close();
}
//点击链接时出现Loading提示
function MM_reloadPage(init){
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d){
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers(){
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//by zhy
//打开添加用户界面
function AddUser()
{
    var returnValue = window.showModalDialog("AddUser.aspx", "", "dialogWidth:300px; dialogHeight:200px; status:no; directories:yes;scrollbars:no;Resizable=no;help:no;scroll:no ");
    if (returnValue == 1) {
	    location.reload();
	}
}


//显示下载资料信息
function DownView(id,name)
{
	var Down = window.open("DownView.aspx?CategoryNavigate=down&url_DownID="+id+"&url_DownClassName="+name);
	Down.moveTo(0,0);
	Down.resizeTo(screen.availWidth,screen.availHeight);
}

 //选中某条记录后给SelectText控件负值
 //多选
 function SelectMultiItems(strValue,bChecked)
 {
	if(document.all['SelectText']!=null)
	{
		document.all['SelectText'].value=document.all['SelectText'].value.replace(strValue+',','');//从原有中移除
		if(bChecked)
		{
			document.all['SelectText'].value+=strValue+',';
		}
	}
 }

//删除响应
function DelConfirm(msg)
{
    var confirmmsg=msg
    if (msg!=null) confirmmsg=msg;
    //判断是否选中
    if (document.Form1.SelectText.value!="")
    {
		if (window.confirm(confirmmsg))
		{
			return true ;
		}
    }
	return false;
 
 }//~~
 function DelShareConfirm(msg,obj)
{
    var confirmmsg=msg
    if (msg!=null) confirmmsg=msg;
    //判断是否选中
    if (document.all[obj].value!="")
    {
		if (window.confirm(confirmmsg))
		{
			return true ;
		}
    }
	return false;
 
 }//~~
 
 function viewbbs(id,BoardID)
 {
	window.open("bbs/BBSDisp.aspx?BoardID="+BoardID+"&ID="+id);
 }
 
 function openoa()
 {
	//window.top.location.href='../../logout.aspx';
	window.top.close();
 }
 
 //显示留言
 function ViewGuest(id)
 {
 	num = window.showModalDialog("/webManage/GuestBook/ViewGuest.aspx?url_id="+id, "", "dialogWidth:600px; dialogHeight:550px; status:no; directories:yes;scrollbars:no;Resizable=no;help:no;scroll:auto ");
	if(num!=undefined)
	{
		location.href="/webManage/GuestBook/index.aspx";
	}
 }
 
function Logon1()
{
	num = window.showModalDialog("logon.aspx", "", "dialogWidth:400px; dialogHeight:200px; status:no; directories:yes;scrollbars:no;Resizable=no;;help:no;scroll:no ");
	if(num!=undefined)
	{
		var sValue=num.split('|');
		loginSystem(sValue[0],sValue[1]);
	}
}
 
 //进入网站管理
 function loginSystem(strloginname,pw)
 {
	var qminoa = window.open('webManage/default.aspx?Manage=manage','_webmanage_fastweb','toolbar=no,menubar=no,titlebar=yes,directories=no,resizable=yes,status=yes,fullscreen=no,top=0,left=0,width=900,height=700');
	qminoa.moveTo(0,0);
	qminoa.resizeTo(screen.availWidth,screen.availHeight);
 }
 function loginDMSystem(strloginname,pw)
 {
	var qminoa = window.open('/FastMan/logon/?fast='+strloginname+'&man='+pw,'_manage_fastinfo','toolbar=no,menubar=no,titlebar=yes,directories=no,resizable=yes,status=yes,fullscreen=no,top=0,left=0,width=900,height=700');
	//var qminoa = window.open('webManage/default.aspx','_manage','toolbar=no,menubar=no,titlebar=yes,directories=no,resizable=yes,status=yes,fullscreen=no,top=0,left=0,width=900,height=700');
	qminoa.moveTo(0,0);
	qminoa.resizeTo(screen.availWidth,screen.availHeight);
 }
 //加入首页
 function addhomepage()
 {
	var url="http://"+window.location.host+"/";
	sethome.style.behavior='url(#default#homepage)';
	sethome.setHomePage(url);
 }
 
 //加入收藏夹
 function addFavorite()
 {
	 var url="http://"+window.location.host+"/";
	 window.external.AddFavorite(url,'浙江省水利水电勘测设计院');
 }
 
 //添加下载栏目
 function AddCategory(id,name,PowerRank)
 {
	document.Form1.ParentName.value=name;
	document.Form1.ParentID.value=id;
	document.Form1.PowerRank.value=PowerRank;
 }
 
 //前台显示下载栏目
 function viewDownList(id,name,PowerRank)
 {
	DownList.location.href="iframeDownList.aspx?url_DownClassID="+id+"&url_DownClassName="+name+"&url_PowerRank="+PowerRank;
 }
 
 function viewDownList2(id,name,PowerRank)
 {
	location.href="DownList.aspx?url_DownClassID="+id+"&url_DownClassName="+name+"&url_PowerRank="+PowerRank;
 }
 
 //添加网站栏目
 function AddWebCategory(id,name,PowerRank)
 {
	document.Form1.ParentName.value=name;
	document.Form1.ParentID.value=id;
	document.Form1.PowerRank.value=PowerRank;
 }
  //编缉网站栏目
 function EditWebCategory(id,name,PowerRank,ParentID,manage)
 {
	EditFrame.location.href="edit.aspx?CateID="+id+"&ParentID="+ParentID+"&manage="+manage+"&PowerRank="+PowerRank;
 }
 //显示载入动画
 function showLoad()
 {
	try
	{
		parent.MainFrame.MM_showHideLayers('LayerShowLoading','','show');
	}
	catch(e)
	{}
 }
 //加入信任站点
function AddFiduciary()
{
	var WshShell=new ActiveXObject("WScript.Shell");
	WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\fast.com.cn","");
	WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\fast.com\\www","");
	WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\fast.com\\www\\http","2","REG_DWORD");
	alert("写入成功");
}
//企业概况显示
function ViewES(id,name,PowerRank)
{
	location.href="?CateID="+id+"&CateName="+name+"&PowerRank="+PowerRank;
}

//2007-01-10 by xqf
//首页弹出窗口
function homeopen()
{
	window.open("happynewyear.htm","happynewyear","resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,top=0,left=0,width=800,height=600");
}
//得到当前文本框输入字符的长度
function LenStr(objValue)
{
	var cArr = objValue.match(/[^\x00-\xff]/ig); 
	return objValue.length + (cArr == null ? 0 : cArr.length);
}
function GetLength(objname)
{
	var objLen=LenStr(objname.value); //字节长度
	var objLength=objname.maxLength;  //字符长度
	if(parseInt(objLen)>parseInt(objLength))
	{
		alert("该项最多能输入"+parseInt(objname.maxLength/2)+"个汉字！多于字符将自动截断！");
		objname.select();
		var objValue=objname.value;
		objname.value=objValue.substring(0,objLength/2);
		return false;
	}
}
function Logon()
{
	num = window.showModalDialog("logon.aspx", "", "dialogWidth:400px; dialogHeight:200px; status:no; directories:yes;scrollbars:no;Resizable=no;;help:no;scroll:no ");
	if(num!=undefined)
	{
		var sValue=num.split('|');
		loginSystem(sValue[0],sValue[1]);
	}
}
//***********************************多个附件上传**********************************************************
function fInitMSIE(){
	if (navigator.userAgent.indexOf("MSIE") != -1){
		IsIE = true;
	}else{
		IsIE = false;
	}
}
fInitMSIE();
// 增加附件函数 ()，增加到 idfilespan,基数为 attaIdx 。
function add(intputWidth) {

	addfile("idfilespan",attaIdx,intputWidth);
	attaIdx++;
	location.href="#downfocus";
	return false;
}
function exist(fileId) {
      var file = document.getElementById(fileId);
	  var result = false;
	  if ( file !=null ) {
			if ( file.value != null && file.value != "") {
				result = existFile( file);
			}
	  }
	  if( result)
	  {
		alert("已存在同名附件。"+file.value);
	  }
}
function getfilename( attaName ) {
	var s = attaName.lastIndexOf( '\\' );
	return attaName.substr(s+1, attaName.length - s -1);
}
//added by alun
function existFile( file)
{
	var form = document.Form1;
	for ( var i= 0 ; i < form.elements.length ; i ++ ) {				    
		if ( form.elements[i].type == "file" && form.elements[i].name != file.name ) {
			if ( file.value == form.elements[i].value ) {
				return true;
			}
		}
	}//for
	for (var i=0; i<ExistAttaInfo.length; i++) {
		var theName = ExistAttaInfo[i];
		if ( theName != null && theName != "" && theName == getfilename(file.name) ) {
			return true;
		}
	}
	return false;
}
//----------------------------------------addfile(spanId,index)----------------------------------------------
function addfile(spanId,index,intputWidth)
{
       var strIndex = "" + index;
	   var fileId = "attachfile"+ strIndex;
	   //var fileMemoId = "attachfileMemo"+ strIndex;
	   var brId = "idAttachBr" + strIndex;
   
	   addInputFile(spanId,fileId,intputWidth);
	   //addInputText(spanId,fileMemoId);
	   adddel(spanId,index);

	   addbr(spanId,brId);
	   //document.getElementById( "attachfile"+ strIndex).click();
	   return;
}
//-------------------------------------------sub function----------------------------------------------------
function addInputFile(spanId,fileId,intputWidth)
{
	  if(intputWidth==undefined || intputWidth=="")intputWidth=580;
	  var span = document.getElementById(spanId);
	  if ( span !=null ) {
	                if ( !IsIE ) {
						var fileObj = document.createElement("input");
						if ( fileObj != null ) {
							fileObj.type="file";
							fileObj.name = fileId;
							fileObj.id = fileId;
							fileObj.size="50";
							var clickEvent = "exist('" + fileId + "')";
							fileObj.setAttribute("onclick",clickEvent,0);  
							span.appendChild(fileObj);
						}//if fileObj
					}// !IsIE

					if ( IsIE ) {
						var fileTag = "<input type=\"file\" id =\"" + fileId + "\" name=\"attachfile\" maxlength='300' title=\"提示：文件名不能超过150个汉字，其中包含符号！大于此长度的文件将不能被选入。\" style=\"padding-top:4px;width:"+intputWidth+"\" onchange=\"exist('" + fileId + "')\">";
						var fileObj = document.createElement(fileTag); 
						span.appendChild(fileObj);
					}//IsIE if
			
	  }//if span
}
function addInputText(spanId,fileMemoId)
{
	  var span = document.getElementById(spanId);
	  if ( span !=null ) {
			var oInputText = document.createElement("SPAN");
			oInputText.style.width = "2px";
			span.appendChild(oInputText);
	        if ( !IsIE ) {
				var fileMemoObj = document.createElement("input");
				if ( fileMemoObj != null ) {
					fileMemoObj.type="text";
					fileMemoObj.name = fileMemoId;
					fileMemoObj.id = fileMemoId;
					fileMemoObj.size="20";
					span.appendChild(fileMemoObj);
				}//if fileObj
			}// !IsIE
			
			if ( IsIE ) {
				var fileTag = "<input type='text' id ='" + fileMemoId + "' name='" + fileMemoId + "' style='width:20%' title='这里输入附件说明[可选]' onMouseOver='select()'>";
				var fileMemoObj = document.createElement(fileTag); 
				span.appendChild(fileMemoObj);
			}//IsIE if
			
	  }//if span
}
function addbr(spanId,brId)
{
	  var span = document.getElementById(spanId);
	  if ( span !=null ) {
			var brObj = document.createElement("br");
			if ( brObj !=null ) {
				brObj.name = brId;
				brObj.id = brId;
				span.appendChild(brObj);
            }//if
     }//if
	 return;
}
function adddel(spanId,index)
{
      var strIndex = "" + index;
	  var delId = "idAttachOper" + strIndex;
	  var span = document.getElementById(spanId);
	  if ( span != null ) {
			var oTextNode = document.createElement("SPAN");
			oTextNode.style.width = "2px";
			span.appendChild(oTextNode);
		    if ( IsIE ) {
	        var tag = "<input type='button' style='padding-top:1px;' id='" + delId + "' onclick=delfile('" + spanId + "',"+strIndex+")></input><a name='downfocus'></a>";
			var delObj = document.createElement(tag);
			if ( delObj != null ) {
				span.appendChild(delObj);
			}//if

			}// Is IE
			
	        if ( !IsIE ) {
				var delObj = document.createElement("input");
				if ( delObj != null ) {
					delObj.name = delId;
					delObj.id = delId;
					delObj.type = "button";
					var clickEvent = "return delfile('" + spanId + "',"+strIndex+");";
					delObj.setAttribute("onclick",clickEvent);  
					span.appendChild(delObj);
				}//if
			}// !IsIE if
			if( delObj != null) delObj.value = " 删除 ";
		}//main if
		return;
}
//---------------------------------------------delete input file-----------------------------------------------
function delfile(spanId,index)
{
	   var strIndex = "" + index;
	   var fileId = "attachfile"+ strIndex;
	   var fileMemoId = "attachfileMemo"+ strIndex;
	   var brId = "idAttachBr" + strIndex;
	   var delId = "idAttachOper" + strIndex;
	   //first,get the element
       var span = document.getElementById(spanId);
	   //alert(  "del span: " + span  );
	   if ( span == null ) return false;

	   var fileObj = document.getElementById(fileId);
	   if ( fileObj == null ) return false;

	  // var fileMemoObj = document.getElementById(fileMemoId);
	  // if ( fileMemoObj == null ) return false;

	   var brObj = document.getElementById(brId);
	   if ( brObj ==null ) return false;

	   var delObj = document.getElementById(delId);
	   //alert(  "del delId: " + delObj  );
	   if ( delObj == null ) return false;

       //second,create the replace element
	   var temp= document.createElement("SPAN");
	   //third,replace it
	    span.replaceChild(temp,fileObj);
	    
	    //span.removeChild(fileMemoObj.previousSibling);
	    //span.replaceChild(temp,fileMemoObj);
		span.replaceChild(temp,brObj);
		// Added by Harry, Repair Remove attached bug 2005/04/04
		span.removeChild(delObj.previousSibling);
		var attach = document.getElementById("attach");
		if(span.getElementsByTagName("INPUT").length == 1) attach.childNodes[0].nodeValue='添加附件';
		// End
		span.replaceChild(temp,delObj);	
		
		return false;
}
//*****************************************************************************************************************

function checkSub()
{
	try
	{
		if(document.getElementById("chkLogon").checked==false && (document.getElementById("txtUserName").value==""))
		{
			alert("请输入用户名和密码！");
			return false;
		}
		if(trim(document.getElementById("sCommentContent").value)=="")
		{
			alert("请输入您的留言！");
			return false;
		}
	}
	catch(e){}
	
}

//查看信息
function InfoView(id)
{
	window.open("viewInfo.aspx?id="+id);
}

function Excerpt(id,iNewsID)
{
	var returnValue=window.showModalDialog("ReplyReview.aspx?url_id="+id+"&url_iNewsID="+iNewsID, "", "dialogWidth:490px; dialogHeight:330px; status:no; directories:yes;scrollbars:no;Resizable=no;;help:no;scroll:no ");
	if(returnValue==1)
	{
		//location.href="NewsReview.aspx?url_id="+iNewsID;
		location.href="InfoReview.aspx?url_id="+iNewsID;
	}
}

//首页成果推荐模块切换
function GetImgPicBox(objTable,iIndex,objEnd) {debugger;
    var tds = objTable.getElementsByTagName("td");
    var tdID = "";
    for (var i = 0; i < tds.length; i++) {
        if (i == iIndex) {
            tds[i].style.display = "block";
            tdID = tds[i].id;
        }
        else {
            tds[i].style.dispaly = "none";
        }
    }
    $('main_div').scrollLeft = 0;
    $('main_div').onmouseover();
    objEnd.innerHTML = "";
    MarqueeImg($('main_div'), $(tdID), objEnd, 10);
}
//上传简历
function UploadApplyForPost() {
    var returnValue = window.showModalDialog("UploadApplyForPost.aspx", "", "dialogWidth:400px; dialogHeight:300px; status:no; directories:yes;scrollbars:no;Resizable=no;;help:no;scroll:no ");
    if (returnValue == 1) {
        alert("简历提交成功！");
    }
}

//by zhy
//编辑办理结果
function EditTranResult(id,cateid) {
    var returnValue = window.showModalDialog("EditTranResult.aspx?url_id=" + id + "&url_CateID=" + cateid, "", "dialogWidth:500px; dialogHeight:300px; status:no; directories:yes;scrollbars:no;Resizable=no;help:no;scroll:no ");
    if (returnValue == 1) {
        location.reload();
    }
}
//编辑办理状态
function EditTranStat(id, cateid) {
    var returnValue = window.showModalDialog("EditTranState.aspx?url_id=" + id + "&url_CateID=" + cateid, "", "dialogWidth:500px; dialogHeight:300px; status:no; directories:yes;scrollbars:no;Resizable=no;help:no;scroll:no ");
    if (returnValue == 1) {
        location.reload();
    }
}
//使用Ajax页面 （通用）
function UseAjax(sValues, sPath, sFieldName) {
    var xmlhttp;
    var result;
    var sUrl = "?";
    try {
        xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
    }
    catch (e) {
        try {
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch (e) {
            try {
                xmlhttp = new XMLRequestHttp();
            }
            catch (e) { }
        }
    }
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readystate == 4 && xmlhttp.status == 200) {
            result = xmlhttp.responseText;
        }
    }
    //组合参数
    if (sFieldName != "" && sValues != "") {
        var strFieldName = sFieldName.split(',');
        var strValues = sValues.split(',');
        for (var i = 0; i < strFieldName.length; i++) {
            sUrl += strFieldName[i] + "=" + strValues[i] + "&";
        }
    }
    sUrl = sUrl.substring(0, sUrl.length);
    xmlhttp.open("POST", sPath + sUrl, false);
    xmlhttp.send(null);
    if (result != undefined) {
        return result;
    }
}

function EditSurvey(id,iType) {
    num = window.showModalDialog("EditSurvey.aspx?type=" + iType + "&id=" + id, "", "dialogWidth:500px; dialogHeight:200px; status:no; directories:yes;scrollbars:no;Resizable=no;help:no;scroll:no ");
    if (num != undefined) {
        location.reload();
    }
}

//设置DIV高度
function setDivHeight(objid, iheight) {
    //alert("网页可见区域高" + document.body.clientHeight);
    //alert("网页正文全文高" + document.body.scrollHeight);
    document.getElementById(objid).style.height = document.documentElement.clientHeight - iheight;
}

//信息上移
function InfoUp(previousId, currentId,strclass) {
    var sUrlName = "url_type,url_previousId,url_currentId,url_class";
    var sUrlValue = "webinfoup," + previousId + "," + currentId + "," + strclass;
    var sValues = "";
    var result = UseAjax(sUrlValue, "../../ajax/UseAjax.aspx", sUrlName);
    if (result != undefined && result != "") {
        if (result == "1") {
            location.reload();
        }
    }
}

//信息预览
function InfoPreview() {
    window.open("../../viewInfo.aspx?type=preview");
}

//编辑友情链接
function EditLinks(id, cateid) {
    var returnValue = window.showModalDialog("EditLink.aspx?url_id=" + id + "&url_CateID=" + cateid, "", "dialogWidth:500px; dialogHeight:300px; status:no; directories:yes;scrollbars:no;Resizable=no;help:no;scroll:no ");
    if (returnValue == 1) {
        location.reload();
    }
}
//编辑飘浮管理
function EditFloatImg(id) {
    var returnValue = window.showModalDialog("EditFloatImg.aspx?url_id=" + id, "", "dialogWidth:550px; dialogHeight:300px; status:no; directories:yes;scrollbars:no;Resizable=no;help:no;scroll:no ");
    if (returnValue == 1) {
        location.reload();
    }
}

//首页规划许可栏目切换
function checkGHXK(iIndex, iCount) {
    for (var i = 1; i <= iCount; i++) {
        if (i == iIndex) {
            document.getElementById("liGHXK" + i).className = "divGHXK_UL_LI_mover";
            document.getElementById("divGHXK" + i).style.display = "block";
        }
        else {
            document.getElementById("liGHXK" + i).className = "divGHXK_UL_LI_mout";
            document.getElementById("divGHXK" + i).style.display = "none";
        }
    }
}


