/*****************************************************************************
函数名称：fucCheckDateInterval
函数功能：检查两日期间隔是否大于最大值
参数	：strDate1  日期1 (日期格式：YYYY-MM-DD或YYYY/MM/DD)
参数	：strDate2  日期2
参数	：iMaxDays  最大天数
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2004-12-30
作者    ：sj_huang
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckDateInterval(strDate1,strDate2,iMaxDays,strAlertMsg)
{
    var date1 = new Date(strDate1.substr(0,4),strDate1.substr(5,2),strDate1.substr(8,2));
    var date2 = new Date(strDate2.substr(0,4),strDate2.substr(5,2),strDate2.substr(8,2)); 
    //相差(秒)
    var diffValue = Math.abs( (date2 - date1)/1000); 	
    
	if( diffValue > ((iMaxDays -1) * 24 * 60 * 60))
	{
		alert(strAlertMsg);
		return false;
	}
	else
	{	    
		return true;
	}
}

/*****************************************************************************
函数名称：fucCheckCargoTicketNo
函数功能：检查货运单号的有效性
参数	：strTemp  要检查的字符串(大小写都匹配)
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2004-03-30
作者    ：罗永劲
修改人  ：
修改日  ：
******************************************************************************/
// 验证货单规则
function fucCheckCargoTicketNo(strTemp,strMsg)
{
	if(strTemp.length==0) return true;
	try
	{		
		strTemp=strTemp.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
		if(strTemp.length != 8)
		{
			alert(strMsg);
			return false;
		}
		// 将字符转为整数
		var sumTotal;
		sumTotal = parseInt(strTemp.substring(0,7));
		var iEnd = parseInt(strTemp.substring(7,8));
		// 求余
		var eend = sumTotal % 7;
		// 货单号生成规则
		if(iEnd.toString() != eend.toString())
		{
			alert(strMsg);
			return false;
		}
		
		return true;
	}
	catch(Err)
	{
		alert(strMsg);
		return false;
	}
}			
/*****************************************************************************
函数名称：fucCheckClientCode
函数功能：检查大写机场三字码
参数	：strTemp  要检查的字符串
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2004-02-25
作者    ：
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckClientCode(strTemp,strAlertMsg)
{
	strTemp=strTemp.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
    var newPar=/^[a-zA-Z]{3}\d{3}$/
    if(strTemp.length>0 && newPar.test(strTemp)==false)
    {
		alert(strAlertMsg);	
	    return false;
	}
	else
	{
	   return true;
	}
}



/*-----------------------------------------------*/


