

function Pic2Swf(pics,links,texts){
  //参数说明:
  //pics-图片,格式:图片1|图片2|图片3……
  //links-对应链接,格式:链接1|链接2|链接3……
  //texts-图片对应的文字说明,格式:文字1|文字2|文字3……
  //ASP中变量赋值:Pic2Swf(<%=pics%>,<%=Links%>,<%=texts%>)
  var focus_width = 259; // 图片宽度 
  var focus_height= 207; // 图片高度 
  var text_height = 20; // 显示的文字高度 
  var swf_height = focus_height + text_height; 
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '); 
  document.write('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '); 
  document.write('width="'+ focus_width +'" '); 
  document.write('height="'+ swf_height +'">'); 
  document.write('<param name="allowScriptAccess" value="sameDomain">'); 
  document.write('<param name="movie" value="images/focus.swf">'); 
  document.write('<param name="quality" value="high">'); 
  document.write('<param name="bgcolor" value="#F6F6F6">'); 
  document.write('<param name="menu" value="false">'); 
  document.write('<param name=wmode value="opaque">'); 
  document.write('<param name="FlashVars" '); 
  document.write('value="pics='+pics); 
  document.write( '&links='+links); 
  document.write( '&texts='+texts); 
  document.write( '&borderwidth='+focus_width); 
  document.write( '&borderheight='+focus_height); 
  document.write( '&textheight='+text_height+'">'); 
  document.write('<embed src="images/focus.swf" '); 
  document.write('wmode="opaque" '); 
  document.write('FlashVars="pics='+pics); 
  document.write( '&links='+links); 
  document.write( '&texts='+texts); 
  document.write( '&borderwidth='+focus_width); 
  document.write( '&borderheight='+focus_height); 
  document.write( '&textheight='+text_height+'" '); 
  document.write('menu="false" '); 
  document.write('bgcolor="#ffffff" '); 
  document.write('quality="high" '); 
  document.write('width="'+ focus_width +'" '); 
  document.write('height="'+ focus_height +'" '); 
  document.write('allowScriptAccess="sameDomain" '); 
  document.write('type="application/x-shockwave-flash" '); 
  document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" />'); 
  document.write('</object>'); 
}

function IsValidEmail(strEmail){
  var isEmail=(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)
  if (strEmail=="")
  {
    alert("请输入您的邮箱!");
    return false;
  }
  if (strEmail.length>50)
  {
     alert("长度太长");
     return false;
  }
  if (!isEmail.test(strEmail))
  {
     alert("不是邮箱");
     return false;
  }
}

