﻿var currUrl = document.URL;
var s = currUrl.indexOf("gate/big5");	//分割繁体的标志

var sChnUrl = "ht"+"tp://www.fmprc.gov.cn/chn/default.htm";	//简体中文链接
var sEngUrl = "ht"+"tp://www.fmprc.gov.cn/eng/default.htm";	//英语站点链接
var sFraUrl = "ht"+"tp://www.fmprc.gov.cn/fra/default.htm";	//法语站点链接
var sRusUrl = "ht"+"tp://www.fmprc.gov.cn/rus/default.htm";	//俄语站点链接
var sEspUrl = "ht"+"tp://www.fmprc.gov.cn/esp/default.htm";	//西语站点链接
var sAraUrl = "ht"+"tp://www.fmprc.gov.cn/ara/default.htm";	//阿语站点链接

var sSiteRoot = "ht"+"tp://www.fmprc.gov.cn/chn";	//中文站点根路径
//var sSiteRoot = "/chn";	//中文站点根路径

function header( ){
	headerEx( "/chn/pds" );  //繁体中文要求相对路径
}

function headerEx( p_sRootPath ){
	document.write("<TABLE class=NOBORDER cellSpacing=0 cellPadding=0 width=770 align=center>");
	document.write("<TBODY><TR><TD>");
	document.write("<TABLE cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY><TR>");
	document.write("<TD width=417><IMG height='14' alt='' src='"+p_sRootPath+"/images/7_p1.gif' width='417' border='0'></TD>");

	if( s<0 ) {	
        // 如果是在简体版页面则显示进入繁体版的链接
        document.write("<TD width=71><IMG height='14' alt='' src='"+p_sRootPath+"/images/7_p2.gif' width='71' border='0'></TD>");
    } else {
        // 如果是在繁体版页面则显示进入简体版的链接
		document.write("<TD width=71><IMG height='14' alt='' src='"+p_sRootPath+"/images/7_p0.gif' width='71' border='0'></TD>");
    }

	document.write("<TD width=55><IMG height='14' alt='' src='"+p_sRootPath+"/images/7_p3.gif' width='55' border='0'></TD>");
	document.write("<TD width=55><IMG height='14' alt='' src='"+p_sRootPath+"/images/7_p4.gif' width='55' border='0'></TD>");
	document.write("<TD width=55><IMG height='14' alt='' src='"+p_sRootPath+"/images/7_p5.gif' width='55' border='0'></TD>");
	document.write("<TD width=55><IMG height='14' alt='' src='"+p_sRootPath+"/images/7_p6.gif' width='55' border='0'></TD>");
	document.write("<TD width=62><IMG height='14' alt='' src='"+p_sRootPath+"/images/7_p7.gif' width='62' border='0'></TD></TR></TBODY></TABLE>");

	document.write("<TABLE cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY><TR>");
	document.write("<TD width=402><IMG height='66' src='"+p_sRootPath+"/images/2_t-logo.gif' width='450'></TD>");
	document.write("<TD width=368>");
	document.write("<OBJECT height=66 width=320 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>");
	document.write("<PARAM NAME='_cx' VALUE='8467'><PARAM NAME='_cy' VALUE='1746'><PARAM NAME='FlashVars' VALUE='8467'><PARAM NAME='Movie' VALUE='"+p_sRootPath+"/images/p8.swf'><PARAM NAME='Src' VALUE='"+p_sRootPath+"/images/p8.swf'>");
	document.write("<PARAM NAME='WMode' VALUE='Window'><PARAM NAME='Play' VALUE='-1'><PARAM NAME='Loop' VALUE='-1'><PARAM NAME='Quality' VALUE='High'><PARAM NAME='SAlign' VALUE=''><PARAM NAME='Menu' VALUE='-1'>");
	document.write("<PARAM NAME='Base' VALUE=''><PARAM NAME='AllowScriptAccess' VALUE='always'><PARAM NAME='Scale' VALUE='ShowAll'><PARAM NAME='DeviceFont' VALUE='0'><PARAM NAME='EmbedMovie' VALUE='0'><PARAM NAME='BGColor' VALUE=''><PARAM NAME='SWRemote' VALUE=''>");
	document.write("<embed src='"+p_sRootPath+"/images/p8.swf' quality=high width='320' height='66'></embed>  ");
	document.write("</OBJECT></TD></TR></TBODY></TABLE>");
	document.write("<TABLE cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY><TR>");
	document.write("<TD><IMG height='5' src='"+p_sRootPath+"/images/7_P10.GIF' width='770'></TD></TR></TBODY></TABLE><!-- banner end --><!--top nav bar start -->");
	document.write("<TABLE height=14 cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY><TR>");
	document.write("<TD background="+p_sRootPath+"/images/p11.gif height=6>");
	document.write("<TABLE cellSpacing=0 cellPadding=0 width=555 border=0>");
	document.write("<TBODY><TR align=middle>");
	document.write("<TD width=55><A href='http://www.fmprc.gov.cn/chn/gxh/tyb/'>首 页</A></TD>");
	document.write("<TD width=65><A href='http://www.fmprc.gov.cn/chn/pds/wjb/'>外交部</A></TD>");
	document.write("<TD width=70><A href='http://www.fmprc.gov.cn/chn/pds/wjdt/'>外交动态</A></TD>");
	document.write("<TD width=70><A href='http://www.fmprc.gov.cn/chn/pds/fw/xwmtfw/'>新闻服务</A></TD>");
	document.write("<TD width=75><A href='http://www.fmprc.gov.cn/chn/pds/gjhdq/gj/'>国家和地区</A></TD>");
	//<!--document.write("<TD width=70><A href=''>国际问题</A></TD>");-->
	document.write("<TD width=70><A href='http://www.fmprc.gov.cn/chn/pds/fw/lsfw/'>领事服务</A></TD>");
	document.write("<TD width=70><A href='http://www.fmprc.gov.cn/chn/pds/fw/lbfw/'>礼宾服务</A></TD>");
	document.write("<TD width=65><A href='http://www.fmprc.gov.cn/chn/pds/ziliao/'>资 料</A></TD>");
	document.write("<TD width=70><A href='http://www.fmprc.gov.cn/chn/pds/qt/wzdt/'>网站地图 </A></TD></TR></TBODY></TABLE></TD></TR>");
	document.write("<TR><TD><IMG height='7' src='"+p_sRootPath+"/images/7_P12.gif' width='770'></TD></TR></TBODY></TABLE><!--top nav bar end -->");
}

