var sSiteRoot = "http://www.fmprc.gov.cn/eng";	//英文站点根路径
	
var sChnUrl = "http://www.fmprc.gov.cn/chn/";	//简体中文链接
var sEngUrl = "http://www.fmprc.gov.cn/eng/";	//英语站点链接
var sFraUrl = "http://www.fmprc.gov.cn/fra/";	//法语站点链接
var sRusUrl = "http://www.fmprc.gov.cn/rus/";	//俄语站点链接
var sEspUrl = "http://www.fmprc.gov.cn/esp/";	//西语站点链接
var sAraUrl = "http://www.fmprc.gov.cn/ara/";	//阿语站点链接



function header()
{
	document.write("<TABLE cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY>");
	document.write("<TR>");
	document.write("<TD width=381><IMG height=13 src='"+sSiteRoot+"/images/top-1.gif' width=413 RELATED='1' OLDID='542' OLDSRC='top-1.gif'></TD>");
	document.write("<TD width=389><IMG height=13 src='"+sSiteRoot+"/images/top-2.gif' width=357 useMap=#Map border=0 RELATED='1' OLDID='543' OLDSRC='top-2.gif'></TD></TR></TBODY></TABLE>");
	document.write("<TABLE cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY>");
	document.write("<TR>");
	document.write("<TD vAlign=top align=left width=328 height=55><IMG height=60 src='"+sSiteRoot+"/images/top-3.gif' width=451 RELATED='1' OLDID='544' OLDSRC='top-3.gif'></TD>");
	document.write("<TD vAlign=top align=left width=442 height=55>");
	document.write("<OBJECT height=60 width=319><PARAM NAME='_cx' VALUE='8440'><PARAM NAME='_cy' VALUE='1588'><PARAM NAME='FlashVars' VALUE='8440'><PARAM NAME='Movie' VALUE='"+sSiteRoot+"/images/top-flash1.swf'><PARAM NAME='Src' VALUE='"+sSiteRoot+"/images/top-flash1.swf'><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'><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='"+sSiteRoot+"/images/top-flash1.swf' quality=high type='application/x-shockwave-flash' width='319' height='60'></embed>");
	document.write("</OBJECT></TD></TR></TBODY></TABLE>");
	document.write("<TABLE height=4 cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY><TR>");
	document.write("<TD vAlign=top align=left height=2><IMG height=4 src='"+sSiteRoot+"/images/top-4.gif' width=770 RELATED='1' OLDID='545' OLDSRC='top-4.gif'></TD></TR></TBODY></TABLE>");
	document.write("<TABLE height=35 cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY><TR>");
	document.write("<TD vAlign=top align=left bgColor=#2c314e height=35>");
	document.write("<TABLE height=35 cellSpacing=0 cellPadding=0 width=770 border=0><TBODY><TR align=middle>");
	document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=87 height=35><A href='"+sSiteRoot+"/wjb/'><FONT color=#ffffff>The Ministry</FONT></A></TD>");
	document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=125 height=35><A href='"+sSiteRoot+"/wjdt/'><FONT color=#ffffff>Policies and Activities</FONT></A></TD>");
	document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=128 height=35><A href='"+sSiteRoot+"/xwfw/'><FONT color=#ffffff>Press and Media Service</FONT></A></TD>");
	document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=102 height=35><A href='"+sSiteRoot+"/gjhdq/'><FONT color=#ffffff>Countries and Regions</FONT></A></TD>");
	document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=132 height=35><A href='"+sSiteRoot+"/gjwt/'><FONT color=#ffffff>International Issues</FONT></A></TD>");         
    document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=128 height=35><A href='"+sSiteRoot+"/ljzg/'><FONT color=#ffffff>About China</FONT></A></TD>");
	document.write("<TD width=68 height=35><A href='"+sSiteRoot+"/ziliao/'><FONT color=#ffffff>Resources</FONT></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>");
	document.write("<map name='Map'>");
	document.write("<area shape='rect' coords='19,1,74,11' href='"+sChnUrl+"' target='_self'>");
	document.write("<area shape='rect' coords='148,0,190,11' href='"+sFraUrl+"' target='_self'>");
	document.write("<area shape='rect' coords='86,0,135,11' href='http://big5.fmprc.gov.cn/gate/big5/www1.fmprc.gov.cn/chn/' target='_self'>");
	document.write("<area shape='rect' coords='199,1,250,11' href='"+sRusUrl+"' target='_self'>");
	document.write("<area shape='rect' coords='258,0,296,11' href='"+sEspUrl+"' target='_self'>");
	document.write("<area shape='rect' coords='304,0,337,11' href='"+sAraUrl+"' target='_self'>");
	document.write("</map>");
}

