<!--
	function check_email(email_address){//判断是否为合法Eamil
	at_location=email_address.indexOf("@");
	dot_location=email_address.indexOf(".");
		
	if (at_location== - 1||dot_location== - 1||at_location>dot_location)
	{return false;}
		
	if (at_location==0){return false;}
	if (dot_location - at_location<=1 ){ return false;}
	if (email_address.length - dot_location<=1) {return false;}
	return true;}
function error()
{
	this.errorNo=0;
	this.error="";
	this.clearError=clearError;
	this.getErrorString=getErrorString;
	this.haveError=haveError;
	this.addError=addError;
	this.getErrorCount=getErrorCount;
}

	function getErrorCount()//返回错误总数
	{
	return this.errorNo;
	}	
	
  function clearError()
   {
     this.errorNo=0;
     this.error="";
   }

   function getErrorString()
   {
     return this.error;
   }

  function haveError()
   {
     if(this.getErrorCount()>0) return true;
	 else return false;
   }

   function addError(_error)
   {
//    window.status+=this.getErrorCount();
    if(this.getErrorCount()>0) this.error+="\n";//如果不是第一条错误，加入换行
    //this.errorNo++;
    this.error+=++this.errorNo+"、"+_error;
   }

/*
 *使用示例
function go()
{
	err=new error();
	err.addError(txt1.value);
	err.addError(txt2.value);
	var v="txt1=["+txt1.value+"]\ntxt2=["+txt2.value+"]\nerr=[\n"+err.getErrorString()+"\n]";
	d1.innerText=v;
}
*/
/*
引用示例：
<script type="text/javascript" src="js/XFError.js"></script>
*/

//-->