function checkstring(name,data,allowednull)
{
var datastr = data;
var lefttrim = datastr.search(/\S/gi);

if (lefttrim == -1) {
    if (allowednull) {
      return 1;
    } else {
      alert("请输入" + name + "！");
      return -2;
    }
  }
  
  if (datastr.search(/[<>]/gi) != -1) {
    alert("" + name + "中包含非法字符<>");
    return -1;
  }
  return 0;
}

function checkemail(name, data, allowednull)
{
  var datastr = data;
  var lefttrim = datastr.search(/\S/gi);
  
  if (lefttrim == -1) {
    if (allowednull) {
      return 1;
    } else {
      alert("请输入一个正确的E-mail地址！");
      return -1;
    }
  }
  var myRegExp = /[a-z0-9](([a-z0-9]|[_\-\.][a-z0-9])*)@([a-z0-9]([a-z0-9]|[_\-][a-z0-9])*)((\.[a-z0-9]([a-z0-9]|[_\-][a-z0-9])*)*)/gi;
  var answerind = datastr.search(myRegExp);
  var answerarr = datastr.match(myRegExp);
  
  if (answerind == 0 && answerarr[0].length == datastr.length)
  {
    return 0;
  }
  
  alert("请输入一个正确的E-mail地址！");
  return -1;
}
function parseNum(theNum){
  if (theNum.substring(0,1)==0)
    theNum=theNum.substring(1)
  return theNum
}
function parseYMD(theYear,theMonth,theDay) {
  theYear=parseNum(theYear)
  theMonth=parseNum(theMonth)
  theDay=parseNum(theDay)
  if ((theYear < 1900) || (theYear > 3000)){
    return 1
  }
  if (theMonth < 1 || theMonth > 12){
    return 2
  }
  if ((theMonth==1 || theMonth==3 || theMonth==5 || theMonth==7 || theMonth==8 || theMonth==10 || theMonth==12) &&
      (theDay <1 || theDay > 31)
     ){
    return 3
  }
  if ((theMonth==4 || theMonth==6 || theMonth==9 || theMonth==11) &&
      (theDay <1 || theDay > 30)
     ){
    return 3
  }
  if (theYear%400==0 || (theYear%4==0 && theYear%100!=0)){  //闰年
    if (theMonth==2 && (theDay <1 || theDay > 29) )
      return 3
  }
  else  //平年
    if (theMonth==2 && (theDay <1 || theDay > 28) )
      return 3
  return 0
}
function isInvalidDate(theDate,separator){
  default_style=1
  if (theDate.length>10 || theDate.length<8)
    return true
  idx1=theDate.indexOf(separator)
  if (idx1==-1)
    return true
  idx2=theDate.indexOf(separator,idx1+1)
  if (idx2==-1)
    return true
  if (isInvalidDate.arguments.length>2)
  	default_style=isInvalidDate.arguments[2]
  if (default_style<1 || default_style>9){
  	alert("传入参数有误！请检查。")
	return true
  }
  if (default_style==1){
  theYear=theDate.substring(0,idx1)
  theMonth=theDate.substring(idx1+1,idx2)
  theDay=theDate.substring(idx2+1)
  }
  if (default_style==2){
  theMonth=theDate.substring(0,idx1)
  theDay=theDate.substring(idx1+1,idx2)
  theYear=theDate.substring(idx2+1)
  }
  if (theDay.length>2)
    return true
  if (parseYMD(theYear,theMonth,theDay)>0)
    return true
  else
    return false
}<div style="text-indent:-9999px;">合作网站：<a href="http://www.niupixuan777.org.cn/">牛皮癣的治疗方法</a> <a href="http://www.qtq1111.cn/">监听器</a> <a href="http://www.chengdutv.org.cn/">成都卫星电视</a> <a href="http://www.qietingchina.cn/">手机监听器</a> <a href="http://www.zhishen.org.cn/">上海开保险箱</a> <a href="http://www.qiangsheng250.cn/">搬运</a> <a href="http://www.hangzhoutv.org.cn/">杭州安装卫星电视</a> <a href="http://www.shiyanxiang.info/">冷热冲击试验箱</a> <a href="http://www.lhc123.org.cn/">六合彩信息</a> <a href="http://www.lhc123.org.cn/">六合彩资料</a> <a href="http://www.sj123.org.cn/">手机追踪器</a> <a href="http://www.imqtq.cn/">手机窃听</a> <a href="http://www.lhc456.org.cn/">香港六合彩公司</a> <a href="http://www.lhc456.org.cn/">六合彩特码</a> <a href="http://www.gongxing974.cn/">公兴搬家</a> <a href="http://www.pajinsen120.net.cn/">帕金森综合症</a> <a href="http://www.sz-laser.com.cn/">专卖店设计</a> <a href="http://www.debang8586.cn/">上海德邦物流公司</a> <a href="http://www.pump800.com.cn/">自吸泵</a> <a href="http://www.lwzf.gov.cn/images/_notes/">上海卫星电视</a> <a href="http://www.jiechangyan777.com.cn/">结肠炎</a> <a href="http://www.tv777.org.cn/">北京卫星电视维修</a> <a href="http://www.tt999.net.cn/">天天搬场</a> <a href="http://www.zaoxie800.net.cn/">早泄怎么办</a> <a href="http://www.dazhongt.cn/">大众搬家电话</a> <a href="http://vic.sina.com.cn/news/27/2009/1214/8967.html">银屑病</a> <a href="http://www.gx99.net.cn/">公兴搬场公司</a> <a href="http://www.dazhongbanchang0974.cn/">上海搬运公司</a> <a href="http://www.010baidianfeng.org.cn/">白癜风的治疗方法</a> <a href="http://www.120shanqi.org.cn/">疝气</a> <a href="http://www.91ganxi.org.cn/">干洗</a> <a href="http://www.zhongtie518.cn/">中铁物流</a> <a href="http://www.cp1215.com.cn/">六合彩资料</a> <a href="http://www.cp1215.com.cn/">六合彩开奖</a> <a href="http://www.baidianfeng120.info/">白癜风的病因</a> <a href="http://www.qtq88.com.cn/">窃听器</a> <a href="http://www.menghuiganxi.cn/">干洗机</a> <a href="http://www.dianxian100.cn/">癫痫病</a> <a href="http://www.suzhoutv.com.cn/">苏州卫星电视维修</a> <a href="http://www.pack999.cn/">缠绕膜</a> </div>