/*****************************************************************************
函数名称：fucCheckSixNull
函数功能：检查不同时为空
参数	：strTemp1 要检查的字符串
参数	：strTemp2  要检查的字符串
参数	：strTemp3 要检查的字符串
参数	：strTemp4  要检查的字符串
参数	：strTemp5 要检查的字符串
参数	：strTemp6  要检查的字符串
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-30
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckSixNull(strTemp1,strTemp2,strTemp3,strTemp4,strTemp5,strTemp6,strAlertMsg)
{
   strTemp1=strTemp1.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
   strTemp2=strTemp2.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
   strTemp3=strTemp3.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
   strTemp4=strTemp4.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
   strTemp5=strTemp5.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
   strTemp6=strTemp6.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
   if ((strTemp1.length<1) && (strTemp2.length<1) && (strTemp3.length<1) && (strTemp4.length<1) && (strTemp5.length<1) && (strTemp6.length<1))
		{
			alert(strAlertMsg);
				return false;
		}
}
/*****************************************************************************
函数名称：fucCheckPassword
函数功能：检查密码
参数	：strTemp  要检查的字符串(大小写都匹配)
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2004-06-11
作者    ：sj_huang
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckPassword(strTemp,strAlertMsg)
{
	strTemp=strTemp.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
	var newPar=/^\d{6}$/
	if(newPar.test(strTemp)==false)
	{
		alert(strAlertMsg);
		return false;
	}
	else
	{
		return true;
	}
}

/*****************************************************************************
函数名称：fucCheckTicketNo
函数功能：检查票号
参数	：strTemp  要检查的字符串(大小写都匹配)
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2004-06-11
作者    ：sj_huang
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckTicketNo(strTemp,strAlertMsg)
{
	strTemp=strTemp.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
	var newPar=/^\d{13}$/
	if(strTemp.length>0 && newPar.test(strTemp)==false)
	{
		alert(strAlertMsg);
		return false;
	}
	else
	{
		return true;
	}
}

/*****************************************************************************
函数名称：fucCheckAerodromeCode
函数功能：检查机场三字码
参数	：strTemp  要检查的字符串(大小写都匹配)
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2004-03-30
作者    ：罗永劲
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckAerodromeCode(strTemp,strAlertMsg)
{
	strTemp=strTemp.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
	var newPar=/^[a-zA-Z]{3}$/
	if(strTemp.length>0 && newPar.test(strTemp)==false)
	{
		alert(strAlertMsg);
		return false;
	}
	else
	{
		return true;
	}
}

/*****************************************************************************
函数名称：fucCheckCabin
函数功能：检查舱位
参数	：strTemp  要检查的字符串(大小写都匹配)
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2004-04-08
作者    ：罗永劲
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckCabin(strTemp,strAlertMsg)
{
	strTemp=strTemp.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
	var newPar=/^[a-zA-Z]{1}$/
	if(strTemp.length>0 && newPar.test(strTemp)==false)
	{
		alert(strAlertMsg);
		return false;
	}
	else
	{
		return true;
	}
}

/*****************************************************************************
函数名称：fucFlightNO
函数功能：检查航班号
参数	：strTemp  要检查的字符串(大小写都匹配)
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2004-05-02
作者    ：罗永劲
修改人  ：
修改日  ：
******************************************************************************/
function fucFlightNO(strTemp,strAlertMsg)
{
	strTemp=strTemp.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
	var newPar=/^[a-zA-Z0-9]{5,7}$/
	if(strTemp.length>0 && newPar.test(strTemp)==false)
	{
		alert(strAlertMsg);
		return false;
	}
	else
	{
		return true;
	}
}

/*****************************************************************************
函数名称：fucDeliverDate
函数功能：检查配送日期
参数	：strTemp  要检查的字符串(大小写都匹配)
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2004-05-02
作者    ：罗永劲
修改人  ：
修改日  ：
******************************************************************************/
function fucDeliverDate(strTemp,strAlertMsg)
{
	strTemp=strTemp.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
	var newPar=/^[0-9]{2}[0-1]{1}[0-2]{1}[0-3]{1}[0-9]{1}[0-2]{1}[0-9]{1}$/
	if(strTemp.length>0 && newPar.test(strTemp)==false)
	{
		alert(strAlertMsg);
		return false;
	}
	else
	{
		return true;
	}
}