function tailer()
{
	document.write("<TABLE cellSpacing='0' cellPadding='0' width='770' border='0'><TBODY>");
	document.write("<TR><TD colSpan='3' height='2'>&nbsp;</TD></TR>");
	document.write("<TR><TD width='137' bgColor='#efefef' height='17'>&nbsp;</TD>");
	document.write("<TD align='middle' width='477' bgColor='#efefef' height='17'>Copyright &copy; 1998-2005,&nbsp;&nbsp;Ministry of Foreign Affairs,&nbsp;&nbsp;the People's Republic of China</TD>");
	document.write("<TD width='156' bgColor='#efefef' height='17'>&nbsp;</TD></TR>");
	document.write("<TR vAlign=center align=middle>");
	document.write("<TD colSpan='3' height='37'><a href='mailto:webmaster@mfa.gov.cn'><IMG src='"+sSiteRoot+"/images/mail.gif' border='0' align='absmiddle'><font color='#000000'>Contact us</font></a> &nbsp;&nbsp;Address: No. 2, Chaoyangmen Nandajie, Chaoyang District, Beijing, 100701 Tel:86-10-65961114</TD>");
	document.write("</TR></TBODY></TABLE>");
}



function header_1()
{
	document.write("<TABLE cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY>");
	document.write("<TR>");
	document.write("<TD width=381><IMG height=13 src='"+sSiteRoot+"/images/top-1.gif' width=413 RELATED='1' OLDID='542' OLDSRC='top-1.gif'></TD>");
	document.write("<TD width=389><IMG height=13 src='"+sSiteRoot+"/images/top-2.gif' width=357 useMap=#Map border=0 RELATED='1' OLDID='543' OLDSRC='top-2.gif'></TD></TR></TBODY></TABLE>");
	document.write("<TABLE cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY>");
	document.write("<TR>");
	document.write("<TD vAlign=top align=left width=328 height=55><IMG height=60 src='"+sSiteRoot+"/images/top-3.gif' width=451 RELATED='1' OLDID='544' OLDSRC='top-3.gif'></TD>");
	document.write("<TD vAlign=top align=left width=442 height=55>");
	document.write("<OBJECT height=60 width=319><PARAM NAME='_cx' VALUE='8440'><PARAM NAME='_cy' VALUE='1588'><PARAM NAME='FlashVars' VALUE='8440'><PARAM NAME='Movie' VALUE='"+sSiteRoot+"/images/top-flash1.swf'><PARAM NAME='Src' VALUE='"+sSiteRoot+"/images/top-flash1.swf'><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'><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='"+sSiteRoot+"/images/top-flash1.swf' quality=high type='application/x-shockwave-flash' width='319' height='60'></embed>");
	document.write("</OBJECT></TD></TR></TBODY></TABLE>");
	document.write("<TABLE height=4 cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY><TR>");
	document.write("<TD vAlign=top align=left height=2><IMG height=4 src='"+sSiteRoot+"/images/top-4.gif' width=770 RELATED='1' OLDID='545' OLDSRC='top-4.gif'></TD></TR></TBODY></TABLE>");
	document.write("<TABLE height=35 cellSpacing=0 cellPadding=0 width=770 border=0>");
	document.write("<TBODY><TR>");
	document.write("<TD vAlign=top align=left bgColor=#2c314e height=35>");
	document.write("<TABLE height=35 cellSpacing=0 cellPadding=0 width=770 border=0><TBODY><TR align=middle>");
	document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid' width=64 height=35><a href='"+sSiteRoot+"/'><FONT color=#ffffff>HOME</a></FONT></TD>");
	document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=118 height=35><A href='"+sSiteRoot+"/wjb/'><FONT color=#ffffff>The Ministry</FONT></A></TD>");
	document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=104 height=35><A href='"+sSiteRoot+"/wjdt/'><FONT color=#ffffff >Policies and Activities</FONT></A></TD>");
	document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=101 height=35><A href='"+sSiteRoot+"/xwfw/'><FONT color=#ffffff >Press and Media Service</FONT></A></TD>");
	document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=100 height=35><A href='"+sSiteRoot+"/gjhdq/'><FONT color=#ffffff >Countries and Regions</FONT></A></TD>");
	document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=93 height=35><A href='"+sSiteRoot+"/gjwt/'><FONT color=#ffffff >International Issues</FONT></A></TD>");         
    document.write("<TD style='BORDER-RIGHT: #ffffff 1px solid; a: ' width=122 height=35><A href='"+sSiteRoot+"/ljzg/'><FONT color=#ffffff >About China</FONT></A></FONT></TD>");
	document.write("<TD width=68 height=35><A href='"+sSiteRoot+"/ziliao/'><FONT color=#ffffff >Resources</FONT></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>");
	document.write("<map name='Map'>");
	document.write("<area shape='rect' coords='19,1,74,11' href='"+sChnUrl+"' target='_self'>");
	document.write("<area shape='rect' coords='148,0,190,11' href='"+sFraUrl+"' target='_self'>");
	document.write("<area shape='rect' coords='86,0,135,11' href='http://big5.fmprc.gov.cn/gate/big5/www1.fmprc.gov.cn/chn/' target='_self'>");
	document.write("<area shape='rect' coords='199,1,250,11' href='"+sRusUrl+"' target='_self'>");
	document.write("<area shape='rect' coords='258,0,296,11' href='"+sEspUrl+"' target='_self'>");
	document.write("<area shape='rect' coords='304,0,337,11' href='"+sAraUrl+"' target='_self'>");
	document.write("</map>");
}

