﻿
/*******************************************************************/
/*                                                                 */
/* Copyright (c) 2005-2007 Jasob.com                               */
/*                                                                 */
/* This obfuscated code was created by Jasob 3.0 Trial Version.    */
/* The code may be used for evaluation purposes only.              */
/* To obtain full rights to the obfuscated code you have to        */
/* purchase the license key (http://www.jasob.com/Purchase.html).  */
/*                                                                 */
/*******************************************************************/

var NumericButtonCount=4;var InitUploadFilesControl="";var FinishUploadFilesControl="";function bo(pageIndex,pageCount,pageScript,className){var startPage=pageIndex-NumericButtonCount;if(startPage<1){startPage=1;}var endPage=pageIndex+NumericButtonCount;if(endPage>pageCount){endPage=pageCount;}var s="";s="<div width=100% align=left class='"+className+"'>";if(pageIndex!=1){s=s+pageUrl(1,"首页",pageScript);s=s+pageUrl(pageIndex-1,"上一页",pageScript);}for(var i=startPage;i<=endPage;i++){if(pageIndex!=i){s=s+" "+pageUrl(i,i,pageScript)+" ";}else{s=s+" "+pageFont(i)+" ";}}if(pageIndex!=pageCount&&pageCount!=0){s=s+pageUrl(pageIndex+1,"下一页",pageScript);s=s+pageUrl(pageCount,"尾页",pageScript);}s=s+"</div>";return s;};function pageFont(i){return "<font color=red><b>"+i+"</b></font>";};function pageUrl(i,explain,pageScript){var script=pageScript.replace("{0}",i);var a;a=" <a href=\"javascript:void(0);\" onclick=\"javascript:"+script+"\">"+explain+"</a>";return a;};Date.prototype.formatt=function(format){var o={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),"S":this.getMilliseconds()};if(/(y+)/.test(format)){format=format.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length));}for(var k in o){if(new RegExp("("+k+")").test(format)){format=format.replace(RegExp.$1,RegExp.$1.length==1?o[k]:("00"+o[k]).substr((""+o[k]).length));}}return format;};String.prototype.Trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");};String.prototype.LTrim=function(){return this.replace(/(^\s*)/g,"");};String.prototype.RTrim=function(){return this.replace(/(\s*$)/g,"");};String.prototype.IsNullOrEmpty=function(){if(this.LTrim().RTrim().length==0){return true;}else{return false;}};function $(_sId){return document.getElementById(_sId);};function request(key){if(typeof(this)=="undefined")return false;if(this.length>0){var s=this.split("&");for(var i in s){var sp=s[i].split("=");if(sp[0]==key)return(sp[1]);}return false;}else return false;};function getAllKey(){if(typeof(this)=="undefined")return false;var arr=new Array;if(this.length>0){var s=this.split("&");for(var i in s){var sp=s[i].split("=");arr.push(sp[0]);}return arr;}else return false;};String.prototype.request=request;String.prototype.getAllKey=getAllKey;function UrlEncode(str){var i,temp,p,q;var result="";for(i=0;i<str.length;i++){temp=str.charCodeAt(i);if(temp>=0x4e00){execScript("ascCode=hex(asc(\""+str.charAt(i)+"\"))","vbscript");result+=ascCode.replace(/(.{ 2 })/g,"%$1");}else{result+=escape(str.charAt(i));}}return result;};function UrlDecode(str){var i,temp;var result="";for(i=0;i<str.length;i++){if(str.charAt(i)=="%"){if(str.charAt(++i)=="u"){temp=str.charAt(i++)+str.charAt(i++)+str.charAt(i++)+str.charAt(i++)+str.charAt(i);result+=unescape("%"+temp);}else{temp=str.charAt(i++)+str.charAt(i);if(eval("0x"+temp)<=160){result+=unescape("%"+temp);}else{temp+=str.charAt(++i)+str.charAt(++i)+str.charAt(++i);result+=Decode_unit("%"+temp);}}}else{result+=str.charAt(i);}}return result;};function ValidateEmail(src){var emailReg=/^([a-zA-Z0-9_\-\.\+]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;return emailReg.test(src);};var tempLayer=null;function showLayer(name){var layer=$(name);if(tempLayer==null){layer.innerHTML=layer.info;layer.style.display="";tempLayer=layer;return;}if(tempLayer!=null&&tempLayer!=layer){tempLayer.style.display="none";layer.innerHTML=layer.info;layer.style.display="block";tempLayer=layer;return;}if(tempLayer==layer){layer.style.display="none";tempLayer=null;return;}};function openWindow(_sUrl,_sWidth,_sHeight,_sTitle,_sScroll){var oEdit=new dialog();oEdit.init();oEdit.set('title',_sTitle?_sTitle:"系统提示信息");oEdit.set('width',_sWidth);oEdit.set('height',_sHeight);oEdit.open(_sUrl,_sScroll?'no':'yes');};function iframeAutoFit(){try{if(window!=parent){var a=parent.document.getElementsByTagName("IFRAME");for(var i=0;i<a.length;i++){if(a[i].contentWindow==window){var h1=0,h2=0;a[i].parentNode.style.height=a[i].offsetHeight+"px";a[i].style.height="0px";if(document.documentElement&&document.documentElement.scrollHeight){h1=document.documentElement.scrollHeight;}if(document.body)h2=document.body.scrollHeight;var h=Math.max(h1,h2);if(document.all){h+=4;}if(window.opera){h+=1;}a[i].style.height=a[i].parentNode.style.height=h+"px";}}}}catch(ex){}};function InitParams(param,value){var aParams=new Array();aParams=param.split('@');var aParamNames=new Array();var length=aParams.length;for(var j=0;j<length;j++){var i=aParams[j].indexOf('=',0);var aParam=new Array();aParam[0]=aParams[j].substring(0,i);aParam[1]=aParams[j].substring(i+1,aParams[j].length);value[aParam[0]]=aParam[1];}};function GetContentDiv(aParamValues){var contentDiv;if(aParamValues["ContentDivId"]!=null){contentDiv=parent.document.getElementById(aParamValues["ContentDivId"]);}else{contentDiv=document.getElementById(aParamValues["DataDivId"]);}if(contentDiv==null){contentDiv=document.getElementById(aParamValues["DataDivId"]);}return contentDiv;};function InitContentDiv(aParamValues,contentDiv){if(aParamValues["ContentDivId"]!=null){contentDiv.innerHTML="<div id="+aParamValues["DataDivId"]+" width='100%'>"+contentDiv.innerHTML+"</div>";contentDiv.parentNode.parentNode.style.height="auto";}};function GetDateFormat(dateType,date){var dateStr="";switch(dateType){case "1":dateStr=date.format("yyyy-MM-dd");break;case "2":dateStr=date.format("MM/dd");break;case "3":dateStr=date.format("yyyy-MM-dd hh:mm:ss");break;case "4":dateStr=date.format("hh:mm:ss");break;case "5":dateStr=date.format("MM/dd hh:mm:ss");break;default:dateStr=date.format("MM/dd");break;}return dateStr;};function Div(exp1,exp2){var n1=Math.round(exp1);var n2=Math.round(exp2);var rslt=n1/n2;if(rslt>=0){rslt=Math.floor(rslt);}else{rslt=Math.ceil(rslt);}return rslt;};function CopyToClipboard(txt){if(window.clipboardData){window.clipboardData.clearData();window.clipboardData.setData("Text",txt);}else if(navigator.userAgent.indexOf("Opera")!= -1){window.location=txt;}else if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");}catch(e){alert("您的firefox安全限制限制您进行剪贴板操作，请打开’about:config’将signed.applets.codebase_principal_support’设置为true’之后重试");return false;}var clip=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(!clip)return;var trans=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!trans)return;trans.addDataFlavor("text/unicode");var str=new Object();var len=new Object();var str=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);var copytext=txt;str.data=copytext;trans.setTransferData("text/unicode",str,copytext.length*2);var clipid=Components.interfaces.nsIClipboard;if(!clip)return false;clip.setData(trans,null,clipid.kGlobalClipboard);}};function BookMarkSite(title,url){if(document.all)window.external.AddFavorite(url,title);else if(window.sidebar)window.sidebar.addPanel(title,url,"")};function GetPosition(ATarget){var left=0;var top=0;var el=ATarget;while(el!=null){left+=el["offsetLeft"];top+=el["offsetTop"];el=el.offsetParent;}return{x:left,y:top};};function SetReport(objectId,type,path){openWindow(path+'include/SetReport.aspx?id='+objectId+"&t="+type,'345','306','我要举报',false);};function AddCircleDiscuss(circleId,path){openWindow(path+'CircleManage/addCircleDiscuss.aspx?pkId='+circleId,'720','500','发布讨论',true);};function GetCssWidth(parentCssName,cssName){var hideDiv=document.getElementById("hideDiv");if(hideDiv==null){hideDiv=parent.document.getElementById("hideDiv");}var parentDiv=hideDiv.parentNode;parentDiv.className=parentCssName;hideDiv.style.display="block";hideDiv.className=cssName;var width=hideDiv.offsetWidth;if(width==0){width=60;}hideDiv.style.display="none";return width;};function GetCssHeight(parentCssName,cssName){var hideDiv=document.getElementById("hideDiv");if(hideDiv==null){hideDiv=parent.document.getElementById("hideDiv");}var parentDiv=hideDiv.parentNode;parentDiv.className=parentCssName;hideDiv.style.display="block";hideDiv.className=cssName;var height=hideDiv.offsetHeight;if(height==0){height="100%";}hideDiv.style.display="none";return height;};function ByPassCheck(id){document.getElementById(id).contentWindow.bypassCheck();};var enter="";function keyDown(){if(event.srcElement.type=="textarea"){return;}if(event.keyCode==13){if(enter!=""){var key=document.getElementById(enter);key.click();}event.returnValue=false;}};function setKeyDown(id,name,focus){enter=id.replace(name,"");enter=enter+focus;};function scifod(obj,titleDiv,contentDiv,widgetTabTitleCss){var scifodlist=$(titleDiv).getElementsByTagName("div");var scifodInfo=$(contentDiv).getElementsByTagName("div");scifodlist=InitWidgetTabTitleDiv(scifodlist);scifodInfo=InitWidgetTabContentDiv(scifodInfo);for(i=0;i<scifodlist.length;i++){if(obj==scifodlist[i]){scifodlist[i].className=""+widgetTabTitleCss+" TabTitle_Dis";scifodInfo[i].className="dis TabContent";}else{scifodlist[i].className=""+widgetTabTitleCss+" TabTitle_UnDis";scifodInfo[i].className="undis TabContent";}}};function InitWidgetTabTitleDiv(divList){var counter=0;var widgetTabTitleDivList=new Array();for(i=0;i<divList.length;i++){var obj=divList[i];if(obj.li=="WidgetTabTitle"){widgetTabTitleDivList[counter]=obj;counter++;}}return widgetTabTitleDivList;};function InitWidgetTabContentDiv(divList){var counter=0;var widgetTabContentDivList=new Array();for(i=0;i<divList.length;i++){var obj=divList[i];if(obj.li=="WidgetTabContent"){widgetTabContentDivList[counter]=obj;counter++;}}return widgetTabContentDivList;};function SetPotoSize(divPhotoId,photoId){var divPhoto=$(divPhotoId);if(divPhoto.document.getElementById(photoId)!=null){divPhoto.document.getElementById(photoId).style.width="100%";divPhoto.document.getElementById(photoId).style.height="100%";}};function InitIframeData(param,dataDivId,boxCss){var aParamValues=new Array();InitParams(param,aParamValues);aParamValues["DataDivId"]=dataDivId;var div=GetContentDiv(aParamValues);div.className="clearfix "+boxCss;div.innerHTML=$(dataDivId).innerHTML;div.parentNode.parentNode.style["overflow"]="hidden";InitContentDiv(aParamValues,div);};function InitIframeData(param,dataDivId,boxCss,style){var aParamValues=new Array();InitParams(param,aParamValues);aParamValues["DataDivId"]=dataDivId;var div=GetContentDiv(aParamValues);div.className="clearfix "+boxCss;div.style.cssText=style;div.innerHTML=$(dataDivId).innerHTML;div.parentNode.parentNode.style["overflow"]="hidden";InitContentDiv(aParamValues,div);};if(navigator.userAgent.indexOf("MSIE")<=0){HTMLElement.prototype.__defineGetter__("innerText",function(){return this.textContent;});HTMLElement.prototype.__defineSetter__("innerText",function(sText){this.textContent=sText;});}function IntImageArticleCategory(cateID){var cate=document.getElementById(cateID);var optionList=cate.getElementsByTagName("option");for(var i=0;i<optionList.length;i++){if(optionList[i].innerText.indexOf("[图]")>0)optionList[i].style.color="red";}};var FlashStyleList=new Array();FlashStyleList["1"]="<img src=\"/Include/FlashScript/FlashStyle1/FlashStyle1.jpg\" width=\"80\" height=\"100\">";FlashStyleList["2"]="<img src=\"/Include/FlashScript/FlashStyle3/FlashStyle3.jpg\" width=\"80\" height=\"66\">";FlashStyleList["3"]="<img src=\"/Include/FlashScript/FlashStyle4/FlashStyle4.jpg\" width=\"80\" height=\"42\">";FlashStyleList["4"]="<img src=\"/Include/FlashScript/FlashStyle5/FlashStyle5.jpg\" width=\"80\" height=\"90\">";FlashStyleList["5"]="<img src=\"/Include/FlashScript/FlashStyle6/FlashStyle6.jpg\" width=\"80\" height=\"77\">";function GetFlashStyle(style){return FlashStyleList[style];};function ShowNav(navId,showNavId,hasChildChannel){if(hasChildChannel=="1"){showNav=$(showNavId);nav=$(navId);showNav.innerHTML=nav.innerHTML;}};function IsDigit(){return((event.keyCode>=48)&&(event.keyCode<=57));};function IsValueNull(v){if(v.Trim()==""){return false;}else{return true;}};function CheckAll(controlId,checkAllControl){var control=$(controlId);var nodeList=control.getElementsByTagName("input");for(var i=0;i<nodeList.length;i++){var node=nodeList[i];if(node.type=="checkbox"&& !node.disabled){node.checked=checkAllControl.checked;}}};function CloseDialog(){parent.document.getElementById('dialogBox').style.display='none';parent.document.getElementById('dialogBoxBG').style.display='none';parent.document.getElementById('dialogBoxShadow').style.display="none";};function ConvertToNumber(number){var n=parseInt(number,10);if(isNaN(n)){n=0;}return n;};function RefreshOnlineUser(ticket,userId){try{GrowUpEdu.Web.Service.CommonService.UpdateActiveUser(ticket,userId,null,null);}catch(e){}};var IsNeedLogin=0;function PopLogin(){openWindow('/OperationManage/PopLogin.aspx','300','200','登录',true);};function InitDivWidthAndHeight(div,width,height){var w=ConvertToNumber(width);var h=ConvertToNumber(height);if(w!=0){div.style.width=w+"px";}if(h!=0){div.style.height=h+"px";}};String.format=function(){if(arguments.length==0){return null;}var str=arguments[0];for(var i=1;i<arguments.length;i++){var re=new RegExp('\\{'+(i-1)+'\\}','gm');str=str.replace(re,arguments[i]);}return str;};var Oxsir={};Oxsir.WebResear={};Oxsir.WebResear.CheckFormcb=function(o,id){var txtbox=document.getElementById(id);txtbox.value="";if(o&&txtbox){txtbox.isOperate='1';var objs=document.getElementsByName(o.name);var flag=0;for(var i=0;i<objs.length;i++){if(objs[i].checked){if(flag==0){txtbox.value=objs[i].itemName;flag=1;}else{txtbox.value=txtbox.value+"|"+objs[i].itemName;}}}}};Oxsir.WebResear.CheckFormSelect=function(o,id){var txtbox=document.getElementById(id);if(o&&txtbox){txtbox.value=o.options[o.selectedIndex].text;txtbox.isOperate='1';}};Oxsir.WebResear.CheckFormtxb=function(o,id){var txtbox=document.getElementById(id);if(o&&txtbox){txtbox.isOperate='1';txtbox.value=o.value;}};Oxsir.WebResear.uploadfile=function(divId,hiddenId){var hidden=document.getElementById(hiddenId);var div=document.getElementById(divId);if(hidden&&div){hidden.isOperate='1';openWindow('/Editor/UploadDataInput.aspx?rid='+hidden.pkId+'&hiddenId='+hiddenId+'&divId='+divId+'&lastFilename='+hidden.value+'&directory=UserFiles/Admin/DataInputFiles/'+hidden.tableName,'400','110','上传文件',true);}};Oxsir.WebResear.SetUploadInfo=function(divId,hiddenId,uploadfileName){var hidden=document.getElementById(hiddenId);var div=document.getElementById(divId);if(hidden&&div){hidden.value=uploadfileName;div.innerHTML=uploadfileName;}};Oxsir.WebResear.SetTime=function(divId,hiddenId){var hidden=document.getElementById(hiddenId);var div=document.getElementById(divId);new Calendar().show(div);};Oxsir.WebResear.SignUpDataInput=function(CliendID,tableName,tableId){var hiddenName=CliendID+"Hidden";var list=document.getElementsByName(hiddenName);var dataInputLists=new Array();for(var i=0;i<list.length;i++){if(list[i].dataType=="datetime"){list[i].value=document.getElementById(list[i].dataId).value;list[i].isOperate="1";}if(list[i].AllowNull=="0"&&list[i].value.Trim()==""){alert(" “"+list[i].showName+"” 不能为空！");return;}var dataInput=new GrowUpEdu.Model.SystemSignUpDataInputInfo();dataInput.ColoumName=list[i].columnName;dataInput.ShowName=list[i].showName;dataInput.ColoumValue=list[i].value;dataInput.IsOnly=list[i].IsOnly;dataInput.AllowNull=list[i].AllowNull;dataInputLists.push(dataInput);}GrowUpEdu.Web.Service.SystemService.SignUpDataInput(tableName,tableId,dataInputLists,Oxsir.WebResear.SignUpDataInputResult,null,CliendID);};Oxsir.WebResear.SignUpDataInputResult=function(result,CliendID){if(result.Result){alert("数据提交成功！");}else{if(result.Explain==""){alert("数据提交失败！");}else{alert(result.Explain);}}};Oxsir.WebResear.EditSignUpFileNameFieldName=function(o,hiddenId){var hidden=document.getElementById(hiddenId);hidden.value=o.options[o.selectedIndex].value;};Oxsir.WebResear.OkEditSignUpFileNameFieldName=function(){var list=document.getElementsByName("SystemSignUpFieldName");if(list.length==0){alert("没有需要改名字段！");return;}var question=confirm("确实要修改文件名吗？");if(question=="0"){return false;}var tableId=list[0].tableId;var tableName=list[0].tableName;var dataInputLists=new Array();for(var i=0;i<list.length;i++){var dataInput=new GrowUpEdu.Web.Service.SystemSignUpEditFileNameInfo();dataInput.FileField=list[i].fileName;dataInput.SelectField=list[i].value;dataInputLists.push(dataInput);}document.getElementById("signupphotoProgress").style.display="";GrowUpEdu.Web.Service.SystemService.EditSignUpDataInputFileName(tableName,tableId,dataInputLists,Oxsir.WebResear.SignUpDataInputResult1,null,null);};Oxsir.WebResear.SignUpDataInputResult1=function(result,CliendID){if(result.Result){document.getElementById("signupphotoProgress").style.display="none";alert("文件名修改成功！");}else{if(result.Explain==""){document.getElementById("signupphotoProgress").style.display="none";alert("文件名修改出错，请重试！");}else{alert(result.Explain);}}}