// 邮件代码开始 -->
<!--hide this script from non-javascript-enabled browsers
function checkmailform(){
if(document.maillogin.LoginName.value==""){
alert("请输入用户名！");
document.maillogin.LoginName.focus();
return false;
}
if(document.maillogin.passwd.value==""){
alert("请输入密码！");
document.maillogin.passwd.focus();
return false;
}
}
// stop hiding -->
// 邮件代码结束 -->

// 搜索代码开始 -->
function selectionMade()
{
        if (document.search.searchword.value=="")
	{
		alert("请输入检索词！");
		return false;		
	}

	act=document.search.select.value;
	searchstr = document.search.searchword.value;
	
	if (act=="web")
	{
	location.href="http://service2.xinhuanet.com/cgi-bin/searchp.cgi?word=" + searchstr;
              return false;
	}
      	else if (act=="site")
	{
	  location.href="http://service2.xinhuanet.com/cgi-bin/searchw.cgi?_searchkey="+searchstr;
	  return false;
	}
	else if(act == "news")
	{
	   document.search.word.value=document.search.searchword.value+" site:xinhuanet.com";
	}
        return true;
}
// 搜索代码结束 -->


// 开始显示-->
document.writeln("<table width=\"773\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" bgcolor=\"#E3E3E3\">");
document.writeln("  <tr bgcolor=\"#000000\"> ");
document.writeln("    <td colspan=\"2\"><img src=\"http://imgs.xinhuanet.com/icon/spacer.gif\" width=\"1\" height=\"1\"></td>");
document.writeln("  </tr>");
document.writeln("  <tr> ");
document.writeln("    <td width=\"456\"> ");
document.writeln("      <table width=\"420\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("        <form method=\"POST\" action=\"http://mail.xinhuanet.com/NULL/NULL/NULL/NULL/NULL/SignIn.gen\" name=\"maillogin\" onSubmit=\"return checkmailform();\">");
document.writeln("          <tr> ");
document.writeln("            <td width=\"67\" align=\"right\" valign=\"middle\"><font color=\"#000000\">用户名：</font></td>");
document.writeln("            <td width=\"82\"> ");
document.writeln("              <input type=\"text\" name=\"LoginName\" maxlength=\"64\" style=\"WIDTH: 70px; HEIGHT: 18px; background-color: E9EBEA\">");
document.writeln("            </td>");
document.writeln("            <td width=\"37\" valign=\"middle\"><font color=\"#000000\">密码：</font></td>");
document.writeln("            <td width=\"81\"> ");
document.writeln("              <input type=\"password\" name=\"passwd\" maxlength=\"64\" style=\"WIDTH: 70px; HEIGHT: 18px; background-color: E9EBEA\">");
document.writeln("            </td>");
document.writeln("            <td width=\"74\"> ");
document.writeln("              <input type=\"submit\" value=\"登录邮箱\" style=\"font-size:9pt; WIDTH: 60px; HEIGHT: 18px\" name=\"submit2\">");
document.writeln("            </td>");
document.writeln("            <td width=\"79\" valign=\"middle\"><a href=\"http://mail.xinhuanet.com/\" target=\"_blank\" style=\"font-size:12px\"><font color=\"#000000\">[免费申请]</font></a></td>");
document.writeln("          </tr>");
document.writeln("        </form>");
document.writeln("      </table>");
document.writeln("    </td>");
document.writeln("    <td width=\"317\" height=\"20\"> ");
document.writeln("      <table width=\"300\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("        <form name=\"search\" method=\"get\" action=\"http://202.84.17.73:7777/search.wct\" OnSubmit=\"return selectionMade();\" target=\"_blank\">");
document.writeln("          <tr> ");
document.writeln("            <td width=\"41\"><font color=\"#000000\">搜索：</font></td>");
document.writeln("            <td width=\"137\"> ");
document.writeln("              <input type=\"hidden\" name=\"bs\" value=\"\">");
document.writeln("<input type=\"hidden\" name=\"ct\" value=\"\">");
document.writeln("<input type=\"hidden\" name=\"lm\" value=\"\">");
document.writeln("<input type=\"hidden\" name=\"cl\" value=\"3\">");
document.writeln("<input type=\"hidden\" name=\"tn\" value=\"\">     ");
document.writeln("<input name=\"searchword\" size=\"25\" value=\"\" style=\"WIDTH: 120px; HEIGHT: 18px; background-color: E9EBEA\">");
document.writeln("<input type=\"hidden\" name=\"word\" value=\"\">");
document.writeln("            </td>");
document.writeln("            <td width=\"66\"> ");
document.writeln("              <select name=\"select\" style=\"background-color: E9EBEA\">");
document.writeln("    <option value=\"site\">外网</option>");
document.writeln("    <option value=\"web\">网页</option>");
document.writeln("    <option value=\"news\" selected>本网</option>");
document.writeln("  </select>");
document.writeln("            </td>");
document.writeln("            <td width=\"56\"> ");
document.writeln("              <input type=\"submit\" name=\"Submit\" value=\"搜索\" style=\"font-size:9pt; HEIGHT: 18px\">");
document.writeln("       <input type=\"hidden\" name=\"sr\" value=\"0\">");
document.writeln("            </td>");
document.writeln("          </tr>");
document.writeln("        </form>");
document.writeln("      </table>");
document.writeln("    </td>");
document.writeln("  </tr>");
document.writeln("</table>");
// 结束显示 -->
