//copy rights by grandtee loading = { open : function(obj){ //alert(obj.div); var loading = document.getelementbyid(obj.div); //alert("2"); //loading.style.visibility = "visiable"; //lert("3"); loading.style.position = 'absolute'; //alert("4"); loading.style.zindex = '90'; loading.style.left = '0'; //alert("5"); loading.style.top = 0; loading.style.width = window.document.body.scrollwidth; //alert("6"); loading.style.height = window.document.body.scrollheight; //loading.style.backgroundcolor = 'rgba(0,0,0,0.3);'; loading.style.background = "#3cf"; //loading.style.opacity ='0.3'; //alert("7"); //loading.style.filter = "progid:dximagetransform.microsoft.alpha(style=0,opacity=30)"; /*ie8*/ //alert("8"); if(obj.second>0){ var str = '���ݼ����у�Ԥ����ҫ�ȴ�--�롣���ժ�......��'; loading.innerhtml = str; var i=obj.second; window.setinterval(function(){ var cc = document.getelementbyid("wait_time"); cc.innerhtml = "���ݼ����у�Ԥ����ҫ�ȴ�"+ (i--) +"�롣���ժ�......��" ; }, 1000); }else{ var str = '���ݼ����у���ǰ�ѿ�����0�롣���ժ�......��'; loading.innerhtml = str; var i=0; window.setinterval(function(){ var cc = document.getelementbyid("wait_time"); cc.innerhtml = "���ݼ����у���ǰ�ѿ�ִ��"+ (i++) +"�롣���ժ�......��" ; }, 1000); } //alert("end"); }, close : function(domidstr){ var loading = document.getelementbyid(domidstr); loading.style.visibility = 'hidden'; } }; function autofocus(form_item) { eval("document."+form_item+".focus()"); } function colorchange(obj,color) { if(obj.checked) obj.parentnode.parentnode.bgcolor='#cfe1f5'; else obj.parentnode.parentnode.bgcolor=color; } function checkall(form) { for (var i=0;i "9") { alert("�����ҳ�����ϸ������������룡"); return false; } } if (parseint(intgotopage) > parseint(intpagecount)) { alert("����ҳ��������χ�����������룡"); return false; } //alert("��ת��"+page_number+"ҳ"); //add loading.open var obj = new object(); obj.div ="_dataloading"; obj.second =" -1"; loading.open(obj); // location=pageurl+"&o2046o="+intgotopage; //alert(intgotopage); } //����������֤ function f_check_float(obj) { if (/^(\+|-)?\d+($|\.\d+$)/.test( obj.value )) { return true; } else { alert("������ʵ��"); return false; } } function f_check_integer(obj) { if (/^(\+|-)?\d+$/.test( obj.value )) { return true; } else { // alert(obj,"����������"); alert("����������") return false; } } function f_check_naturalnumber(obj) { var s = obj.value; if (/^[0-9]+$/.test( s ) && (s > 0)) { return true; } else { alert("��������ȼ��"); return false; } } function f_check_number(obj) { if (/^\d+$/.test(obj.value)) { return true; } else { alert("����������"); return false; } } //��������� function chkstring(frmfield){ if (frmfield.value.lengthfrmfield.chk_maxlength){ if (!frmfield.disabled) { frmfield.focus(); alert("�������(���������������벻�ܳ�����χ,��ϊ�գ�)") }else alert("�������(�������������볬����χ,��ϊ�գ�)") return false; } return true; } function chkfloat(frmfield){ var num = frmfield.value; if (isnan(num)){ if (!frmfield.disabled) { alert("�������(���������������벻��ȷ����)") frmfield.focus(); }else alert("�������(��������벻��ȷ����)") return false; } if(numparsefloat(frmfield.chk_maxlength)){ if (!frmfield.disabled) { alert("�������(���������������볬����χ)") frmfield.focus(); }else alert("�������(��������볬����χ)") return false; } return true; } function chkdate(frmfield){ var theinput=frmfield.value; var thelength=theinput.length; var gooddate=true; var sepchar=false; var thechar1=theinput.substring(0,1); var thechar2=theinput.substring(1,2); var thechar3=theinput.substring(2,3); var thechar4=theinput.substring(3,4); var thechar5=theinput.substring(4,5);//5 var thechar6=theinput.substring(5,6); var thechar7=theinput.substring(6,7); var thechar8=theinput.substring(7,8);//8 var thechar9=theinput.substring(8,9); var thechar10=theinput.substring(9,10); var thenum1=theinput.substring(5,7); var thenum2=theinput.substring(8,10); if (thelength<10 || thelength>10) { gooddate=false; } if (thenum1<1 || thenum1>12) { gooddate=false; } if (thenum2<1 || thenum2>31) { gooddate=false; } if (thechar1<"0" || thechar1>"9" ) { gooddate=false; } if (thechar2<"0" || thechar2>"9" ) { gooddate=false; } if (thechar3<"0" || thechar3>"9" ) { gooddate=false; } if (thechar4<"0" || thechar4>"9" ) { gooddate=false; } if (thechar6<"0" || thechar6>"9" ) { gooddate=false; } if (thechar7<"0" || thechar7>"9" ) { gooddate=false; } if (thechar9<"0" || thechar9>"9" ) { gooddate=false; } if (thechar10<"0" || thechar10>"9" ) { gooddate=false; } if (thechar5=="-" && thechar8=="-") { sepchar=true; } if (gooddate==false || sepchar==false) {alert ("���ڲ���ϊ�ջ��ʽ������ȷϊ(yyyy-mm-dd)") return false;} return true; } function chkdateempty(frmfield){ var theinput=frmfield.value; if (theinput != ""){ var thelength=theinput.length; var gooddate=true; var sepchar=false; var thechar1=theinput.substring(0,1); var thechar2=theinput.substring(1,2); var thechar3=theinput.substring(2,3); var thechar4=theinput.substring(3,4); var thechar5=theinput.substring(4,5);//5 var thechar6=theinput.substring(5,6); var thechar7=theinput.substring(6,7); var thechar8=theinput.substring(7,8);//8 var thechar9=theinput.substring(8,9); var thechar10=theinput.substring(9,10); var thenum1=theinput.substring(5,7); var thenum2=theinput.substring(8,10); if (thelength<10 || thelength>10) { gooddate=false; } if (thenum1<1 || thenum1>12) { gooddate=false; } if (thenum2<1 || thenum2>31) { gooddate=false; } if (thechar1<"0" || thechar1>"9" ) { gooddate=false; } if (thechar2<"0" || thechar2>"9" ) { gooddate=false; } if (thechar3<"0" || thechar3>"9" ) { gooddate=false; } if (thechar4<"0" || thechar4>"9" ) { gooddate=false; } if (thechar6<"0" || thechar6>"9" ) { gooddate=false; } if (thechar7<"0" || thechar7>"9" ) { gooddate=false; } if (thechar9<"0" || thechar9>"9" ) { gooddate=false; } if (thechar10<"0" || thechar10>"9" ) { gooddate=false; } if (thechar5=="-" && thechar8=="-") { sepchar=true; } if (gooddate==false || sepchar==false) {alert ("���ڸ�ʽ����(��ȷ��ʽϊ��(yyyy-mm-dd))") return false;} } return true; } function chkfrmsubmit(frm){ for(var i=0;i-1||theinput.indexof(",")>-1){ frmfield.focus(); alert("��ѯ�ؼ����������(���������������벻����������ַ�)") return false; } return true; } function chksearch(frm){ for(var i=0;i -1) {tmpvalue = tmpvalue.replace(';','��'); } while (tmpvalue.indexof('<') > -1) {tmpvalue = tmpvalue.replace('<','��'); } while (tmpvalue.indexof('>') > -1) {tmpvalue = tmpvalue.replace('>','��'); } while (tmpvalue.indexof('--') > -1) {tmpvalue = tmpvalue.replace('--','����'); } while (tmpvalue.indexof(",") > -1) {tmpvalue = tmpvalue.replace(",","��"); } while (tmpvalue.indexof("'") > -1) {tmpvalue = tmpvalue.replace("'","��"); } while (tmpvalue.indexof("?") > -1) {tmpvalue = tmpvalue.replace("?","��"); } return tmpvalue;//������ʾ���ĺ�ı��� } //title ������ var pltspop=null; var pltsoffsetx = 10; var pltsoffsety = 15; var pltspopbg="#ffff00"; var pltspopfg="#111111"; var pltstitle=""; document.write(''); function pltsinits() { document.onmouseover = plts; document.onmousemove = movetomouseloc; } function plts() { var o=event.srcelement; //if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""}; if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""}; pltspop=o.dypop; if(pltspop!=null&&pltspop!=""&&typeof(pltspop)!="undefined") { pltstiplayer.style.left=-1000; pltstiplayer.style.display=''; var msg=pltspop.replace(/\n/g,"
"); msg=msg.replace(/\0x13/g,"
"); var re=/\{(.[^\{]*)\}/ig; if(!re.test(msg))pltstitle=" �� ϣ�� "; else{ re=/\{(.[^\{]*)\}(.*)/ig; pltstitle=msg.replace(re,"$1")+" "; re=/\{(.[^\{]*)\}/ig; msg=msg.replace(re,""); msg=msg.replace("
","");} var attr=(document.location.tostring().tolowercase().indexof("list.asp")>0?"nowrap":""); var content = '
'+ ''+ ''+ ''+ '

