 function goCheck(xkind)
 {  
 	 
 	if (xkind == 2){
 	   var xMail = document.getElementById("tfx_Account").value; 
  	   var xPwd  = document.getElementById("tfx_UserPwd2").value;
  	}   
 	else
 	{
  	   var xMail = document.getElementById("tfx_Account").value; 
  	   var xPwd  = document.getElementById("tfx_UserPwd").value;
    }	
    
    if (xMail=="" || xPwd=="" )
    {        
       alert("請輸入您的帳號,密碼!!")        
    }
    else
    {    	
         var infoDiv = document.getElementById("div_STS");
         with(infoDiv.style){
                zIndex = 1000; 
                position = "absolute"; 
                width = "300px";
                top = (document.body.offsetHeight-150)/2 + document.body.scrollTop; 
                left = (document.body.offsetWidth-400)/2;  
                filter = "Alpha(Opacity=90)";
                display = "block";
         }             
  	  	  	  	
  	      var httpObject = createXMLHttpRequest();     // XMLHttpRequest Object
          var strUrl = "../js/chkAccount.asp" ;     
          var strA = "";
          var xselTxt =""
         
          strUrl += "?Account=" + xMail + "&pwd=" + xPwd ;          
          
          httpObject.open("GET",strUrl,false); 
          
          httpObject.setRequestHeader("Content-Length",strA.length); 
          httpObject.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");     
          httpObject.setRequestHeader ("charset", "utf-8");
          
          //var xtext= "strAcc=" + strA 
          //httpObject.send(xtext);
          
          httpObject.send(strUrl);
          
          var xxchk = httpObject.responseText;
          
          document.getElementById("div_STS").style.display="none";
          
          if (xxchk=="f")
          {
          	 alert("查無您的會員資料,請再試試喔!!")
          } 
          else
          {
          	document.getElementById("img_Account").src="../images/index_mem1.gif"
          	document.getElementById("img_Pwd").src="../images/index_mem1.gif"          	
          	
			//for 宏國
			//var ssL_Url = "https://www.epod.com.tw/"  
		    
			//for 宏國測試
			var ssL_Url = "https://www.epod.com.tw/ec/"

			//For Localhost
            //var ssL_Url =  "../";
           
			if( xkind == 2){ //導向會員資料確認
          	    document.location.href = ssL_Url + "eshop/eshop_02.asp";
          	} 
          	else
        	{   //導向會員基本資料
				document.location.href = ssL_Url + "index/index.asp";
          	  }
          }
  	}
 } 