﻿//服务器端验证  接收服务器端返回值
function processValidateEmail(dataEmail)    
{    

   if(dataEmail.result == "0")//表示服务器端没有该邮箱地址    
   {   
   
       $('#your_Email_img').html("<img src='/images/accept.gif' />");    
       $('#your_Email_error').html("");   
      
   }    
   else  
   {
    
      $('#your_Email_img').html("<img src='/images/exclamation.gif' />");    
      $('#your_Email_error').html("邮箱已被注册").attr("style","color:red;");
      return false;   
     
   }      
}


function processValidateCheckCode(dataCode)
{    
   if(dataCode.CheckCode == "0")//表示验证码正确
   {    
       $('#checkCode_img').html("<img src='/images/accept.gif' />");    
       $('#checkCode_error').html("");    
   }    
   else  
   {
      $('#checkCode_img').html("<br /><img src='/images/exclamation.gif' />");    
      $('#checkCode_error').html("验证码错误").attr("style","color:red;");     
      return false;
   }      
}


function processValidateCheckCodeIndex(dataCode)
{    
   if(dataCode.CheckCode == "0")//表示验证码正确
   {     
       postLogin('form1','/member/memberLogin.ashx');
   }    
   else  
   {
     alert('验证码错误');
     return false;
   }      
}