�i'+pltstitle+'

'+msg+'
'; pltstiplayer.innerhtml=content; tooltiptalbe.style.width=math.min(pltstiplayer.clientwidth,document.body.clientwidth/2.2); movetomouseloc(); return true; } else { pltstiplayer.innerhtml=''; pltstiplayer.style.display='none'; return true; } } function movetomouseloc() { if(pltstiplayer.innerhtml=='')return true; var mousex=event.x; var mousey=event.y; //window.status=event.y; var popheight=pltstiplayer.clientheight; var popwidth=pltstiplayer.clientwidth; if(mousey+pltsoffsety+popheight>document.body.clientheight) { poptopadjust=-popheight-pltsoffsety*1.5; pltspoptop.style.display="none"; pltspopbot.style.display=""; } else { poptopadjust=0; pltspoptop.style.display=""; pltspopbot.style.display="none"; } if(mousex+pltsoffsetx+popwidth>document.body.clientwidth) { popleftadjust=-popwidth-pltsoffsetx*2; topleft.style.display="none"; botleft.style.display="none"; topright.style.display=""; botright.style.display=""; } else { popleftadjust=0; topleft.style.display=""; botleft.style.display=""; topright.style.display="none"; botright.style.display="none"; } pltstiplayer.style.left=mousex+pltsoffsetx+document.body.scrollleft+popleftadjust; pltstiplayer.style.top=mousey+pltsoffsety+document.body.scrolltop+poptopadjust; return true; } pltsinits(); function upfileupload(to_back,file_access){ //ͼƭ�θ� to_back ҫ���ر����ַ������idֵ��file_access ϊuploadfileŀ¼�µ��ļ������� var tmp=window.open("about:blank","",""); tmp.moveto(0,0); tmp.resizeto(screen.width+20,screen.height); tmp.focus(); tmp.location="../includes/upfile/upload.asp?to_url="+to_back+"&file="+file_access } //function upfileupload_db(to_back,file_access){ //ͼƭ�θ� to_back ҫ���ر����ַ������idֵ��file_access ϊuploadfileŀ¼�µ��ļ������� // //var tmp=window.open("about:blank","",""); //tmp.moveto(0,0); //tmp.resizeto(screen.width+20,screen.height); //tmp.focus(); //tmp.location="../includes/upfile_db/upload_db.asp?p="+to_back+"&file="+file_access //}