//相关链接

function rel_link(_obj) {
	var jmpURL=_obj.options[_obj.selectedIndex].value; 
	if( jmpURL!='' ) {
		window.open( jmpURL );
	}
	else {
		_obj.selectedIndex=0;
	}
}
	
function RelatedLinks()
{
	document.write("<STYLE TYPE='TEXT/CSS'> FORM {width:157}</STYLE><FORM action='' method=post>");
	document.write("<TABLE cellSpacing='0' cellPadding='0' width='100%' align='middle' border='0'><TBODY>");
	document.write("<TR><TD align='middle' bgColor='#c0c0c0' height='30'>");
	document.write("<SELECT size=1 style='width:136' name=select onchange='javascript:rel_link( this );'>");
	document.write("<OPTION align=center value='"+sSiteRoot+"' selected>--Links--</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t25286.htm'>Missions Overseas</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t25285.htm'>Central Governments</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t25284.htm'>Local Governments</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t25283.htm'>Local Foreign Affairs Offices</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t25282.htm'>Press</OPTION>");
	document.write("<OPTION value='"+sSiteRoot+"/xglj/t25281.htm'>Other Websites</OPTION>");
	document.write("</SELECT>");
	document.write("</TD></TR>");
	document.write("</TBODY></TABLE>");
	document.write("</FORM>");
}

function Search()
{
	document.write("<form action='http://www.fmprc.gov.cn/wjb/eng_search.jsp' method='post' style='margin-bottom:0'>"
+"<span style='display:inline' NOWRAP><input type='text' name='sw' size='8'/><input type='hidden' name='siteid' value='6'/>"
+"<input type='hidden' name='sitename' value='eng'/> <!--/*本项可选，不是必填项*/-->"
+"<select name='select'><option value='0'>all MFA sites</option>"
+"<option value='1' selected='true'>this site</option>"
+"</select><input type='image' name='Submit' value='Search' src='"+sSiteRoot+"/images/y-sousuo.gif' border='0' height='20' width='49'></span>"
+"</form>");
}