function searchfunction() {
	document.write("<TABLE cellSpacing='2' cellPadding='3' width='157' background='"+sSiteRoot+"/images/r1b.gif' border='0'>");
	document.write("<FORM action='http://test1.fmprc.gov.cn/wjb/search.jsp' method=post><TBODY>");
	document.write("<TR><TD><INPUT src='' size='18' name='searchword' type='text'><input type='hidden' name='channelid' value='75004'>");
	document.write("</TD></TR>");
	document.write("<TR><TD height='5' valign='bottom'><select name='select' size='1'><option value='75004'>本站点</option><option value='75003'>所有站点</option></select>&nbsp;&nbsp;");
	document.write("<INPUT type='image' src='"+sSiteRoot+"/images/search.gif' border='0' name='image' align='absmiddle'></TD></TR>");
	document.write("</FORM></TBODY></TABLE>");
}

function  tailer() {
	document.write("<TABLE cellSpacing='0' cellPadding='0' width='770' border='0'><TBODY><TR>");
	document.write("<TD height='20'>&nbsp;</TD>");
	document.write("</TR>");
	document.write("<TR>");
	document.write("<TD align='middle' bgColor='#efefef'>网站信息为中华人民共和国外交部版权所有，未经授权不得下载使用</TD>");
	document.write("</TR>");
	document.write("<TR>");
	document.write("<TD height='10'>&nbsp;</TD>");
	document.write("</TR>");
	document.write("<TR>");
	document.write("<TD align='middle'><a href='mailto:webmaster@mfa.gov.cn'><img src='"+sSiteRoot+"/images/mail.gif' border='0' align='absmiddle'><font color='#000000'>联系我们</font></a>&nbsp;&nbsp;地址：北京市朝阳区朝阳门南大街 2 号&nbsp;&nbsp; 邮编：100701&nbsp;&nbsp; 电话：86-10-65961114<BR><BR></TD>");
	document.write("</TR></TBODY></TABLE>");
}
//专门为外交部公务员录用考试写的网页尾部调用
function  tailerkl() {
	document.write("<TABLE cellSpacing='0' cellPadding='0' width='770' border='0'><TBODY><TR>");
	document.write("<TD height='20'>&nbsp;</TD>");
	document.write("</TR>");
	document.write("<TR>");
	document.write("<TD align='middle' bgColor='#efefef'>网站信息为中华人民共和国外交部版权所有，未经授权不得下载使用</TD>");
	document.write("</TR>");
	document.write("<TR>");
	document.write("<TD height='10'>&nbsp;</TD>");
	document.write("</TR>");
	//document.write("<TR>");
	//document.write("<TD align='middle'>地址：北京市朝阳区朝阳门南大街 2 号&nbsp;&nbsp; 邮编：100701&nbsp;&nbsp; 电话：86-10-65961114<BR><BR></TD></TR>");
	document.write("</TBODY></TABLE>");
}

