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.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"); } function hasSpecialChar(inString, specialChars){ for(var i = 0; i < inString.length; i++){ var inChar = inString.charAt(i); for(var j = 0; j < specialChars.length; j++){ if(inChar == specialChars[j]){ return true; } } } return false; } //********************************************************************************************** /** isEmail(): 判断是否是特殊字符 参数:inString :需要判断的字符串 specialChars :特殊字符数组 */ function isEmail(inString, specialChars){ if(!hasSpecialChar(inString, specialChars)){ if(inString.indexOf("@") != -1){ return true; } } return false; } //********************************************************************************************** function selectIndustryChild(pName, cName) { var parentID = pName.selectedIndex; var j = cName.length; for (var i = 1; i < j; i++){ cName.options[j - i] = null; } if (parentID != "0"){ for (var i = 0; i < industries[parentID-1].length; i++){ var tempoption = new Option(industries[parentID-1][i],industries[parentID-1][i]); cName.options[i + 1] = tempoption; } } } function selectcity(pname,cname) { provinceid=pname.selectedIndex; j=cname.length for (i=1;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