function funCheckData()
{
	if(  checkMemberName() && checkPassword() )	
		document.frmTopMemberOnload.submit();
}


 /**********************************************************
*
*
*			用户名 、Email
*
*
***********************************************************/
    //Email验证函数
    function checkEmail(cEmail)  //验证邮箱地址是否正确，cEmail为邮箱地址。
    {
   		if(cEmail.match(/[\w|.-]+@{1}[\w-]+\.{1}\w{2,4}(\.{0,1}\w{2}){0,1}/ig)!=cEmail)
	    {
	      return false;
	    }
	    else
	    {
	      return true;
	    }
    }
        
    function checkMemberName()
    {
    	var flag=false;
    	if ($('username').value.trim()=='')
    	{
        	alert("系统提示:\n\n您填写的用户名不能为空，请正确输入。");
        	$('username').focus();
        	return false;
    	}
    	/*
    	
    	if(checkEmail($('username').value))
        {
            flag=true;
        }
        else
        {
        	alert("系统提示:\n\n您填写的用户名不合邮箱格式要求，请正确输入。");
        	$('username').focus();
        }
    	*/
        return true;
    }
    
/**********************************************************
*
*
*			密码
*
*
***********************************************************/

   
     //密码客户端验证[确定按钮]
    function checkPassword()
    {
    	var flag=false;
    	if ($('password').value.trim()=='')
    	{
        	alert("系统提示:\n\n您填写的用户密码不能为空，请正确输入。");
        	$('password').focus();
        	return false;
    	}
        if($('password').value.trim().length>0 && $('password').value.trim().length<21)
        {
            flag=true;
        }
        else
        {
    		alert("系统提示:\n\n您填写的密码格式输入不合要求，请正确输入。");
    		$('password').focus();
        }
        return flag;
	 }


/**********************************************************
*
*
*			注册
*
*
***********************************************************/
	function showRegWin(ConstWebSite)
	{
		window.open(ConstWebSite+"/Member/Reg/",'_blank');
	}

/**********************************************************
*
*
*			会员中心
*
*
***********************************************************/
	function showMemberCenterWin(ConstWebSite)
	{
		window.open(ConstWebSite+"/Member/Manage/",'_blank');
	}
	
/**********************************************************
*
*
*			退出
*
*
***********************************************************/
	function showExitWin(ConstWebSite,IsWidthMin)
	{
		var url=ConstWebSite+"/ip1840_common/ip1840_Member_OnLoad_Exit.asp?IsWidthMin="+IsWidthMin;
		window.location.href=url;
	}