//嵌入外交论坛的函数  
var BBS_SRC = "http://bbs.fmprc.gov.cn/tanforwcm.jsp";
//var BBS_SRC = "http://www.fmprc.gov.cn/chn/tanforwcm.html";

function writeBBSFrame(){
	writeBBSFrameEx( "100px", "60px" );
}

function writeBBSFrameEx( p_width, p_height ){
	var sHtml = "<iframe name='if_BBSTopic' src='"+BBS_SRC+"' WIDTH="+p_width+" HEIGHT="+p_height
			  + " NORESIZE SCROLLING=No FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 marginTop=0></iframe>";

	document.write( sHtml );
}

function show_bbs() {

	document.write("<TABLE cellSpacing='0' cellPadding='0' width='157' border=0>");
	document.write("<TR>");
       document.write("<TD width='20'><IMG height='20' alt='' src='/chn/images/3_r3.gif' width='20' border='0'></TD>");
       document.write("<TD height='20' bgColor='#c0c0c0'>&nbsp;<a href='http://bbs.fmprc.gov.cn/' target='_blank'>外交论坛</a>");
	//document.write("<TD height='20' bgColor='#c0c0c0'>&nbsp;<a href='#' onclick='javascript:openWin2();'>外交论坛</a>");
	document.write("</TD></TR>");
	document.write("<TR>");
       document.write("<TD colSpan='2' height='15'><IMG height='1' alt='' src='/chn/images/7_c.gif' width='1' border='0'></TD>");
	document.write("</TR>");
	document.write("</TABLE>");
	
	document.write("<TABLE cellSpacing='0' cellPadding='0' width='157' border=0>");
	document.write("<TR><TD width='50' valign='top'>");
	document.write("<IMG height='33' alt='' hspace='8' vspace='8' src='/chn/images/3_r4.gif' width='34' align='left' border='0'>");

	//wsw@2003-12-23,新增李肇星在线访谈
	//document.write("<div><A href='http://bbs.fmprc.gov.cn/fangtan/20031223/'>外交部部长李肇星就“2003年中国外交”与网友在线交流。</A><A href='http://mediacm.fmprc.gov.cn/v31client/msplayer.jsp?CatalogNumber=OTHER&ProgramID=11&clip=1'><img src='/images/media.gif' border='0'></a></div>");

	//嘉宾访谈回顾 	
	//document.write("<br><A href='http://bbs.fmprc.gov.cn/board.jsp?bid=8' target='_blank'>嘉宾访谈回顾<br>　　　　　　　　　　</A><br><br>");
	//writeBBSFrame();  
	document.write("</TD>");
	//如果要添加最近一个BBS的连接，放开如下
	//document.write("<br><A href='http://bbs.fmprc.gov.cn/board.jsp?bid=51' target='_blank'>中国驻埃及大使吴思科与公众在线交流<br>　　　　　　　　　　</A><br><br>");
	document.write("<TD align='center'>");
    //如果要添加最近一个BBS的连接，放开如下
	//document.write("<br><A href='http://news.xinhuanet.com/video/2007-12/25/content_7311227.htm' target='_blank'>外交部部长助理翟隽就中非关系和中国对非政策在线访谈<br></A><br><br></TD>");
	document.write("<br><A href='http://bbs.fmprc.gov.cn/board.jsp?bid=8' target='_blank'>嘉宾访谈精彩回放<br></A><br><br></td>");
	document.write("</TR>");
	document.write("<TR>");
       document.write("<TD height='5'><IMG height='1' alt='' src='/chn/images/7_c.gif' width='1' border='0'></TD>");
	document.write("</TR>");
	document.write("<TR>");
       document.write("<TD align='middle' background='/chn/images/r5b.gif' height='20' colspan='2'><A href=http://bbs.fmprc.gov.cn/register1.html target=_blank>用户注册</A>");
	//document.write("<TD align='middle' background='/chn/images/r5b.gif' height='20'><a href='#' onclick='javascript:openWin2();'>用户注册</A>");
	document.write("&nbsp;&nbsp;&nbsp;&nbsp;");
	document.write("<A href='http://bbs.fmprc.gov.cn/board.jsp?bid=8' target='_blank'>精彩回放</A>");
	//document.write("<a href='#' onclick='javascript:openWin2();'>精彩回放</A>");
	document.write("</TD></TR>");
	//document.write("<TR>");
	//document.write("<TD bgColor='#c1c8c0' height='1'><IMG height='1' alt='' src='/chn/images/7_c.gif' width='1' border='0'></TD>");
	//document.write("</TR>");
	document.write("</TABLE>");
}