/*****************************************************************************
函数名称：fucCheckFlightCode
函数功能：检查大写机场三字码
参数	：strTemp  要检查的字符串
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2004-02-25
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckFlightCode(strTemp,strAlertMsg)
{
	strTemp=strTemp.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
    var newPar=/^[A-Z]{3}$/
    if(strTemp.length>0 && newPar.test(strTemp)==false)
    {
		alert(strAlertMsg);	
	    return false;
	}
	else
	{
	   return true;
	}
}

/*****************************************************************************
函数名称：fucCheckObjAndNull
函数功能：检查两个对象中的值不同时为空
参数	：strObj1 对象的ID
参数	：strObj2  对象的ID
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-30
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckObjAndNull(strObj1,strObj2,strAlertMsg)
{
        var obj1=document.all[strObj1];
		var strTmp1="";		
		if(obj1!=null)
		{
		  strTmp1=obj1.value;
		}
		
		var obj2=document.all[strObj2];
		var strTmp2="";
		if(obj2!=null)
		{
		  strTmp2=obj2.value;
		}
		
		//检查不同时为空
		if(fucCheckAndNull(strTmp1,strTmp2,strAlertMsg)==false)
		{
		   return false;
		}
		
}

/*****************************************************************************
函数名称：fucCheckAndNull
函数功能：检查不同时为空
参数	：strTemp1 要检查的字符串
参数	：strTemp2  要检查的字符串
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-30
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckAndNull(strTemp1,strTemp2,strAlertMsg)
{
   strTemp1=strTemp1.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
   strTemp2=strTemp2.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
   if ((strTemp1.length<1) && (strTemp2.length<1))
		{
			alert(strAlertMsg);
				return false;
		}
}

/*****************************************************************************
函数名称：fucCheckNull
函数功能：检查是否为空
参数	：strTemp  要检查的字符串
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-17
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckNull(strTemp,strAlertMsg)
{
	strTemp=strTemp.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
	if (strTemp.length<1)
			{
				alert(strAlertMsg);
				return false;
			}
}


/*****************************************************************************
函数名称：fucCheckLength
函数功能：判断字符串的长度是否已经超出制定的范围
参数	：strTemp,要检查的字符串
参数	：iStrMax,字符串约束的最大长度
参数	：strAlertMsg 要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-20
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckLength(strTemp,iStrMax,strAlertMsg)
{
	var i,sum;
	sum=0;
	for(i=0;i<strTemp.length;i++)
	{
		//如果是标准字符，占一个字符长度
		if ((strTemp.charCodeAt(i)>=0) && (strTemp.charCodeAt(i)<=255))
			sum=sum+1;
		else  //如果是非标准字符（汉字），占两个字符长度
			sum=sum+2;
	}
	
	if(sum>iStrMax)
	{
	  //超出了约束的最大字符长度
	   alert(strAlertMsg);
	   return false;
	}
	else
	{
	   return true;
	}
		
}


/*****************************************************************************
函数名称：fucCheckDateFormat
函数功能：验证输入日期的格式是否正确,如2003-09-01 或 空
参数	：strDate,要检查的日期字符串
参数	：strAlertMsg, 出错时要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-21
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckDateFormat(strDate,strAlertMsg)
{
   //验证规则：长日期格式，不足用0补齐，如2003-09-01
    var newPar=/^\d{4}\-\d{2}\-\d{2}$/
    if(strDate.length>0 && newPar.test(strDate)==false)
    {
		alert(strAlertMsg);	
	    return false;
	}
	else
	{
	   return true;
	}
		
}

/*****************************************************************************
函数名称：fucCheckTimeFormat
函数功能：验证输入日期的格式是否正确,如 hh:ss 或 空
参数	：strTime,要检查的日期字符串
参数	：strAlertMsg, 出错时要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-11-20
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckTimeFormat(strTime,strAlertMsg)
{
   //验证规则：时间格式(只到分) hh:mm
    var newPar=/^([0,1][0-9])|[2][0-3]:[0-5][0-9]$/
    if(strTime.length>0 && newPar.test(strTime)==false)
    {
		alert(strAlertMsg);	
	    return false;
	}
	else
	{
	   return true;
	}
		
}


/*****************************************************************************
函数名称：fucCheckDateOrder
函数功能：验证开始日期必须在结束日期之后(比较的日期格式：2003-09-01)
参数	：strDate,开始日期字符串
参数	：strEDate,结束日期字符串
返回    ：消息提示框  true/false
日期	：2003-10-21
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckDateOrder(strSDate,strEDate,strMsg)
{
    strSDate=strSDate.replace(/\-/,"\/");
    strEDate=strEDate.replace(/\-/,"\/");
    
    if(strMsg==""||strMsg==null)
    {
       strMsg="您输入的开始日期在结束日期之后！";
    }
   
   //比较时间
    if(new Date(strSDate).getTime()>new Date(strEDate).getTime())
    {
        alert(strMsg);
        return false;
     }
     else
     {
        return true;
     }
}

/*****************************************************************************
函数名称：fucIsInteger
函数功能：检查是否为 空 或 整数
参数	：strInteger,要验证的数值
参数	：strAlertMsg, 出错时要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-21
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucIsInteger(strInteger,strAlertMsg)
 {
		//验证规则：整数
		var newPar=/^(-|\+)?\d+$/
		if(strInteger.length>0 && newPar.test(strInteger)==false)
		{
		   alert(strAlertMsg);	
		   return false;	
		 }
		 else
		 {
		    return true;
		 }
 }
		
/*****************************************************************************
函数名称：fucIsFloat
函数功能：检查是否为 空 或 有效数值（实数）
参数	：strFloat,要验证的数值
参数	：strAlertMsg, 出错时要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-21
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucIsFloat(strFloat,strAlertMsg)
 {
		//验证规则：实数
		var newPar=/^(-|\+)?\d*\.?\d+$/
		if(strFloat.length>0 && newPar.test(strFloat)==false)
		{
		   alert(strAlertMsg);	
		   return false;	
		 }
		 else
		 {
		    return true;
		 }
 }
 
 /*****************************************************************************
函数名称：fucIsCustomNum
函数功能：检查是否为 空 或 有效指定的数值格式
参数	：strCode,正负符号(+、-或者为空)
参数	：strFloatCout,小数位数
参数	：strNum,要验证的数值
参数	：strAlertMsg, 出错时要显示的提示信息
返回    ：消息提示框  true/false
日期	：2004-01-20
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucIsCustomNum(strCode,strFloatCout,strNum,strAlertMsg)
 {
		//验证规则：
        if(strCode=="+")
		{
		  strCode="\\+{0,1}";
		}
		var strTmp="^"+strCode+"\\d+((.\\d{1,"+strFloatCout+"})|\\d*)?$";
		newPar = new RegExp(strTmp)
		if(strNum.length>0 && newPar.test(strNum)==false)
		{
		   alert(strAlertMsg);	
		   return false;	
		 }
		 else
		 {
		    return true;
		 }
 }
 
/*****************************************************************************
函数名称：fucIsUnsignedInteger
函数功能：检查是否为 空 或 正整数
参数	：strInteger,要验证的数值
参数	：strAlertMsg, 出错时要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-21
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucIsUnsignedInteger(strInteger,strAlertMsg)
 {
		
		//验证规则：正整数
		var newPar=/^\d*[123456789]\d*$/
		if(strInteger.length>0 && newPar.test(strInteger)==false)
		{
		   alert(strAlertMsg);	
		   return false;	
		 }
		 else
		 {
		    return true;
		 }
 }
 
 /*****************************************************************************
函数名称：fucIsUnsignedInteger
函数功能：检查是否为 空 或 非负数
参数	：strInteger,要验证的数值
参数	：strAlertMsg, 出错时要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-21
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucIsNoUnsignedInteger(strInteger,strAlertMsg)
 {
		
		//验证规则：非负数
		var newPar=/^\d+$/
		if(strInteger.length>0 && newPar.test(strInteger)==false)
		{
		   alert(strAlertMsg);	
		   return false;	
		 }
		 else
		 {
		    return true;
		 }
 }
 
/*****************************************************************************
函数名称：fucCheckPhone
函数功能：检查是否为 空 或 有效的 区号/电话号码
参数	：strInteger,要验证的数值
参数	：strAlertMsg, 出错时要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-21
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckPhone(strArea,strPhone)
 {
		
		//验证规则：3~4个数字
		var newPar=/^\d{3,4}$/
		
		//验证规则：7~8个数字
		//var newReg=/^\d{7,8}$/
		//验证规则：数字、-、或者（）
		var newReg=/^[\d|(|)|-|_|*|,]*$/
		
		if(strArea.length>0 && newPar.test(strArea)==false)
		{
		   alert("请输入有效的电话号码区号！");	
		   return false;	
		 }
		 else if(strPhone.length>14)
		 {
		   alert("输入的电话号码长度超出！请输入有效的14位数字、-或（）");	
		   return false;
		 }
		 else if(strPhone.length>0 && newReg.test(strPhone)==false)
		 {
		    alert("请输入有效的电话号码！请输入有效的14位数字、-、_、*、,或（）");	
		   return false;	
		 }
		 else
		 {
		    return true;
		 }
 }

/*****************************************************************************
函数名称：fucCheckZipCode
函数功能：检查是否为 空 或 有效的 邮编号码
参数	：strZipCode,要验证的数值
参数	：strAlertMsg, 出错时要显示的提示信息
返回    ：消息提示框  true/false
日期	：2003-10-21
作者    ：sj_huang
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckZipCode(strZipCode)
 {		
		//验证规则：6个数字
		var newPar=/^\d{6}$/		
		if(strZipCode.length>0 && newPar.test(strZipCode)==false)
		{
		   alert("请输入有效的邮政编码！");	
		   return false;	
		}
		else
		{
		   return true;
		}
 }

/*****************************************************************************
函数名称：fucCheckMail
函数功能：检查是否为Email Address
参数	：strAddress,要检查的字符串地址
返回    ：消息提示框  true/false
日期	：2003-10-21
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckMail(strAddress,strAlertMsg)
 {
		
		strAddress=strAddress.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
				
		//匹配规则：
		//只允许以字母开头，用a-z,A-Z,0-9以及下划线组成的email名
		//email后面的域名只允许字母或下划线开头,至少一个.,以字母或下划线结束
		var newPar=/^[a-zA-Z](\w*)@\w+\.(\w|.)*\w+$/
		if(strAddress.length>0 && newPar.test(strAddress)==false)
		{
		   alert(strAlertMsg);	
		   return false;	
		 }
		 else
		 {
		    return true;
		 }
 }
 

/*****************************************************************************
函数名称：fucCheckHTML
函数功能：检查是否为正确的HTML文件发布路径
参数	：strAddress,要检查的字符串地址
返回    ：消息提示框  true/false
日期	：2003-10-21
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function fucCheckHTML(strAddress)
 {
		
		strAddress=strAddress.replace(/^(\s)*|(\s)*$/g,"");//去掉字符串两边的空格
				
		//匹配规则：
		//只允许以http:\\开头
		//以.htm或html结尾
		var newPar=/^[hH][tT]{2}[pP]:(\/|\\){2}(\w|.|-|\/|\\)+(\/|\\)(\w|-)+.[hH][tT][mM](l|L)*$/
		if(strAddress.length>0 && newPar.test(strAddress)==false)
		{
		   alert("请输入正确的html发布地址！");	
		   return false;	
		 }
		 else
		 {
		    return true;
		 }
 }
 
 /*****************************************************************************
函数名称：getNowDate
函数功能：检查是否为空
返回    ：当前日期:yyyy-mm-dd
日期	：2003-10-17
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function getNowDate()
{
	var today=new Date();
	year = today.getUTCFullYear(); 
	month =today.getUTCMonth()+1; 
	day = today.getUTCDate(); 
	if (month <= 9) month = "0" + month; 
	if (day <= 9) day = "0" + day; 
	var clocktext =year+"-"+month+"-"+day;
	return clocktext;
}
 

/*****************************************************************************
函数名称：getNowTime
函数功能：获取当前时间 
返回    ：当前日期:yyyy-mm-dd hh:mm:ss
日期  ：2003-11-17
作者    ：金晶
修改人  ：
修改日  ：
******************************************************************************/
function getNowTime()
{
    var today=new Date();					//获取当前的日期实例
	var year = today.getUTCFullYear();		//年
	var month =today.getUTCMonth()+1;		//月
	var day = today.getUTCDate();			//日
	var hour=today.getHours();				//时
	var minute=today.getMinutes();			//分
	var second=today.getSeconds();			//秒
	if (month <= 9) month = "0" + month; 
	if (day <= 9) day = "0" + day;
	if (hour <= 9) hour = "0" + hour;
	if (minute <= 9) minute = "0" + minute;
	if (second <= 9) second = "0" + second;
	var clocktext =year+"-"+month+"-"+day+" "+hour+":"+minute+":"+second;
	return clocktext;
}
/*****************************************************************************
函数名称：fucCheckMobilePhone
函数功能：检查是否为 空 或 有效的 手机号码
参数	：strMoblienum,要验证的数值
参数	：strAlertMsg, 出错时要显示的提示信息
返回    ：消息提示框  true/false
日期	：2007-11-08
作者    ：zhix_zhang
修改人  ：
修改日  ：
******************************************************************************/
function  fucCheckMobilePhone(strMoblienum)
		{
			
			var newPar=/^((\(\d{3}\))|(\d{3}\-))?13[0-9]\d{8}|15[89]\d{8}$/;
			if (strMoblienum.length>0&&newPar.test(strMoblienum)==false) 
			{
				//alert("该号码必须为手机号码！");
				return false;
			}
			else
			{
				return true;
			}
		}
		
/*****************************************************************************
函数名称：fucCheckNo
函数功能：检查是否为 空 或 有效的 数字
参数	：strNo,要验证的数值
返回    ：true/false
日期	：2007-11-08
作者    ：zhix_zhang
修改人  ：
修改日  ：
******************************************************************************/
function  fucCheckNo(strNo)
		{
			
			var newPar=/^\d+$/;
			if (strNo.length>0&&newPar.test(strNo)==false) 
			{
				//alert("该值必须为数字！");
				return false;
			}
			else
			{
				return true;
			}
		}