function dateSearch()
{		
	//定义时间函数
	var now = new Date();
	var nowYear = now.getYear();
	var nowMonth = (now.getMonth() + 1);
	var nowDay = now.getDate();
	
	var chnlid;
	chnlid = document.getElementsByTagName("META").item("ChannelID").content;
		
	var strUrl=window.location.href;
 strUrl=strUrl.substring(7);
 var nPos=strUrl.lastIndexOf("/");
 if( nPos >=0 )
 {
  strUrl=strUrl.substring( 0, nPos);
 }
 
		
		
	document.write("<form name='frmSearch' action='http://search.fmprc.gov.cn/search/new/eng_sse.jsp' method=post>");
	document.write("<TABLE borderColor='#ffffff' cellSpacing='0' cellPadding='0' border='1' bFontSize='FALSE' styleType='0'><TR height=10>");
    document.write("      <TD>&nbsp;&nbsp;</TD></TR>");   
    document.write("<TR height=15>");
    document.write("<TD>&nbsp;&nbsp;Keyword:&nbsp;<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("Year");

    document.write("<select name=mf>");
    for( i=1;i<=12;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowMonth)?"selected":"") + ">" + i + "</option>");
    }
	document.write("</select>");
    document.write("Month");

	document.write("<select name=df>");
    for( i=1;i<=31;i++ ){
		document.write("<option value=\"" + i + "\" " + i + ">" + i + "</option>");
    }    
	document.write("</select>Day&nbsp;To&nbsp;");

	document.write("<select name=yt>");
    for( i=1998;i<=nowYear;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowYear)?"selected":"") + ">" + i + "</option>");
    }    
	document.write("</select>");
	document.write("Year");

    document.write("<select name=mt>");
    for( i=1;i<=12;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowMonth)?"selected":"") + ">" + i + "</option>");
    }
    document.write("</select>Month");

	document.write("<select name=dt>");
    for( i=1;i<=31;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowDay)?"selected":"") + ">" + i + "</option>");
    }
	document.write("</select>");

    document.write("Day&nbsp;&nbsp;");
	document.write("<input type='hidden' name='siteid' value='6'>"
					+"<input type='hidden' name='sitename' value='eng'>"
					+"<input type='hidden' name='channelid'>"
					+"<input type='hidden' name='channelname' value=''>"
					+"<input type='hidden' name='urlname'>"
					+"<input type='hidden' name='select' value='1'>"
					+"<input type='submit' name='Submit' value='Search'>");
	document.write("</TD></TR>");
	document.write("</TABLE>");
	document.write("</form>");
	frmSearch.channelid.value=chnlid;
	frmSearch.urlname.value = strUrl;
}

