func.js
资源名称:NetPhone.rar [点击查看]
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:1k
源码类别:
IP电话/视频会议
开发平台:
ASP/ASPX
- //判断字符由字母和数字组成
- function isLetterNum(data){
- var re=/^[A-Za-z0-9]+$/;
- return re.test(data);
- }
- function formchk(str,msg)
- {
- if(str.value == '')
- {
- alert(msg);
- return false;
- }
- return true;
- }
- function formchk_detail(str,msg)
- {
- if(str)
- {
- alert(msg);
- return false;
- }
- return true;
- }
- function Rad(FR,Qstr){
- var RL;
- RL=FR.length;
- if(RL==undefined)
- {
- FR.checked=true;
- }
- else
- {
- for(var i=0;i<RL;i++)
- {
- if(FR[i].value==Qstr)
- {
- FR[i].checked=true;
- }
- }
- }
- }
- function report(str,rsv)
- {
- var the_select = str;
- for (loop=0; loop < the_select.options.length; loop++)
- {
- if (the_select.options[loop].text == rsv)
- {
- the_select.options[loop].selected = true;
- }
- }
- }
- function ClassSelect(str,rsv)
- {
- var the_select = str;
- for (loop=0; loop < the_select.options.length; loop++)
- {
- if (the_select.options[loop].value == rsv)
- {
- the_select.options[loop].selected = true;
- }
- }
- }