//取得当前频道父频道的名称
function getParentChnlName( p_sNavPos ){
	return getParentChnlNameEx( p_sNavPos, ">" );
}

function getParentChnlNameEx( p_sNavPos, p_delim ){
	var ss = p_sNavPos.split( p_delim );
	if( ss.length<2 ){
		return "";
	}
	else{
		var sName = ss[ss.length-2];
		return sName.replace(/(^\s*)|(\s*$)/g, "");
	}
}//END: getParentChnlName()

function mailandsms() {
	document.write("<TABLE cellspacing='0' cellpadding='0' width='157' border='0'><TBODY>");
	document.write("<TR><TD>&nbsp;<A href='#' target=blank><IMG height='20' alt='短信服务' src='"+sSiteRoot+"/images/5_sms.gif' width='57' border='0'></A>&nbsp;&nbsp;");
	document.write("<A href='#'><IMG height='20' alt='邮件订阅' src='"+sSiteRoot+"/images/5_email.gif' width='57' border='0'></A>");
	document.write("</TD></TR></TBODY></TABLE>");
}

function rel_link(_obj) {
	var jmpURL=_obj.options[_obj.selectedIndex].value; 
	if( jmpURL!='' ) {
		window.open( jmpURL );
	}
	else {
		_obj.selectedIndex=0;
	}
}
<!--网上调查撤下〉
//function wang_diao(){
   // document.write("<TABLE cellSpacing='0' cellPadding='0' align='center' border=0><TBODY>");
	//document.write("<TR><TD height='54' width='59'><DIV ALIGN='center'><A HREF='http://wcmdemo.trs.cn/pub/trspoll2006/200607/p4110.htm' TARGET='_blank'><IMG SRC='"+sSiteRoot+"/images/wsdcdc1.gif' WIDTH='34' HEIGHT='33' BORDER='0'></A></DIV></TD>");
	//document.write("<TD HEIGHT='54' WIDTH='96'><A HREF='http://wcmdemo.trs.cn/pub/trspoll2006/200607/p4110.htm' TARGET='_blank'><IMG SRC='"+sSiteRoot+"/images/wsdcdcbutton.gif' WIDTH='87' HEIGHT='37' BORDER='0'></A></TD></TR>");
	//document.write("<TR><TD height='54' width='59'><DIV ALIGN='center'><A HREF='http://wcmdemo.trs.cn/preview/trspoll2006/200608/p5010.htm' TARGET='_blank'><IMG SRC='"+sSiteRoot+"/images/zfhzdctp.gif' WIDTH='34' HEIGHT='33' BORDER='0'></A></DIV></TD>");
	//document.write("<TD HEIGHT='54' WIDTH='96'><A HREF='http://wcmdemo.trs.cn/preview/trspoll2006/200608/p5010.htm' TARGET='_blank'><IMG SRC='"+sSiteRoot+"/images/zfhzdctb.gif' WIDTH='87' HEIGHT='37' BORDER='0'></A></TD></TR>");
  //  document.write("</TBODY></TABLE>");
//}-->