function dateSearch_new()
{
	//定义时间函数
	var now = new Date();
	var nowYear = now.getYear();
	var nowMonth = (now.getMonth() + 1);
	var nowDay = now.getDate();
	
	var chnlid;
	chnlid = document.getElementsByTagName("META").item("ChannelID").content;
		
	//var nowDay = new Date(); //why@2003-08-31

	document.write("<form name='frmSearch' action='http://211.99.196.31/search/new/eng_sse.jsp' method=post>");
	document.write("<TABLE borderColor='#ffffff' cellSpacing='0' cellPadding='0' border='1' bFontSize='FALSE' styleType='0'><TR height=10>");
    document.write("      <TD>&nbsp;&nbsp;</TD></TR>");   
    document.write("<TR height=15>");
    document.write("<TD>&nbsp;&nbsp;Keyword:&nbsp;<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("Year");

    document.write("<select name=mf>");
    for( i=1;i<=12;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowMonth)?"selected":"") + ">" + i + "</option>");
    }
	document.write("</select>");
    document.write("Month");

	document.write("<select name=df>");
    for( i=1;i<=31;i++ ){
		document.write("<option value=\"" + i + "\" " + i + ">" + i + "</option>");
    }    
	document.write("</select>Day&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To&nbsp;");

	document.write("<select name=yt>");
    for( i=1998;i<=nowYear;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowYear)?"selected":"") + ">" + i + "</option>");
    }    
	document.write("</select>");
	document.write("Year");

    document.write("<select name=mt>");
    for( i=1;i<=12;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowMonth)?"selected":"") + ">" + i + "</option>");
    }
    document.write("</select>Month");

	document.write("<select name=dt>");
    for( i=1;i<=31;i++ ){
		document.write("<option value=\"" + i + "\" " + ((i == nowDay)?"selected":"") + ">" + i + "</option>");
    }
	document.write("</select>");

    document.write("Day&nbsp;&nbsp;");
	document.write("<input type='hidden' name='siteid' value='6'>"
					+"<input type='hidden' name='sitename' value='eng'>"
					+"<input type='hidden' name='channelid'>"
					+"<input type='hidden' name='channelname' value=''>"
					+"<input type='hidden' name='select' value='1'>"
					+"<input type='submit' name='Submit' value='Search'>");
	document.write("</TD></TR>");
	document.write("</TABLE>");
	document.write("</form>");
	frmSearch.channelid.value=chnlid;

}

function doPrint()
{
	var str="<html>";
	var article;
	var css;
	var strAdBegin="<!--NEWSZW_HZH_BEGIN-->";
	var strAdEnd="<!--NEWSZW_HZH_END-->";
	var strFontSize='【<A href="javascript:doZoom(16)">大</A> <A href="javascript:doZoom(14)">中</A> <A href="javascript:doZoom(12)">小</A>】'
	var strdoPrint="doPrint()";
	var strTmp;
	
	css="<style>"
	+"td,.f12{font-size:9pt; FONT-FAMILY: 'Arial', 'Helvetica', 'sans-serif'; }"
	+".f24 {font-size:24px; FONT-FAMILY: 'Arial', 'Helvetica', 'sans-serif'; }"
	+".f14 {font-size:14px; FONT-FAMILY: 'Arial', 'Helvetica', 'sans-serif'; }"
	+".title14 {font-size:14px;line-height:130%; FONT-FAMILY: 'Arial', 'Helvetica', 'sans-serif'; }"
	+".l17 {line-height:170%; FONT-FAMILY: 'Arial', 'Helvetica', 'sans-serif'; }"
	+"</style>";
	
	str +=	css;
	str +=	'<meta http-equiv="content-type" content="text/html; charset=gb2312">';
	str +=	'<title>'+document.title+'</title>';
	str +=	"<body bgcolor=#ffffff topmargin=5 leftmargin=5 onLoad='window.print()'>";
	str +=	"<center>";
	str +=	"<table width=660 border=0 cellpadding=0 cellspacing=20 bgcolor=#EDF0F5><tr><td align=center>";
	
	//wsw@2004-4-27 修改处理div的方式
	/*var arDivs = document.getElementsByTagName('DIV');
	for (var t=0; t<arDivs.length; t++)
	{
		var objDiv = arDivs[t];
		if(objDiv.style.width == "600")
		{
			objDiv.removeAttribute('style');
			break;
		}
	}*/

	article=document.getElementById('article').innerHTML;
	if(article.indexOf(strAdBegin)!=-1){
		str +=article.substr(0,article.indexOf(strAdBegin));
		strTmp=article.substr(article.indexOf(strAdEnd)+strAdEnd.length, article.length);
	}else{
		strTmp=article
	}
	//str +=strTmp.substr(0,strTmp.indexOf(strFontSize));
	//strTmp=strTmp.substr(strTmp.indexOf(strFontSize)+strFontSize.length, strTmp.length);

	//wsw@2004-4-26 正则表达式中字符串提取功能([\s\S]*?)需要IE5.5以上版本才能支持
	strTmp = strTmp.replace(/<div[^>]*>([\s\S]*?)<\/div>/ig,"$1");	//过滤</DIV>
	//wsw@2004-4-26 分开处理替换<div>可以在IE5.0实现预览打印
	//strTmp = strTmp.replace(/<div[^>]*>/ig,"");
	//strTmp = strTmp.replace(/<\/div>/ig,"");
	
	str += strTmp;
	//str +=strTmp.substr(0,strTmp.indexOf(strdoPrint));
	//str +="window.print()";
	//str +=strTmp.substr(strTmp.indexOf(strdoPrint)+strdoPrint.length, strTmp.length);
	str +=	"</td></tr></table>";
	str += "<br><TABLE cellSpacing=0 cellPadding=0 width=600 border=0 align=center><TBODY><TR><TD height=10><IMG height='1' alt='' src='./7_c.gif' width='1' border='0'></TD></TR><TR><TD align=center bgColor=#efefef>Copyright &copy; 2003, Ministry of Foreign Affairs of the People's Republic of China</TD></TR><TR><TD height=10><IMG height='1' alt='' src='./7_c.gif' width='1' border='0'></TD></TR><TR><TD align=center>Contact us Address: No. 2, Chaoyangmen Nandajie, Chaoyang District, Beijing, 100701 Tel: 86-10-65961114 </TD></TR></TBODY></TABLE></CENTER></TD></TR></TBODY></TABLE>";
	str += "</center>";
	str +=	"</body></html>";
	document.write(str);
	document.close();
}

