//Email检测

var ADFT_CONTENTGROUP ="保网|保网地方频道";

 
 function checkEmail(item){
	if(ValidEmail(item)){
		alert("请输入正确的E-Mail地址！")
		return false;
	}else{
		return true;
	}
}
function ValidEmail(item){
var etext
var elen
var i
var aa
etext=item
elen=etext.length
if (elen<5)
 return true;
i= etext.indexOf("@",0)
if (i==0 || i==-1 || i==elen-1)
 return true;
else
 {if (etext.indexOf("@",i+1)!=-1)
  return true;}
if (etext.indexOf("..",i+1)!=-1)
 return true;
i=etext.indexOf(".",0)
if (i==0 || i==-1 || etext.charAt(elen-1)=='.')
 return true;
if ( etext.charAt(0)=='-' ||  etext.charAt(elen-1)=='-')
 return true;
if ( etext.charAt(0)=='_' ||  etext.charAt(elen-1)=='_')
 return true;
for (i=0;i<=elen-1;i++)
{ aa=etext.charAt(i)
  if (!((aa=='.') || (aa=='@') || (aa=='-') ||(aa=='_') || (aa>='0' && aa<='9') || (aa>='a' && aa<='z') || (aa>='A' && aa<='Z')))
   return true;
}
return false;
}	
// JavaScript Document
document.write("<table width=\"770\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"margin-bottom:2px;border-bottom:#00733A 1px solid \">");
document.write("  <tr>");
document.write("    <td width=\"22\" height=\"24\" valign=\"top\" bgcolor=\"#339900\"><img src=\"http://www.ins.com.cn/images/corner.gif\" height=\"20\"></td>");
document.write("    <td width=\"138\" bgcolor=\"#339900\">       <a href=\"http://www.ins.com.cn\"><font color=#ffffff>保网首页</font></a></td>");
document.write("    <td width=\"351\" bgcolor=\"#339900\">");
document.write("	");

document.write("	<table width=\"88%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
					//e周刊订阅
document.write("	<form name=\"form2\" method=\"post\" action=\"http://emagazine.ins.com.cn/regadd.asp\" >");
document.write("      <tr>");
document.write("        <td width=\"38%\"><div align=\"center\"><a href=\"http://emagazine.ins.com.cn\" target=\"_blank\"><font color=\"#FFFFFF\"><u>免费保险e周刊</u></font></a></div></td>");
document.write("        <td width=\"42%\">");
document.write("                  <input class=table1 ");
document.write("                  onBlur=\"if (value ==''){value='输入您的Email'}\" ");
document.write("                  onMouseOver=this.focus() onFocus=this.select() ");
document.write("                  onClick=\"if(this.value=='输入您的Email')this.value=''\" size=14 ");
document.write("                  value=输入您的Email name=email>");
document.write("    </td>");
document.write("        <td width=\"20%\"><input name=\"image\" type=\"image\" src=\"http://www.ins.com.cn/images/dingyue.gif\" width=\"40\" height=\"19\" onClick=\"return checkEmail(email.value);\"></td>");
document.write("      </tr>");
document.write("	</form>");

document.write("    </table>");

document.write("	");
document.write("	</td>");
document.write("    <td width=\"144\" bgcolor=\"#339900\"><div align=\"center\"><a href=\"http://search.ins.com.cn/\" target=\"_blank\"><img src=\"http://www.ins.com.cn/images/btn0.gif\" height=\"19\" border=\"0\"></a></div></td>");
document.write("    <td width=\"94\" bgcolor=\"#339900\"><a href=\"http://bbs.ins.com.cn\" target=\"_blank\"><img src=\"http://www.ins.com.cn/images/btn.gif\" width=\"80\" height=\"19\" border=\"0\"></a></td>");
document.write("    <td width=\"21\" valign=\"top\" bgcolor=\"#339900\"><img src=\"http://www.ins.com.cn/images/corner2.gif\" width=\"21\" height=\"20\"></td>");
document.write("  </tr>");
document.write("     <tr>");
document.write("      <td height=\"1\" colspan=\"6\" ></td>");
document.write("    </tr>");
document.write("</table>");


document.write("<table width=\"770\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"margin-bottom:3px \">");
document.write("    <tr>");
document.write("      <td width=\"164\" height=\"70\"><a href=\"http://www.ins.com.cn\" target=\"_blank\"><img src=\"http://www.ins.com.cn/images/inslogo.jpg\" width=\"160\" height=\"70\" border=\"0\"></a></td>");
document.write("      <td width=\"606\" bgcolor=\"#DFFFBF\"><div align=\"center\">");
document.write("        <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"480\" height=\"70\">");
document.write("            <param name=\"movie\" value=\"http://market.ins.com.cn/img/banner0508.swf\">");
document.write("            <param name=\"quality\" value=\"high\">");
document.write("            <embed src=\"http://market.ins.com.cn/img/banner0508.sw\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"590\" height=\"80\"></embed>");
document.write("        </object>");
document.write("      </div></td>");
document.write("    </tr>");
document.write("  </table>");
document.write("<script language=\"javascript\" src=\"http:\/\/www.ins.com.cn\/total.js\"><\/script>")
