<!--
function OpenWin(url,winmc,left,top,width, height)  //打开新窗口
{
	var Win = window.open(url,winmc,'width=' + width + ',height=' + height + ',left=' +left +',top=' + top +',resizable=no,scrollbars=auto,menubar=no,location=no,status=no');
} 

function setindex(page)    //设为首页
{
  page.style.behavior='url(#default#homepage)';page.setHomePage('http://www.FuJianAsp.com')
}
function fav()     //加入收藏
{
 window.external.addFavorite('http://www.FuJianAsp.com','福建省企业信息化ASP服务平台')
}

function CheckUserLogin(form,str)     //会员登陆验证
{
  if (form.username.value=="")
   {
      window.alert("会员名称不能为空！")
      form.username.focus()
      return false
   } //end if
  
   if (form.username.value.length>0 && (form.username.value.indexOf("'")!=-1|| form.username.value.indexOf("=")!=-1||form.username.value.indexOf("%")!=-1||form.username.value.indexOf("&")!=-1||form.username.value.indexOf("?")!=-1||form.username.value.indexOf("$")!=-1))
   {
      window.alert("会员名称中含有非法字符！!")
      form.username.focus()
      return false
   } //end if 

   if (form.password.value=="")
   {
      window.alert("会员密码不能为空！")
      form.password.focus()
      return false
   } //end if
 
   if (form.password.value.length>0 && form.password.value.indexOf("'")!=-1)
    {
      window.alert("会员密码中含有非法字符！")
      form.password.focus()
      return false
    } //end if 
   if (str==0)
   {
    form.Btn1.disabled=true;
    form.Btn2.disabled=true;
   }
 } //end function

function CheckEipLogin(frm)     //Eip用户登陆验证
{
  if (frm.userid.value=="")
   {
      window.alert("企业帐户不能为空！")
      frm.userid.focus()
      return false
   } //end if

  if (frm.username.value=="")
   {
      window.alert("用户名不能为空！")
      frm.username.focus()
      return false
   } //end if
  
   if (frm.username.value.length>0 && (frm.username.value.indexOf("'")!=-1|| frm.username.value.indexOf("=")!=-1||frm.username.value.indexOf("%")!=-1||frm.username.value.indexOf("&")!=-1||frm.username.value.indexOf("?")!=-1||frm.username.value.indexOf("$")!=-1))
   {
      window.alert("用户名中含有非法字符！!")
      frm.username.focus()
      return false
   } //end if 

   if (frm.password.value=="")
   {
      window.alert("用户密码不能为空！")
      frm.password.focus()
      return false
   } //end if
 
   if (frm.password.value.length>0 && frm.password.value.indexOf("'")!=-1)
    {
      window.alert("用户密码中含有非法字符！")
      frm.password.focus()
      return false
    } //end if 

   frm.btnLogin.disabled=true;
   frm.btnCancle.disabled=true;
 } //end function

//以下是会员忘了密码信息
function checkyh1()
{
 ff=document.modify1
 if (ff.username.value=="")
 { window.alert ('用户名称不能为空！')
   ff.username.focus()
   return false }
}

function checkyh2()
{
 ff=document.ckxp1
 if (ff.answer.value=="")
 { window.alert ('密码答案不能为空！')
   ff.answer.focus()
   return false }
}

function checkyh3()
{
 ff=document.ckxp2 
 if (ff.userpassword1.value=="")
  { window.alert ('新密码不能为空！')
   ff.userpassword1.focus()
   return false
  }
  if(ff.userpassword1.value.length < 6) 
  {
    alert("密码长度不能小于6，请重新输入！")
    ff.userpassword1.focus()
	return false
  }
  if(ff.userpassword1.value != 	ff.userpassword2.value)
   {
    alert("两次输入的密码不同，请重新输入！")
    ff.userpassword1.focus()
	ff.userpassword1.value = ''
	ff.userpassword2.value = ''
	return false
  }
}
//-->

