var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); function onSelectDate(target) { returnValue=showModalDialog("/web/common/selectDate.jsp",target.value, "dialogWidth:200px;dialogHeight:200px;center:yes;resizable:yes;status:off"); if(returnValue!=null) target.value=returnValue; } function onSelectLink(target) { returnValue=showModalDialog("/web/selectHyperlink.do?src="+target.value, "", "center:yes;resizable:yes;status:off"); if(returnValue!=null) target.value=returnValue; } function onSelectMediaFile(target, channelId) { var link ="/web/syyhmedia/SelectMediaFileAction.do?channelId=" + channelId; returnValue=showModalDialog(link, "", "center:yes;resizable:yes;status:off"); if(returnValue!=null) target.value=returnValue; } function datacheck_20(thisform){ var server_name, corp_user_id, pwd; server_name = thisform.server_name.value; server_name = trim(server_name); corp_user_id = thisform.corp_user_id.value; corp_user_id = trim(corp_user_id); pwd = thisform.pwd.value; pwd = trim(pwd); if(server_name == ""){ alert('请输入域名'); thisform.server_name.focus(); return false; } if(server_name.indexOf(".") == -1){ alert('???zh_CN.error.filed.with.do???'); thisform.server_name.focus(); return false; } if(corp_user_id == ""){ alert('请输入用户名'); thisform.corp_user_id.focus(); return false; } if(pwd == ""){ alert('请输入密码'); thisform.pwd.focus(); return false; } thisform.action="http://my.sme.cn/jsp/main/site/corp/logon_20.jsp"; return true; } function CheckForm(){ if(document.frmLogin.username.value.length == 0){ alert('\n请输入您的用户名!'); document.frmLogin.username.focus(); return false } if(document.frmLogin.password.value.length == 0){ alert('\n请输入您的密码!'); document.frmLogin.password.focus(); return false } if(document.frmLogin.mail_domain.value == "sme.gov.cn") { document.frmLogin.action="http://mail.sme.gov.cn/cgi-bin/mailbox.cgi"; } else { document.frmLogin.user.value = document.frmLogin.username.value; document.frmLogin.password.value = document.frmLogin.passwd.value; document.frmLogin.action="http://mail.ctiwt.com:8888/prog/do_login.php"; } document.frmLogin.target="_blank"; document.frmLogin.submit(); } function Reg(){ window.open("/web/MemService.html"); } //********************************************************************************************** /** LogicalValue:用于判断对象的值是否符合条件,现已提供的选择有: integer:整型,还可判断正整型和负整型 number :数值型,同样可判断正负 date :日期型,可支持以自定义分隔符的日期格式,缺省是以'-'为分隔符 string :判断一个字符串包括或不包括某些字符 返回值: true或false 参 数: ObjStr :对象标识符——对象名; ObjType:对象类型('integer','number','date','string'之一) 其他说明:当对象值为空时,则返回错误。 */ function LogicalValue(ObjStr,ObjType){ var str=''; if ((ObjStr==null) || (ObjStr=='') || ObjType==null){ alert('函数LogicalValue缺少参数!'); return false; } var obj = document.all(ObjStr); if (obj.value=='') return false; for (var i=2;i0)){ return true; } else return false; } else return false; } //end function IsInteger() //********************************************************************************************** /** IsDate: 用于判断一个字符串是否是日期格式的字符串 返回值: true或false 参数: DateString: 需要判断的字符串 Dilimeter : 日期的分隔符,缺省值为'-' */ function IsDate(DateString , Dilimeter){ if (DateString==null) return false; if (Dilimeter=='' || Dilimeter==null) Dilimeter = '-'; var tempy=''; var tempm=''; var tempd=''; var tempArray; if (DateString.length<8 || DateString.length>10) return false; tempArray = DateString.split(Dilimeter); if (tempArray.length!=3) return false; if (tempArray[0].length==4){ tempy = tempArray[0]; tempm = tempArray[1]; tempd = tempArray[2]; } else{ //tempy = tempArray[2]; //tempm = tempArray[1]; //tempd = tempArray[0]; return false; } if (tempy.length !=4 || tempm.length > 2 || tempd.length > 2){ return false; } if (tempm.charAt(0) == "0"){ tempm = tempm.substring(1); } if (tempd.charAt(0) == "0"){ tempd = tempd.substring(1); } var tDateString = tempy + '/'+tempm + '/'+tempd+' 8:0:0';//加八小时是因为我们处于东八区 var tempDate = new Date(tDateString); if (isNaN(tempDate)) return false; if (((tempDate.getUTCFullYear()).toString()==tempy) && (tempDate.getMonth()==parseInt(tempm)-1) && (tempDate.getDate()==parseInt(tempd))){ return true; } else{ return false; } } //end function IsDate() //********************************************************************************************** /** IsNumber:用于判断一个数字型字符串是否为数值型,还可判断是否是正数或负数,返回值为true或false string: 需要判断的字符串 sign: 若要判断是正负数是使用,是正用'+',负'-',不用则表示不作判断 */ function IsNumber(string,sign){ var number; if (string==null) return false; if ((sign!=null) && (sign!='-') && (sign!='+')){ alert('IsNumber(string,sign)的参数出错:\nsign为null或"-"或"+"'); return false; } number = new Number(string); if (isNaN(number)){ return false; } else if ((sign==null) || (sign=='-' && number<0) || (sign=='+' && number>0)){ return true; } else return false; } //end function IsNumber() //********************************************************************************************** /** SpecialString: 用于判断一个字符串是否含有或不含有某些字符 返回值: true或false 参数: string : 需要判断的字符串 compare : 比较的字符串(基准字符串) BelongOrNot: true或false,“true”表示string的每一个字符都包含在compare中,“false”表示string的每一个字符都不包含在compare中 */ function SpecialString(string,compare,BelongOrNot){ if ((string==null) || (compare==null) || ((BelongOrNot!=null) && (BelongOrNot!=true) && (BelongOrNot!=false))){ alert('function SpecialString(string,compare,BelongOrNot)参数错误'); return false; } if (BelongOrNot==null || BelongOrNot==true){ for (var i=0;i0) { window.navigate(returnURL+returnValue.channel); } } function submitActionTable(theForm, action, prompt) { if(prompt!=null) alert(prompt); theForm.ActionTableHandler.value=action; } function saveHiddenData(src) { alert("save value"); src.setAttribute("savedValue", src.value); } function loadHiddenData(src) { alert("load value"); src.value=src.getAttribute("savedValue"); } function checkDateValue(){ if (document.getElementsByName("c1")[0].value ==null || document.getElementsByName("c1")[0].value==""){ alert("标题不能为空"); return false; } for(i=0;i