// JavaScript Document

<!--
function loginid(theForm)
{
    
  
  if (theForm.m_idno.value == "")
  {
    alert("请输入您的身份证号!");
    theForm.m_idno.focus();
    return (false);
  }
  
  if (theForm.m_idno.value.length !=15 && theForm.m_idno.value.length !=18)
       
      {
       alert("您输入的身份证号不规范!");
	    theForm.m_idno.value="";
        theForm.m_idno.focus();
        return (false);
      }  
 
 
  
	
	
	
	if (!isIdCardNo(theForm.m_idno.value))
	{
		alert("请您输入有效的身份证号!");
		theForm.m_idno.select();
		theForm.m_idno.focus();
		return (false);
	}
	

}




 function isIdCardNo(num)
  {   
      if(new RegExp(/^\d{15}$/).test(num))
	  {	
		return true;
	  }
	  else
	  {
		return(new RegExp(/^\d{15}(\d{2}[A-Za-z0-9])?$/).test(num));
      }
  }
      


-->