function right_func(){
	document.write("<TABLE cellSpacing='0' cellPadding='0' align='center' border='0'><TBODY>");
	
	//document.write("<TR><TD><IMG height='10' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	//document.write("<TR><TD><A href='"+sSiteRoot+"/zxxx/t162796.htm' target='_blank'><IMG height='34' alt='' src='"+sSiteRoot+"/images/abroadnotice.gif' width='136' border='0'></A></TD></TR>");

    document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("<TR><TD><A href='http://www.asem7.cn/chinese/' target='_blank'><IMG height='41' alt='' src='"+sSiteRoot+"/images/asm7logo.gif' width='136' border='0'></A></TD></TR>");
		
	document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("<TR><TD><A href='http://www.gov.cn/' target='_blank'><IMG height='41' alt='' src='"+sSiteRoot+"/images/zgzfw.gif' width='136' border='0'></A></TD></TR>");
	
   document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("<TR><TD><A href='http://www.beijing2008.cn/' target='_blank'><IMG height='56' alt='' src='"+sSiteRoot+"/images/aoyun2008button.jpg' width='136' border='0'></A></TD></TR>");

    document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("<TR><TD><A href='http://www.showchina.org/' target='_blank'><IMG height='41' alt='' src='"+sSiteRoot+"/images/showchinachn.jpg' width='136' border='0'></A></TD></TR>");	 

    document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("<TR><TD><A href='http://www.fmprc.gov.cn/chn/ziliao/wzzt/gongkaizhinan/t420291.htm' target='_blank'><IMG height='41' alt='' src='"+sSiteRoot+"/images/zfxxgklogo.jpg' width='136' border='0'></A></TD></TR>");	 

	//document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	//document.write("<TR><TD><A href='http://www.ccchina.gov.cn' target='_blank'><IMG height='40' alt='' src='"+sSiteRoot+"/images/zgqhbhxxwchn.gif' width='132' border='0'></A></TD></TR>");	
	
   // document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	//document.write("<TR><TD><A href='http://www.mps.gov.cn/cenweb/brjlCenweb/jsp/jd/index.jsp ' target='_blank'><IMG height='40' alt='' src='"+sSiteRoot+"/images/rmzzhjdlogo.gif' width='132' border='0'></A></TD></TR>");	
	
	//document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	//document.write("<TR><TD><A href='http://www.chinawest.gov.cn/' target='_blank'><IMG height='40' alt='' src='"+sSiteRoot+"/images/syxbdkflogo.gif' width='132' border='0'></A></TD></TR>");	

	//document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	//document.write("<TR><TD><A href='http://www.fmprc.gov.cn/chn/zxxx/t286848.htm' target='_blank'><IMG height='40' alt='' src='"+sSiteRoot+"/images/hkshenfenzheng.gif' width='132' border='0'></A></TD></TR>");
	document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("<TR><TD><A href='http://www.mfa.gov.cn/chn/lsfw/lszsjj/default.htm' target='_blank'><IMG height='40' alt='' src='"+sSiteRoot+"/images/zglsbhhxzzn.jpg' width='132' border='0'></A></TD></TR>");			
	
	document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("<TR><TD><A href='http://www.fmprc.gov.cn/chn/lsfw/lsrzjzwslggz/P020080718535592813382.doc' target='_blank'><IMG height='40' alt='' src='"+sSiteRoot+"/images/zglsrzbhznlogo.jpg' width='132' border='0'></A></TD></TR>");		
	//document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	//document.write("<TR><TD><A href='http://www.fmprc.gov.cn/chn/ziliao/wzzt/zscq/default.htm' target='_blank'><IMG height='34' alt='' src='"+sSiteRoot+"/images/zgzscqbh.gif' width='136' border='0'></A></TD></TR>");
	
		
	document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	//document.write("<TR><TD><embed width=136 height=34 src='"+sSiteRoot+"/images/zgjk.swf' quality=high></TD></TR>");
	document.write("<TR><TD><A href='http://www.china.com.cn/aboutchina/zhuanti/2007zgjk/node_7037323.htm' target='_blank'><IMG height='34' alt='' src='"+sSiteRoot+"/images/zgjk.gif' width='136' border='0'></A></TD></TR>");		
	
	document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("<TR><TD><A href='javascript:openIntro();'><IMG height='34' alt='' src='"+sSiteRoot+"/images/wjbjs.jpg' width='136' border='0'></A></TD></TR>");
	
	document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("<TR><TD><A href='http://www.focac.org/chn' target='_blank'><IMG height='34' alt='' src='"+sSiteRoot+"/images/zflt.gif' width='136' border='0'></A></TD></TR>");
	
	document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("<TR><TD><A href='"+sSiteRoot+"/klzcc/' target='_blank'><IMG height='29' alt='' src='"+sSiteRoot+"/images/3_r12.gif' width='136' border='0'></A></TD></TR>");
	
	document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("<TR><TD><A href='http://dag.fmprc.gov.cn/chn' target='_blank'><IMG height='34' alt='' src='"+sSiteRoot+"/images/dag.gif' width='136' border='0'></A></TD></TR>");
	
	document.write("<TR><TD height='9'><IMG height='30' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	//document.wri;
	document.write("<TR><TD><A href='http://211.99.196.217/webleadreport/reports/fmprc/index4.asp' target='_blank'><IMG height='34' alt='' src='"+sSiteRoot+"/images/visit.gif' width='136' border='0'></A></TD></TR>");

	document.write("<TR><TD><IMG height='10' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("</TBODY></TABLE>");

	document.write("<TABLE cellSpacing='0' cellPadding='0' width='157' border='0'><TBODY>");
	document.write("<TR><TD bgColor='#c1c8c0' height='1'><IMG height='1' alt='' src='./7_c.gif' width='1' border='0'></TD></TR>");
	document.write("</TBODY></TABLE>");

	document.write("<FORM action='' method=post>");
	document.write("<TABLE cellSpacing='0' cellPadding='0' width='157' border='0'><TBODY>");
	document.write("<TR><TD align='middle' bgColor='#c0c0c0' height='30'>");
	document.write("<SELECT size=1 name=select onchange='javascript:rel_link( this );'>");
	document.write("<OPTION value='"+sSiteRoot+"' selected>--相关网站--</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t21644.htm'>驻外机构网站</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t196778.htm'>驻港澳公署网站</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t26345.htm'>中央政府网站</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t21646.htm'>地方政府网站</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t21649.htm'>地方外办网站</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t21648.htm'>新闻媒体网站</OPTION>");
	document.write("<OPTION value='http://www.wjglyh.org'>前外交官联谊会网站</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t21647.htm'>其他网站</OPTION>");
	document.write("</SELECT>");
	document.write("</TD></TR>");
	document.write("</TBODY></TABLE>");
	document.write("</FORM>");

	document.write("<TABLE height='24' cellSpacing='0' cellPadding='0' width='157' border='0'><TBODY>");
	document.write("<TR><TD vAlign='bottom' width='15' height='10'><IMG height='1' src='./2_Rdixian.gif' width='157'></TD></TR>");
	document.write("</TBODY></TABLE>");
}


//根据id获得指定元素对象  edit by caohui @ 2005-6-20
function getElById(_sId){
	return document.getElementById(_sId);
}


//根据id获得指定元素的内部文本　edit by caohui @ 2005-6-20
function getInnerTextById(_sElId){
	var oEl = getElById(_sElId);
	return oEl.childNodes[0].nodeValue;
}

//去除字符串左边的所有空格
function LTrim( p_string ){
	var nLen = p_string.length;
	var nStartPose = 0;
	for(var i=0; i<nLen; i++){
		var sChar = p_string.charAt(i);
		if(sChar == ' ' || sChar == '　'){
			continue;
		}

		nStartPose = i;
		break;
	}

	return p_string.substring(nStartPose);
}
 
//去除字符串左边的所有空格
function RTrim( p_string ){
	return p_string.replace(/\s*$/g, "");
}
 
//去除字符串左右两边的所有空格
function Trim( p_string ){
	return p_string.replace(/(^\s*)|(\s*$)/g, "");
}

//yql@2003-8-27 概览页面按关键词和时间检索函数
function date_search() {	
	
	//定义时间函数
	var now = new Date();
	var nowYear = now.getYear();
	var nowMonth = (now.getMonth()+1);
	var nowDate = now.getDate();

	var ChnlId;
	ChnlId = document.getElementsByTagName("META").item("ChannelID").content;

	document.write("<FORM name='frmSearch' action='http://search.fmprc.gov.cn/search/new/sse.jsp' method='post'>");
	document.write("<TABLE width='100%' height='70' cellSpacing='0' cellPadding='0' bgcolor='#D3E3F3' bFontSize='FALSE' styleType='0' style='border-top:#0066cc 1px solid;border-bottom:#0066cc 1px solid;'>");
	document.write("<TR height=30><TD>&nbsp;&nbsp;浏览更多新闻，请使用检索功能。</TD></TR>");
	document.write("<TR><TD>&nbsp;&nbsp;");
	document.write("关键词：<input type='text' name='sw' size='15'>&nbsp;&nbsp;");
	
	document.write("<SELECT name='yf'>");
	var i;
	for( i=1998;i<=nowYear;i++ ){
		document.write("<option value='" + i + "' " + ((i == nowYear)?"selected":"") + ">" + i + "</option>");
	}
	document.write("</SELECT>年");

	document.write("<SELECT name='mf'>");
	var i;
	for( i=1;i<=12;i++ ){
		document.write("<option value='" + i + "' " + ((i == nowMonth)?"selected":"") + ">" + i + "</option>");
	}
	document.write("</SELECT>月");

	document.write("<SELECT name='df'>");
	var i;
    for( i=1;i<=31;i++ ){
		document.write("<option value='" + i + "' " + ">" + i + "</option>");
    }
	document.write("</SELECT>日&nbsp;至&nbsp;");

	document.write("<SELECT name='yt'>");
	var i;
    for( i=1998;i<=nowYear;i++ ){
		document.write("<option value='" + i + "' " + ((i == nowYear)?"selected":"") + ">" + i + "</option>");
    }
	document.write("</SELECT>年");

	document.write("<SELECT name='mt'>");
	var i;
	for( i=1;i<=12;i++ ){
		document.write("<option value='" + i + "' " + ((i == nowMonth)?"selected":"") + ">" + i + "</option>");
	}
	document.write("</SELECT>月");

	document.write("<SELECT name='dt'>");
	var i;
    for( i=1;i<=31;i++ ){
		document.write("<option value='" + i + "' " + ((i == nowDate)?"selected":"") + ">" + i + "</option>");
    }
	document.write("</SELECT>日&nbsp;&nbsp;");

	document.write("<INPUT type='hidden' name='siteid' value='2'>");
	document.write("<INPUT type='hidden' name='sitename' value='chn'>");
	document.write("<input type='hidden' name='channelid'>");
	document.write("<input type='hidden' name='channelname' value=''>");
	document.write("<INPUT type='hidden' name='select' value='1'>");
	//document.write("<INPUT type='hidden' name='sw' value=''>");
	document.write("<INPUT type='hidden' name='urlname' value=''>");
	document.write("<INPUT type='submit' name='Submit' value='检 索'>");
	document.write("</TD></TR></TABLE></FORM>");

	frmSearch.channelid.value = ChnlId;
} //end func


//弹出窗口函数
function openWin() {
	/*var sUrl = "popup.htm";

	nWidth  = 300;
	nHeight = 248;

	var winMsg = open( sUrl,"",
							  "left=0,top=0,width="+nWidth+",height="+nHeight+
							  ",menubar=no,status=no,titlebar=no,resizable=no,scrollbars=no" );
			
	if( winMsg.opener==null ) {
		winMsg.opener = window;
	}
	winMsg.focus();*/
} //end func

//弹出窗口函数
function openWin2() {
	var sUrl = "popup.htm";

	nWidth  = 300;
	nHeight = 248;

	var winMsg = open( sUrl,"",
							  "left=0,top=0,width="+nWidth+",height="+nHeight+
							  ",menubar=no,status=no,titlebar=no,resizable=no,scrollbars=no" );
			
	if( winMsg.opener==null ) {
		winMsg.opener = window;
	}
	winMsg.focus();
} //end func

//added by dmy@2005-4-5
function openIntro() {
	var sUrl = "http://www.fmprc.gov.cn/chn/wjbjs.htm";

	var winMsg = open( sUrl,"","left=0,top=0,location=no,toolbar=no,menubar=yes,status=no,titlebar=no,resizable=yes,scrollbars=yes" );
			
	if( winMsg.opener==null ) {
		winMsg.opener = window;
	}
	winMsg.focus();
} //end func


