function openwindow(url,width,height,title,haveScrollBar) { xposition=0; yposition=0; if ((parseInt(navigator.appVersion) >= 4 )) { xposition = (screen.width - width) / 2; yposition = (screen.height - height) / 2; } theproperty= "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=0," // + "scrollbars=haveScrollBar," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0," + "screenx=" + xposition + "," //仅适用于Netscape + "screeny=" + yposition + "," //仅适用于Netscape + "left=" + xposition + "," //IE + "top=" + yposition; //IE if (haveScrollBar==1) theproperty= theproperty+ ",scrollbars=yes"; if (haveScrollBar==0) theproperty= theproperty+ ",scrollbars=0"; window.open(url,title,theproperty); } function TxlClass(className,classID,admin,viceAdmin,memberNum,visitCount,proclaim) { this.className = className; this.classID = classID; this.admin = admin; this.viceAdmin = viceAdmin; this.memberNum = memberNum; this.visitCount = visitCount; this.proclaim = proclaim; } function outPut(index) { outPutForm.className.value = myClassList[index].className; outPutForm.admin.value = myClassList[index].admin; outPutForm.viceAdmin.value = myClassList[index].viceAdmin; outPutForm.memberNum.value = myClassList[index].memberNum; outPutForm.visitCount.value = myClassList[index].visitCount; outPutForm.classID.value = myClassList[index].classID; outPutForm.proclaim.value = myClassList[index].proclaim; } function checkData() { if (document.findSchool.keyword.value.length< 1) { alert("对不起,请输入校名关键字!"); document.findSchool.keyword.focus(); return false; } document.findSchool.action = "../school/schoolList.jsp"; return true; } function checkName() { if (document.classmate.name.value.length< 1) { alert("对不起,请输入真实姓名!"); document.classmate.name.focus(); return false; } document.classmate.action="../person/classmateList.jsp"; return true; } function dispatchLink(dispatchFlag) { if (classCount==0 && !(dispatchFlag == 90 ||dispatchFlag == 100 ||dispatchFlag == 170 ||dispatchFlag ==180 ||dispatchFlag == 190)) {alert("你还没有注册任何班级,要想使用班级功能,请先注册到你的班级!"); document.findSchool.keyword.focus(); return false; } if(dispatchFlag == 20) { if (confirm("确定要从 "+outPutForm.className.value+" 注销吗?")) { outPutForm.action="../txlClass/removeMemeber.jsp"; outPutForm.target = "_self"; outPutForm.submit(); return false; } else return false; } if (dispatchFlag == 10 ) outPutForm.action="../liuyan/liuyan.jsp"; if (dispatchFlag == 30 ) { outPutForm.action="../txlClass/visitCount.jsp?classID="+outPutForm.classID.value; } if (dispatchFlag == 40 ) outPutForm.action="../txlClassAdmin/adminLogin.jsp"; if (dispatchFlag == 50 ) outPutForm.action="../privacy/privacyDisplay.jsp"; if (dispatchFlag == 60 ) outPutForm.action="../person/person.jsp"; if (dispatchFlag == 70 ) outPutForm.action="../picture/picture.jsp"; if (dispatchFlag == 80 ) outPutForm.action="../media/media.jsp"; if (dispatchFlag == 90 ) outPutForm.action="../greetCard/index.jsp"; if (dispatchFlag == 100 ) outPutForm.action="../sms/servicetk.htm"; if (dispatchFlag == 110 ) outPutForm.action="../sms/Subscibe_sub.jsp?csid="+outPutForm.classID.value+"&dytype=dyliuyan"; if (dispatchFlag == 120 ) outPutForm.action="../sms/Subscibe_sub.jsp?csid="+outPutForm.classID.value+"&dytype=dypic"; if (dispatchFlag == 130 ) outPutForm.action="../sms/Subscibe_sub.jsp?csid="+outPutForm.classID.value+"&dytype=dybirth"; if (dispatchFlag == 140 ) outPutForm.action="../sms/Subscibe_sub.jsp?csid="+outPutForm.classID.value+"&dytype=dynew"; if (dispatchFlag == 150 ) outPutForm.action="../sms/Subscibe_sub.jsp?csid="+outPutForm.classID.value+"&dytype=dyonline"; if (dispatchFlag == 160 ) outPutForm.action="../ivr/chatroomlist.jsp?classid="+outPutForm.classID.value; if (dispatchFlag == 170 ) outPutForm.action="../baoyue/index.jsp"; if (dispatchFlag == 180 ) outPutForm.action="../point/history.jsp?type=3"; if (dispatchFlag == 190 ) outPutForm.action="../baoyue/xuefei.jsp"; if (dispatchFlag == 200 ) { outPutForm.action="../mail/person_sendClassGroupMail_1.jsp?classID="+outPutForm.classID.value; } if (dispatchFlag == 210 ) { outPutForm.action="../chat/login.jsp?Type=cs&classID="+outPutForm.classID.value; var chat = window.open("","chat","top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=790,height=530"); outPutForm.target="chat"; outPutForm.submit(); return false; } if (dispatchFlag == 220 ) { outPutForm.action="../chat/login.jsp?Type=sc&classID="+outPutForm.classID.value; var chat = window.open("","chat","top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=790,height=530"); outPutForm.target="chat"; outPutForm.submit(); return false; } outPutForm.target="_blank"; outPutForm.submit(); return false; } //检查CDN错误 cdnError=0;