//文章推荐使用的函数
function openSendMail( sDocTitle ) {
	var sUrl = "http://wcm.fmprc.gov.cn/wcm/customize/messages/send_mail.jsp?DocTitle="+sDocTitle+"&URL="+window.location.href;

	nWidth  = 460;
	nHeight = 260;

	var winMsg = open( sUrl,"",
							  "left=300,top=250,width="+nWidth+",height="+nHeight+
							  ",menubar=no,status=no,titlebar=no,resizable=no,scrollbars=yes" );
			
	if( winMsg.opener==null ) {
		winMsg.opener = window;
	}
	winMsg.focus();
}

//推荐给朋友的新函数
function validate_form() {

	var str0,str1,str2,str3,str4,str;

	validity = true; // assume valid

	if (!check_email(document.Form2000.FriendEmail.value)) {
		validity = false;
		alert('Invalid Email Address!');
	}

	if( validity ) {
		str0="MFA Web Site Suggests This News";
		str1="Hello!";
		str2="Your Friend Suggests You To Read This New:";
		str3="“"+document.title+"”"+"\n\nLink Url:";
		str4=this.location;
		str=str0+"\n"+str1+"\n"+str2+"\n"+str3+"\n"+str4+"\n";
		document.Form2000.Context.value=str;

		document.Form2000.action="mailto:"+document.Form2000.FriendEmail.value+"?Subject=MFA Web Site News";
	}
	return validity;
}

//推荐给朋友的新函数2
function validate_form2() {

	var str0,str1,str2,str3,str4,str;

	validity = true; // assume valid

	if (!check_email(document.Form2003.FriendEmail.value)) {
		validity = false;
		alert('Invalid Email Address!');
	}

	if( validity ) {
		str0="MFA Web Site Suggests This News";
		str1="Hello!";
		str2="Your Friend Suggests You To Read This New:";
		str3="“"+document.title+"”"+"\n\nLink Url:";
		str4=this.location;
		str=str0+"\n"+str1+"\n"+str2+"\n"+str3+"\n"+str4+"\n";
		document.Form2003.Context.value=str;

		document.Form2003.action="mailto:"+document.Form2003.FriendEmail.value+"?Subject=MFA Web Site News";
	}
	return validity;
}

//判断用户填写的EMail是否有效函数
function check_email( address ) {
	if( (address=="")||(address.indexOf('@')==-1)||(address.indexOf('.')==-1) )
		return false;

	return true;
}
