﻿/*
'=文 件 名：index.js
'=功    能：前台常用JS代码
'=适用版本：Sunshine Corporation Site V1.0
'=作    者：太阳光 [guangda1234@126.com]
'=日    期：2010-08-08 08:08
'=版    权：http://www.scscms.com/
'=Q 群交流：25702761
 */
 var dp={sh:{Toolbar:{},Utils:{},RegexLib:{},Brushes:{},Strings:{AboutDialog:"<html><head><title>About Me</title></head><body class=\"dp-about\"><table cellspacing=\"0\"><tr><td class=\"copy\"><img src=\"/images/scscms.jpg\" width=130 height=90 align=right><p class=\"title\">\u9633\u5149\u4f01\u4e1a\u7f51\u7ad9\u7ba1\u7406\u7cfb\u7edf</div><div class=\"para\">\u4f5c\u8005: \u592a\u9633\u5149<br/>guangda1234@126.com<br/><a href=\"http://www.scscms.com\" target=\"_blank\">http://www.scscms.com</a></p>&copy;2010-2020 SCSCMS</td></tr><tr><td class=\"footer\"><input type=\"button\" class=\"close\" value=\"Close\" onClick=\"window.close()\"/></td></tr></table></body></html>"},ClipboardSwf:null,Version:"1.5.1"}};dp.SyntaxHighlighter=dp.sh;dp.sh.Toolbar.Commands={ExpandSource:{label:"+ expand source",check:function($){return $.collapse},func:function(_,$){_.parentNode.removeChild(_);$.div.className=$.div.className.replace("collapsed","")}},ViewSource:{label:"\u539f\u7801",func:function(B,A){var _=dp.sh.Utils.FixForBlogger(A.originalCode).replace(/</g,"&lt;"),$=window.open("","_blank","width=750, height=400, location=no, resizable=1, menubar=0, scrollbars=0");$.document.write("<textarea style=\"width:99%;height:99%\">"+_+"</textarea>");$.document.close()}},CopyToClipboard:{label:"\u590d\u5236",check:function(){return window.clipboardData!=null||dp.sh.ClipboardSwf!=null},func:function(B,A){var $=dp.sh.Utils.FixForBlogger(A.originalCode).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");if(window.clipboardData)window.clipboardData.setData("text",$);else if(dp.sh.ClipboardSwf!=null){var _=A.flashCopier;if(_==null){_=document.createElement("div");A.flashCopier=_;A.div.appendChild(_)}_.innerHTML="<embed src=\""+dp.sh.ClipboardSwf+"\" FlashVars=\"clipboard="+encodeURIComponent($)+"\" width=\"0\" height=\"0\" type=\"application/x-shockwave-flash\"></embed>"}alert("\u4ee3\u7801\u5df2\u7ecf\u590d\u5236\u5230\u526a\u8d34\u677f")}},PrintSource:{label:"\u6253\u5370",func:function(A,_){var B=document.createElement("IFRAME"),$=null;B.style.cssText="position:absolute;width:0px;height:0px;left:-500px;top:-500px;";document.body.appendChild(B);$=B.contentWindow.document;dp.sh.Utils.CopyStyles($,window.document);$.write("<div class=\""+_.div.className.replace("collapsed","")+" printing\">"+_.div.innerHTML+"</div>");$.close();B.contentWindow.focus();B.contentWindow.print();alert("Printing...");document.body.removeChild(B)}},About:{label:"\u5173\u4e8e",func:function(A){var $=window.open("","_blank","dialog,width=300,height=150,scrollbars=0"),_=$.document;dp.sh.Utils.CopyStyles(_,window.document);_.write(dp.sh.Strings.AboutDialog.replace("{V}",dp.sh.Version));_.close();$.focus()}}};dp.sh.Toolbar.Create=function(A){var _=document.createElement("DIV");_.className="tools";for(var B in dp.sh.Toolbar.Commands){var $=dp.sh.Toolbar.Commands[B];if($.check!=null&&!$.check(A))continue;_.innerHTML+="<a href=\"#\" onclick=\"dp.sh.Toolbar.Command('"+B+"',this);return false;\">"+$.label+"</a>"}return _};dp.sh.Toolbar.Command=function(A,$){var _=$;while(_!=null&&_.className.indexOf("dp-highlighter")==-1)_=_.parentNode;if(_!=null)dp.sh.Toolbar.Commands[A].func($,_.highlighter)};dp.sh.Utils.CopyStyles=function(_,A){var B=A.getElementsByTagName("link");for(var $=0;$<B.length;$++)if(B[$].rel.toLowerCase()=="stylesheet")_.write("<link type=\"text/css\" rel=\"stylesheet\" href=\""+B[$].href+"\"></link>")};dp.sh.Utils.FixForBlogger=function($){return(dp.sh.isBloggerMode==true)?$.replace(/<br\s*\/?>|&lt;br\s*\/?&gt;/gi,"\n"):$};dp.sh.RegexLib={MultiLineCComments:new RegExp("/\\*[\\s\\S]*?\\*/","gm"),SingleLineCComments:new RegExp("//.*$","gm"),SingleLinePerlComments:new RegExp("#.*$","gm"),DoubleQuotedString:new RegExp("\"(?:\\.|(\\\\\\\")|[^\\\"\"\\n])*\"","g"),SingleQuotedString:new RegExp("'(?:\\.|(\\\\\\')|[^\\''\\n])*'","g")};dp.sh.Match=function(_,$,A){this.value=_;this.index=$;this.length=_.length;this.css=A};dp.sh.Highlighter=function(){this.noGutter=false;this.addControls=true;this.collapse=false;this.tabsToSpaces=true;this.wrapColumn=80;this.showColumns=true};dp.sh.Highlighter.SortCallback=function($,_){if($.index<_.index)return-1;else if($.index>_.index)return 1;else if($.length<_.length)return-1;else if($.length>_.length)return 1;return 0};dp.sh.Highlighter.prototype.CreateElement=function(_){var $=document.createElement(_);$.highlighter=this;return $};dp.sh.Highlighter.prototype.GetMatches=function(B,A){var _=0,$=null;while(($=B.exec(this.code))!=null)this.matches[this.matches.length]=new dp.sh.Match($[0],$.index,A)};dp.sh.Highlighter.prototype.AddBit=function(C,A){if(C==null||C.length==0)return;var B=this.CreateElement("SPAN");C=C.replace(/ /g,"&nbsp;");C=C.replace(/</g,"&lt;");C=C.replace(/\n/gm,"&nbsp;<br>");if(A!=null){if((/br/gi).test(C)){var _=C.split("&nbsp;<br>");for(var $=0;$<_.length;$++){B=this.CreateElement("SPAN");B.className=A;B.innerHTML=_[$];this.div.appendChild(B);if($+1<_.length)this.div.appendChild(this.CreateElement("BR"))}}else{B.className=A;B.innerHTML=C;this.div.appendChild(B)}}else{B.innerHTML=C;this.div.appendChild(B)}};dp.sh.Highlighter.prototype.IsInside=function($){if($==null||$.length==0)return false;for(var _=0;_<this.matches.length;_++){var A=this.matches[_];if(A==null)continue;if(($.index>A.index)&&($.index<A.index+A.length))return true}return false};dp.sh.Highlighter.prototype.ProcessRegexList=function(){for(var $=0;$<this.regexList.length;$++)this.GetMatches(this.regexList[$].regex,this.regexList[$].css)};dp.sh.Highlighter.prototype.ProcessSmartTabs=function($){var A=$.split("\n"),D="",F=4,E="\t";function B(D,C,E){var B=D.substr(0,C),A=D.substr(C+1,D.length),_="";for(var $=0;$<E;$++)_+=" ";return B+_+A}function C(C,A){if(C.indexOf(E)==-1)return C;var _=0;while((_=C.indexOf(E))!=-1){var $=A-_%A;C=B(C,_,$)}return C}for(var _=0;_<A.length;_++)D+=C(A[_],F)+"\n";return D};dp.sh.Highlighter.prototype.SwitchToList=function(){var B=this.div.innerHTML.replace(/<(br)\/?>/gi,"\n"),_=B.split("\n");if(this.addControls==true)this.bar.appendChild(dp.sh.Toolbar.Create(this));if(this.showColumns){var A=this.CreateElement("div"),E=this.CreateElement("div"),D=10,$=1;while($<=150)if($%D==0){A.innerHTML+=$;$+=($+"").length}else{A.innerHTML+="&middot;";$++}E.className="columns";E.appendChild(A);this.bar.appendChild(E)}for(var $=0,F=this.firstLine;$<_.length-1;$++,F++){var C=this.CreateElement("LI"),G=this.CreateElement("SPAN");C.className=($%2==0)?"alt":"";G.innerHTML=_[$]+"&nbsp;";C.appendChild(G);this.ol.appendChild(C)}this.div.innerHTML=""};dp.sh.Highlighter.prototype.Highlight=function(_){function E($){return $.replace(/^\s*(.*?)[\s\n]*$/g,"$1")}function F($){return $.replace(/\n*$/,"").replace(/^\n*/,"")}function D(F){var _=dp.sh.Utils.FixForBlogger(F).split("\n"),C=new Array(),D=new RegExp("^\\s*","g"),B=1000;for(var $=0;$<_.length&&B>0;$++){if(E(_[$]).length==0)continue;var A=D.exec(_[$]);if(A!=null&&A.length>0)B=Math.min(A[0].length,B)}if(B>0)for($=0;$<_.length;$++)_[$]=_[$].substr(B);return _.join("\n")}function B($,_,A){return $.substr(_,A-_)}var C=0;if(_==null)_="";this.originalCode=_;this.code=F(D(_));this.div=this.CreateElement("DIV");this.bar=this.CreateElement("DIV");this.ol=this.CreateElement("OL");this.matches=new Array();this.div.className="dp-highlighter";this.div.highlighter=this;this.bar.className="bar";this.ol.start=this.firstLine;if(this.CssClass!=null)this.ol.className=this.CssClass;if(this.collapse)this.div.className+=" collapsed";if(this.noGutter)this.div.className+=" nogutter";if(this.tabsToSpaces==true)this.code=this.ProcessSmartTabs(this.code);this.ProcessRegexList();if(this.matches.length==0){this.AddBit(this.code,null);this.SwitchToList();this.div.appendChild(this.bar);this.div.appendChild(this.ol);return}this.matches=this.matches.sort(dp.sh.Highlighter.SortCallback);for(var A=0;A<this.matches.length;A++)if(this.IsInside(this.matches[A]))this.matches[A]=null;for(A=0;A<this.matches.length;A++){var $=this.matches[A];if($==null||$.length==0)continue;this.AddBit(B(this.code,C,$.index),null);this.AddBit($.value,$.css);C=$.index+$.length}this.AddBit(this.code.substr(C),null);this.SwitchToList();this.div.appendChild(this.bar);this.div.appendChild(this.ol)};dp.sh.Highlighter.prototype.GetKeywords=function($){return"\\b"+$.replace(/ /g,"\\b|\\b")+"\\b"};dp.sh.BloggerMode=function(){dp.sh.isBloggerMode=true};dp.sh.HighlightAll=function(O,I,M,Q,A,K){function S(){var _=arguments;for(var $=0;$<_.length;$++){if(_[$]==null)continue;if(typeof(_[$])=="string"&&_[$]!="")return _[$]+"";if(typeof(_[$])=="object"&&_[$].value!="")return _[$].value+""}return null}function R(A,$){for(var _=0;_<$.length;_++)if($[_]==A)return true;return false}function B(C,$,B){var D=new RegExp("^"+C+"\\[(\\w+)\\]$","gi"),A=null;for(var _=0;_<$.length;_++)if((A=D.exec($[_]))!=null)return A[1];return B}function J($,B,C){var A=document.getElementsByTagName(C);for(var _=0;_<A.length;_++)if(A[_].getAttribute("name")==B)$.push(A[_])}var T=[],L=null,P={},_="innerHTML";J(T,O,"pre");J(T,O,"textarea");if(T.length==0)return;for(var $ in dp.sh.Brushes){var U=dp.sh.Brushes[$].Aliases;if(U==null)continue;for(var F=0;F<U.length;F++)P[U[F]]=$}for(F=0;F<T.length;F++){var E=T[F],D=S(E.attributes["class"],E.className,E.attributes["language"],E.language),C="";if(D==null)continue;D=D.split(":");C=D[0].toLowerCase();if(P[C]==null)continue;L=new dp.sh.Brushes[P[C]]();E.style.display="none";L.noGutter=(I==null)?R("nogutter",D):!I;L.addControls=(M==null)?!R("nocontrols",D):M;L.collapse=(Q==null)?R("collapse",D):Q;L.showColumns=(K==null)?R("showcolumns",D):K;var H=document.getElementsByTagName("head")[0];if(L.Style&&H){var G=document.createElement("style");G.setAttribute("type","text/css");if(G.styleSheet)G.styleSheet.cssText=L.Style;else{var N=document.createTextNode(L.Style);G.appendChild(N)}H.appendChild(G)}L.firstLine=(A==null)?parseInt(B("firstline",D,1)):A;L.Highlight(E[_]);L.source=E;E.parentNode.insertBefore(L.div,E)}};dp.sh.Brushes.CSS=function(){var _="ascent azimuth background-attachment background-color background-image background-position "+"background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top "+"border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color "+"border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width "+"border-bottom-width border-left-width border-width border cap-height caption-side centerline clear clip color "+"content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display "+"elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font "+"height letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top "+"margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans "+"outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page "+"page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position "+"quotes richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress "+"table-layout text-align text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em "+"vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index",$="above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder "+"both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed "+"continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double "+"embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia "+"gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic "+"justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha "+"lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower "+"navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset "+"outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side "+"rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow "+"small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize "+"table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal "+"text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin "+"upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow",A="[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif";this.regexList=[{regex:dp.sh.RegexLib.MultiLineCComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp("\\#[a-zA-Z0-9]{3,6}","g"),css:"value"},{regex:new RegExp("(-?\\d+)(.\\d+)?(px|em|pt|:|%|)","g"),css:"value"},{regex:new RegExp("!important","g"),css:"important"},{regex:new RegExp(this.GetKeywordsCSS(_),"gm"),css:"keyword"},{regex:new RegExp(this.GetValuesCSS($),"g"),css:"value"},{regex:new RegExp(this.GetValuesCSS(A),"g"),css:"value"}];this.CssClass="dp-css";this.Style=".dp-css .value { color: black; }"+".dp-css .important { color: red; }"};dp.sh.Highlighter.prototype.GetKeywordsCSS=function($){return"\\b([a-z_]|)"+$.replace(/ /g,"(?=:)\\b|\\b([a-z_\\*]|\\*|)")+"(?=:)\\b"};dp.sh.Highlighter.prototype.GetValuesCSS=function($){return"\\b"+$.replace(/ /g,"(?!-)(?!:)\\b|\\b()")+":\\b"};dp.sh.Brushes.CSS.prototype=new dp.sh.Highlighter();dp.sh.Brushes.CSS.Aliases=["css"];dp.sh.Brushes.Java=function(){var $="abstract assert boolean break byte case catch char class const "+"continue default do double else enum extends "+"false final finally float for goto if implements import "+"instanceof int interface long native new null "+"package private protected public return "+"short static strictfp super switch synchronized this throw throws true "+"transient try void volatile while";this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:"comment"},{regex:dp.sh.RegexLib.MultiLineCComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp("\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b","gi"),css:"number"},{regex:new RegExp("(?!\\@interface\\b)\\@[\\$\\w]+\\b","g"),css:"annotation"},{regex:new RegExp("\\@interface\\b","g"),css:"keyword"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"}];this.CssClass="dp-j";this.Style=".dp-j .annotation { color: #646464; }"+".dp-j .number { color: #C00000; }"};dp.sh.Brushes.Java.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Java.Aliases=["java"];dp.sh.Brushes.JScript=function(){var $="abstract boolean break byte case catch char class const continue debugger "+"default delete do double else enum export extends false final finally float "+"for function goto if implements import in instanceof int interface long native "+"new null package private protected public return short static super switch "+"synchronized this throw throws transient true try typeof var void volatile while with";this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:"comment"},{regex:dp.sh.RegexLib.MultiLineCComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp("^\\s*#.*","gm"),css:"preprocessor"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"}];this.CssClass="dp-c"};dp.sh.Brushes.JScript.prototype=new dp.sh.Highlighter();dp.sh.Brushes.JScript.Aliases=["js","jscript","javascript"];dp.sh.Brushes.Php=function(){var _="abs acos acosh addcslashes addslashes "+"array_change_key_case array_chunk array_combine array_count_values array_diff "+"array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill "+"array_filter array_flip array_intersect array_intersect_assoc array_intersect_key "+"array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map "+"array_merge array_merge_recursive array_multisort array_pad array_pop array_product "+"array_push array_rand array_reduce array_reverse array_search array_shift "+"array_slice array_splice array_sum array_udiff array_udiff_assoc "+"array_udiff_uassoc array_uintersect array_uintersect_assoc "+"array_uintersect_uassoc array_unique array_unshift array_values array_walk "+"array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert "+"basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress "+"bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir "+"checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists "+"closedir closelog copy cos cosh count count_chars date decbin dechex decoct "+"deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log "+"error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded "+"feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents "+"fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype "+"floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf "+"fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname "+"gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt "+"getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext "+"gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set "+"interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double "+"is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long "+"is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault "+"is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br "+"parse_ini_file parse_str parse_url passthru pathinfo readlink realpath rewind rewinddir rmdir "+"round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split "+"str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes "+"stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk "+"strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime "+"strtoupper strtr strval substr substr_compare",$="and or xor __FILE__ __LINE__ array as break case "+"cfunction class const continue declare default die do else "+"elseif empty enddeclare endfor endforeach endif endswitch endwhile "+"extends for foreach function include include_once global if "+"new old_function return static switch use require require_once "+"var while __FUNCTION__ __CLASS__ "+"__METHOD__ abstract interface public implements extends private protected throw";this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:"comment"},{regex:dp.sh.RegexLib.MultiLineCComments,css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp("\\$\\w+","g"),css:"vars"},{regex:new RegExp(this.GetKeywords(_),"gmi"),css:"func"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"}];this.CssClass="dp-c"};dp.sh.Brushes.Php.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Php.Aliases=["php"];dp.sh.Brushes.Sql=function(){var A="abs avg case cast coalesce convert count current_timestamp "+"current_user day isnull left lower month nullif replace right "+"session_user space substring sum system_user upper user year",_="absolute action add after alter as asc at authorization begin bigint "+"binary bit by cascade char character check checkpoint close collate "+"column commit committed connect connection constraint contains continue "+"create cube current current_date current_time cursor database date "+"deallocate dec decimal declare default delete desc distinct double drop "+"dynamic else end end-exec escape except exec execute false fetch first "+"float for force foreign forward free from full function global goto grant "+"group grouping having hour ignore index inner insensitive insert instead "+"int integer intersect into is isolation key last level load local max min "+"minute modify move name national nchar next no numeric of off on only "+"open option order out output partial password precision prepare primary "+"prior privileges procedure public read real references relative repeatable "+"restrict return returns revoke rollback rollup rows rule schema scroll "+"second section select sequence serializable set size smallint static "+"statistics table temp temporary then time timestamp to top transaction "+"translation trigger true truncate uncommitted union unique update values "+"varchar varying view when where with work",$="all and any between cross in join like not null or outer some";this.regexList=[{regex:new RegExp("--(.*)$","gm"),css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:dp.sh.RegexLib.SingleQuotedString,css:"string"},{regex:new RegExp(this.GetKeywords(A),"gmi"),css:"func"},{regex:new RegExp(this.GetKeywords($),"gmi"),css:"op"},{regex:new RegExp(this.GetKeywords(_),"gmi"),css:"keyword"}];this.CssClass="dp-sql";this.Style=".dp-sql .func { color: #ff1493; }"+".dp-sql .op { color: #808080; }"};dp.sh.Brushes.Sql.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Sql.Aliases=["sql"];dp.sh.Brushes.Vb=function(){var $="AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto "+"Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate "+"CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType "+"Date Decimal Declare Default Delegate Dim DirectCast Do Double Each "+"Else ElseIf End Enum Erase Error Event Exit False Finally For Friend "+"Function Get GetType GoSub GoTo Handles If Implements Imports In "+"Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module "+"MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing "+"NotInheritable NotOverridable Object On Option Optional Or OrElse "+"Overloads Overridable Overrides ParamArray Preserve Private Property "+"Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume "+"Return Select Set Shadows Shared Short Single Static Step Stop String "+"Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until "+"Variant When While With WithEvents WriteOnly Xor";this.regexList=[{regex:new RegExp("'.*$","gm"),css:"comment"},{regex:dp.sh.RegexLib.DoubleQuotedString,css:"string"},{regex:new RegExp("^\\s*#.*","gm"),css:"preprocessor"},{regex:new RegExp(this.GetKeywords($),"gm"),css:"keyword"}];this.CssClass="dp-vb"};dp.sh.Brushes.Vb.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Vb.Aliases=["vb","vb.net"];dp.sh.Brushes.Xml=function(){this.CssClass="dp-xml";this.Style=".dp-xml .cdata { color: #ff1493; }"+".dp-xml .tag, .dp-xml .tag-name { color: #36F; font-weight: bold; }"+".dp-xml .attribute { color: red; }"+".dp-xml .attribute-value { color: blue; }"};dp.sh.Brushes.Xml.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Xml.Aliases=["xml","xhtml","xslt","html","xhtml"];dp.sh.Brushes.Xml.prototype.ProcessRegexList=function(){function A(_,$){_[_.length]=$}var _=0,$=null,B=null;this.GetMatches(new RegExp("(&lt;|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](&gt;|>)","gm"),"cdata");this.GetMatches(new RegExp("(&lt;|<)!--\\s*.*?\\s*--(&gt;|>)","gm"),"comments");B=new RegExp("([:\\w-.]+)\\s*=\\s*(\".*?\"|'.*?'|\\w+)*|(\\w+)","gm");while(($=B.exec(this.code))!=null){if($[1]==null)continue;A(this.matches,new dp.sh.Match($[1],$.index,"attribute"));if($[2]!=undefined)A(this.matches,new dp.sh.Match($[2],$.index+$[0].indexOf($[2]),"attribute-value"))}this.GetMatches(new RegExp("(&lt;|<)/*\\?*(?!\\!)|/*\\?*(&gt;|>)","gm"),"tag");B=new RegExp("(?:&lt;|<)/*\\?*\\s*([:\\w-.]+)","gm");while(($=B.exec(this.code))!=null)A(this.matches,new dp.sh.Match($[1],$.index+$[0].indexOf($[1]),"tag-name"))};function Marquee(){this.ID=$(arguments[0]);this.Direction=this.Width=this.Height=this.DelayTime=this.WaitTime=this.CTL=this.StartID=this.Stop=this.MouseOver=0;this.Step=1;this.Timer=30;this.DirectionArray={"top":0,"up":0,"bottom":1,"down":1,"left":2,"right":3};if(typeof arguments[1]=="number"||typeof arguments[1]=="string")this.Direction=arguments[1];if(typeof arguments[2]=="number")this.Step=arguments[2];if(typeof arguments[3]=="number")this.Width=arguments[3];if(typeof arguments[4]=="number")this.Height=arguments[4];if(typeof arguments[5]=="number")this.Timer=arguments[5];if(typeof arguments[6]=="number")this.DelayTime=arguments[6];if(typeof arguments[7]=="number")this.WaitTime=arguments[7];if(typeof arguments[8]=="number")this.ScrollStep=arguments[8];this.ID.style.overflow=this.ID.style.overflowX=this.ID.style.overflowY="hidden";this.ID.noWrap=true;this.IsNotOpera=(navigator.userAgent.toLowerCase().indexOf("opera")==-1);if(arguments.length>=7)this.Start()}Marquee.prototype.Start=function(){if(this.ID==-1)return;if(this.WaitTime<800)this.WaitTime=800;if(this.Timer<20)this.Timer=20;if(this.Width==0)this.Width=parseInt(this.ID.style.width);if(this.Height==0)this.Height=parseInt(this.ID.style.height);if(typeof this.Direction=="string")this.Direction=this.DirectionArray[this.Direction.toString().toLowerCase()];this.HalfWidth=Math.round(this.Width/2);this.HalfHeight=Math.round(this.Height/2);this.BakStep=this.Step;this.ID.style.width=this.Width+"px";this.ID.style.height=this.Height+"px";if(typeof this.ScrollStep!="number")this.ScrollStep=this.Direction>1?this.Width:this.Height;var _="<table cellspacing='0' cellpadding='0' style='border-collapse:collapse;display:inline;'><tr><td noWrap=true style='white-space: nowrap;word-break:keep-all;'>MSCLASS_TEMP_HTML</td><td noWrap=true style='white-space: nowrap;word-break:keep-all;'>MSCLASS_TEMP_HTML</td></tr></table>",B="<table cellspacing='0' cellpadding='0' style='border-collapse:collapse;'><tr><td>MSCLASS_TEMP_HTML</td></tr><tr><td>MSCLASS_TEMP_HTML</td></tr></table>",D=this;D.tempHTML=D.ID.innerHTML;if(D.Direction<=1)D.ID.innerHTML=B.replace(/MSCLASS_TEMP_HTML/g,D.ID.innerHTML);else if(D.ScrollStep==0&&D.DelayTime==0)D.ID.innerHTML+=D.ID.innerHTML;else D.ID.innerHTML=_.replace(/MSCLASS_TEMP_HTML/g,D.ID.innerHTML);var $=this.Timer,C=this.DelayTime,A=this.WaitTime;D.StartID=function(){D.Scroll()};D.Continue=function(){if(D.MouseOver==1)setTimeout(D.Continue,C);else{clearInterval(D.TimerID);D.CTL=D.Stop=0;D.TimerID=setInterval(D.StartID,$)}};D.Pause=function(){D.Stop=1;clearInterval(D.TimerID);setTimeout(D.Continue,C)};D.Begin=function(){D.ClientScroll=D.Direction>1?D.ID.scrollWidth/2:D.ID.scrollHeight/2;if((D.Direction<=1&&D.ClientScroll<=D.Height+D.Step)||(D.Direction>1&&D.ClientScroll<=D.Width+D.Step)){D.ID.innerHTML=D.tempHTML;delete(D.tempHTML);return}delete(D.tempHTML);D.TimerID=setInterval(D.StartID,$);if(D.ScrollStep<0)return;D.ID.onmousemove=function($){if(D.ScrollStep==0&&D.Direction>1){var $=$||window.event;if(window.event){if(D.IsNotOpera)D.EventLeft=$.srcElement.id==D.ID.id?$.offsetX-D.ID.scrollLeft:$.srcElement.offsetLeft-D.ID.scrollLeft+$.offsetX;else{D.ScrollStep=null;return}}else D.EventLeft=$.layerX-D.ID.scrollLeft;D.Direction=D.EventLeft>D.HalfWidth?3:2;D.AbsCenter=Math.abs(D.HalfWidth-D.EventLeft);D.Step=Math.round(D.AbsCenter*(D.BakStep*2)/D.HalfWidth)}};D.ID.onmouseover=function(){if(D.ScrollStep==0)return;D.MouseOver=1;clearInterval(D.TimerID)};D.ID.onmouseout=function(){if(D.ScrollStep==0){if(D.Step==0)D.Step=1;return}D.MouseOver=0;if(D.Stop==0){clearInterval(D.TimerID);D.TimerID=setInterval(D.StartID,$)}}};setTimeout(D.Begin,A)};Marquee.prototype.Scroll=function(){switch(this.Direction){case 0:this.CTL+=this.Step;if(this.CTL>=this.ScrollStep&&this.DelayTime>0){this.ID.scrollTop+=this.ScrollStep+this.Step-this.CTL;this.Pause();return}else{if(this.ID.scrollTop>=this.ClientScroll)this.ID.scrollTop-=this.ClientScroll;this.ID.scrollTop+=this.Step}break;case 1:this.CTL+=this.Step;if(this.CTL>=this.ScrollStep&&this.DelayTime>0){this.ID.scrollTop-=this.ScrollStep+this.Step-this.CTL;this.Pause();return}else{if(this.ID.scrollTop<=0)this.ID.scrollTop+=this.ClientScroll;this.ID.scrollTop-=this.Step}break;case 2:this.CTL+=this.Step;if(this.CTL>=this.ScrollStep&&this.DelayTime>0){this.ID.scrollLeft+=this.ScrollStep+this.Step-this.CTL;this.Pause();return}else{if(this.ID.scrollLeft>=this.ClientScroll)this.ID.scrollLeft-=this.ClientScroll;this.ID.scrollLeft+=this.Step}break;case 3:this.CTL+=this.Step;if(this.CTL>=this.ScrollStep&&this.DelayTime>0){this.ID.scrollLeft-=this.ScrollStep+this.Step-this.CTL;this.Pause();return}else{if(this.ID.scrollLeft<=0)this.ID.scrollLeft+=this.ClientScroll;this.ID.scrollLeft-=this.Step}break}};var autoKey=false;function addBtn(){if(!$("ibanner")||!$("ibanner_pic"))return;var F=$("ibanner_pic").getElementsByTagName("a");if(F.length==0)return;var B=document.createElement("div");B.setAttribute("id","ibanner_btn");var E="";for(var D=1;D<=F.length;D++){var _="<span class=\"normal\">"+D+"</span>";E+=_}B.innerHTML=E;$("ibanner").appendChild(B);$("ibanner_btn").getElementsByTagName("span")[0].className="current";for(var A=0;A<F.length;A++){var C="picLi_"+A;F[A].setAttribute("id",C)}}function moveElement(D,G,C,B){if(!document.getElementById)return false;if(!document.getElementById(D))return false;var A=document.getElementById(D);if(A.movement)clearTimeout(A.movement);if(!A.style.left)A.style.left="0px";if(!A.style.top)A.style.top="0px";var _=parseInt(A.style.left),$=parseInt(A.style.top);if(_==G&&$==C){moveing=false;return true}if(_<G){var F=Math.ceil((G-_)/10);_=_+F}if(_>G){F=Math.ceil((_-G)/10);_=_-F}if($<C){F=Math.ceil((C-$)/10);$=$+F}if($>C){F=Math.ceil(($-C)/10);$=$-F}A.style.left=_+"px";A.style.top=$+"px";var E="moveElement('"+D+"',"+G+","+C+","+B+")";A.movement=setTimeout(E,B)}function classNormal(){var _=$("ibanner_btn").getElementsByTagName("span");for(var A=0;A<_.length;A++)_[A].className="normal"}function picZ(){var _=$("ibanner_pic").getElementsByTagName("a");for(var A=0;A<_.length;A++)_[A].style.zIndex="1"}function iBanner(){if(!$("ibanner")||!$("ibanner_pic")||!$("ibanner_btn"))return;$("ibanner").onmouseover=function(){autoKey=true};$("ibanner").onmouseout=function(){autoKey=false};var _=$("ibanner_btn").getElementsByTagName("span"),B=$("ibanner_pic").getElementsByTagName("a");if(B.length==1)return;B[0].style.zIndex="2";for(var A=0;A<_.length;A++)_[A].onmouseover=function(){for(var A=0;A<_.length;A++)if(_[A].className=="current")var C=A;classNormal();picZ();this.className="current";B[C].style.zIndex="2";var $=this.childNodes[0].nodeValue-1;B[$].style.zIndex="3";if(C!=$){B[$].style.left="650px";moveElement("picLi_"+$,0,0,10)}}}function autoBanner(){if(!$("ibanner")||!$("ibanner_pic")||!$("ibanner_btn")||autoKey)return;var D=$("ibanner_btn").getElementsByTagName("span"),B=$("ibanner_pic").getElementsByTagName("a");if(B.length==1)return;for(var C=0;C<D.length;C++)if(D[C].className=="current")var A=C;if(A==(B.length-1)){classNormal();picZ();D[0].className="current";B[A].style.zIndex="2";B[0].style.zIndex="3";B[0].style.left="650px";moveElement("picLi_0",0,0,10)}else{classNormal();picZ();var _=A+1;D[_].className="current";B[A].style.zIndex="2";B[_].style.zIndex="3";B[_].style.left="650px";moveElement("picLi_"+_,0,0,10)}}var i=0,web_url=window.location.href;function linght_key(_){if(i>2)i=0;var C=new Array();C[0]="red";C[1]="green";C[2]="blue";if(document.createRange){var $=window.getSelection();$.collapse(document.body,0);while(window.find(_)){var B=document.createElement("span");B.style.color=C[i];$.getRangeAt(0).surroundContents(B)}}else{var D=document.body.createTextRange(),A=D.getBookmark();D.collapse(true);D.moveToBookmark(A);while(D.findText(_))D.pasteHTML(D.text.fontcolor(C[i]))}i++}function change_vote(_){var A=$("scs_vote_"+_).style.display;$("scs_vote_"+_).style.display=A=="none"?"block":"none";$("vote_"+_).style.display=A=="none"?"none":"block"}function save_vote(_){var D=get_Cookie("scs_voted");if(D==null||D.indexOf("scs_voted"+_+",")==-1){var B="",A=document.getElementsByName("item_id"+_);for(var C=0;C<A.length;C++)if(A[C].checked)B=B+","+A[C].value;if(B=="")alert("\u8bf7\u5148\u9009\u62e9\u6295\u7968\uff01");else Scs_Ajax("/inc/scs_ajax.asp?action=save_vote&id="+_+"&str="+B.substr(0)+"&"+Math.random(),"GET",null,function(A){alert(A.responseText);$("scs_vote_"+_).style.display="none";$("vote_"+_).style.display="block"})}else alert("\u8bf7\u4e0d\u8981\u91cd\u590d\u63d0\u4ea4\u6295\u7968\uff01")}function change_news(B,_){for(var A=0;A<_;A++)$("news_ul"+A).style.display="none";$("news_ul_title").className="news_title"+B;$("news_ul"+B).style.display="block"}function top_menu(A,B){for(var _=0;_<=B;_++){document.getElementById("qh_con"+_).style.display="none";document.getElementById("mynav"+_).className=""}document.getElementById("qh_con"+A).style.display="block";document.getElementById("mynav"+A).className="nav_on"}function tab_menu(C,B,A){for(var _=0;_<A;_++){$(C+"_div"+_).style.display="none";$(C+"_"+_).className=C+"_off"}$(C+"_div"+B).style.display="block";$(C+"_"+B).className=C+"_on"}var highlighting;function high($){theobject=$;theobject.filters.alpha.opacity=0;highlighting=setInterval("highlightit(theobject)",50)}function low($){clearInterval(highlighting);$.filters.alpha.opacity=100}function highlightit($){if($.filters.alpha.opacity<100)$.filters.alpha.opacity+=15;else if(window.highting)clearInterval(highlighting)}function doZoom(_){$("conter").style.fontSize=_+"px"}function show_content(B,_,A){Scs_Ajax("/inc/scs_ajax.asp?action=show_content&str="+B+"&id="+_+"&page="+A+"&"+Math.random(),"GET",null,function(_){if(B=="picture"||B=="media")$("pic_conter").innerHTML=_.responseText;else{$("s_conter").innerHTML=_.responseText;dp.SyntaxHighlighter.HighlightAll("code")}})}var flag=true;function DrawImage($){var _=new Image();_.src=$.src;if(_.width>0&&_.height>0){flag=true;if(_.width>=688){$.width=688;$.height=(_.height*688)/_.width;$.style.cursor="pointer"}else{$.width=_.width;$.height=_.height}}}function Plug(B,_,$,A){MyWin.Create(B,"[ur]/other/"+_+"/?"+Math.random(),"","",$,A,0)}function userlogin(){Scs_Ajax("/inc/scs_ajax.asp?action=userlogin&"+Math.random(),"GET",null,function(_){$("user_info").innerHTML=_.responseText})}function loginout(){Scs_Ajax("/inc/scs_ajax.asp?action=loginout&"+Math.random(),"GET",null,function(_){$("user_info").innerHTML=_.responseText})}function feel(B,A,_){Scs_Ajax("/inc/scs_ajax.asp?action=feel&str="+B+"&id="+_+"&f_id="+A+"&"+Math.random(),"GET",null,function(_){$("Feedback").innerHTML=_.responseText})}function copyText($){window.clipboardData.setData("text",$+" \u6765\u6e90: "+web_url);MyWin.Create("\u53cb\u60c5\u63d0\u793a","[in]\u590d\u5236\u7f51\u9875\u5730\u5740\u6210\u529f<br/>\u8bf7\u5728\u9700\u8981\u7684\u5730\u65b9\u76f4\u63a5\u7c98\u8d34\uff01")}function Collection(_,$){if(confirm("\u60a8\u786e\u5b9a\u8981\u6536\u85cf\u6b64\u6587\u5417?\n\u6536\u85cf\u540e\u5728\u4f1a\u5458\u540e\u53f0\u53ef\u4ee5\u7ba1\u7406\u3002"))Scs_Ajax("/inc/scs_ajax.asp?action=favorites&str="+_+"&id="+$+"&"+Math.random(),"GET",null,function($){alert($.responseText)})}function send_email(_){var $="<div id='send_email' style='margin:10px;padding:4px;border:1px solid #A8BEC9;font-size:12px;text-align:center;'><span id='web_url'><a href='"+web_url+"' target=_blank>"+_+"</a></span><br/>\u63a5\u6536\u90ae\u7bb1 <input name='accept' id='accept' type='text' maxlength='100' class='inputself'><br/>\u60a8\u7684\u79f0\u547c <input type='text' name='your'  id='your' maxlength='5' class='inputself'><br/>&nbsp;\u9a8c&nbsp;&nbsp;\u8bc1&nbsp;&nbsp;<input name='Scs_Code' id='Scs_Code' type='text'  maxlength='4' class='inputself' style='width:40px;' onfocus=\"$('img_code').src='/inc/scs_Getcode.asp'\">&nbsp;<img src='/inc/scs_Getcode.asp' id='img_code'> &nbsp;<input type='button' name='reg' onClick=\"Recommend();\" value=\"\u53d1 \u9001\" class='put' onmouseover=\"this.className='overput'\" onmouseout=\"this.className='put'\"></div>";MyWin.Create("\u90ae\u7bb1\u53d1\u9001",$,"","",400,175,0)}function Recommend(){var C=$("accept").value,A=$("your").value,_=$("Scs_Code").value;if(C==""||A==""||_.length<4)alert("\u8bf7\u586b\u5199\u5b8c\u6574\uff01");else if(!ck_email.test(C))alert("\u8bf7\u586b\u5199\u6b63\u786e\u90ae\u7bb1\uff01");else{var B=$("web_url").innerHTML;MyWin.Close("win"+Winid,100);MyWin.Create("\u4fe1\u606f\u63d0\u793a","[wf]\u8bf7\u7a0d\u5019,\u6b63\u5728\u53d1\u9001\u90ae\u7bb1!");Scs_Ajax("/inc/scs_ajax.asp?action=Recommend&web="+escape(B)+"&accept="+C+"&your="+escape(A)+"&Scs_Code="+_+"&"+Math.random(),"GET",null,function(_){$("win"+Winid).childNodes[1].childNodes[1].innerHTML=_.responseText})}}function hidseacher(){if(document.getElementById("suggest"))$("suggest").style.display="none"}function keyupdeal(A){var _=$("Search_txt").value;if(A!="")Scs_Ajax("/inc/scs_ajax.asp?action=seacher&str="+_+"&keyword="+escape(A)+"&"+Math.random(),"GET",null,function(_){if(_.responseText.indexOf("<ul")>-1){$("suggest").style.display="block";$("suggest").innerHTML=_.responseText}})}function showe_find(A){var B=escape($("key_word").value),_=$("Search_txt").value,C=$("Search_area").value;if(B!=""){if(_!="diary")top.location="/search/?Search_txt="+_+"&Search_area="+C+"&key_word="+B}else{alert("\u8bf7\u8f93\u5165\u641c\u7d22\u5173\u952e\u8bcd");$("key_word").focus()}}function scs_find(){var _=$("scs_word").value;if(_==""){alert("\u8bf7\u8f93\u5165\u641c\u7d22\u5173\u952e\u8bcd\uff01");$("scs_word").focus()}else top.location="/search/index.asp?Search_txt=news&Search_area=title&key_word="+escape(_)}function software_err($){Scs_Ajax("/inc/scs_ajax.asp?action=software_err&id="+$+"&"+Math.random(),"GET",null,function($){MyWin.Create("\u8f6f\u4ef6\u62a5\u9519","[in]"+$.responseText)})}function user_login($){Scs_Ajax("/inc/scs_ajax.asp?action=user&id="+$+"&"+Math.random(),"GET",null,function($){MyWin.Create("\u6b22\u8fce\u4f1a\u5458\u767b\u9646","[wi]"+$.responseText,"","","",185,0)})}function login(A){var _=$("Scs_username").value,C=$("Scs_password").value,B=$("Scs_Code").value;if(_==""||C==""||B=="")alert("\u8bf7\u586b\u5199\u5b8c\u6574\uff01");else if(B.length<4)alert("\u8bf7\u8f93\u5165\u56db\u4f4d\u7684\u9a8c\u8bc1\u7801\uff01");else Scs_Ajax("/inc/scs_ajax.asp?action=login&Scs_username="+escape(_)+"&Scs_password="+C+"&Scs_Code="+B+"&"+Math.random(),"GET",null,function(_){if(_.responseText=="ok"){if(A=="ok")userlogin();else{var B=A.split("$");show_content(B[0],B[1],1)}MyWin.Close("win"+Winid,100)}else{alert(_.responseText);if(_.responseText=="\u9a8c\u8bc1\u7801\u9519\u8bef\uff01")$("img_code").src="/inc/scs_Getcode.asp?"+Math.random()}})}function RemarkList(A,C,B,_){Scs_Ajax("/inc/scs_ajax.asp?action=RemarkList&id="+A+"&page="+B+"&FileName="+C+"&comment="+_+"&"+Math.random(),"GET",null,function(_){$("RemarkList").innerHTML=_.responseText})}function Remark(){var B=$("pl_id").value,_=$("FileName").value,A=$("Remarker").value,F=$("remark").value,D=$("xCode").value,E=$("Email").value,C=$("comment").value;if(D!=get_Cookie("useryangzeng"))alert("\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e\uff01");else if(A==""||F=="")alert("\u59d3\u540d\u3001\u8bc4\u8bed\u5fc5\u987b\u586b\u5199\uff01");else if(F.length>150||F.length<5)alert("\u8bf7\u586b\u51995-150\u5b57\u5185\u7684\u8bc4\u8bba\u5185\u5bb9\uff01");else if(E!=""&&!ck_email.test(E))alert("\u8bf7\u586b\u5199\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740\uff01");else Scs_Ajax("/inc/scs_ajax.asp?action=Save_Remark&code="+D,"POST","id="+B+"&FileName="+_+"&Remarker="+escape(A)+"&remark="+escape(F)+"&comment="+C,function(A){var D=A.responseText;if(D=="ok"){MyWin.Create("\u53cb\u60c5\u63d0\u793a","[in]\u60a8\u5df2\u7ecf\u6210\u529f\u63d0\u4ea4\u8bc4\u8bba\u4fe1\u606f<br>\u611f\u8c22\u60a8\u7684\u8bc4\u8bba!");RemarkList(B,_,1,C);$("pl_code").src="/inc/scs_Getcode.asp?"+Math.random();$("Remarker").value=""}else if(D=="no")MyWin.Create("\u53cb\u60c5\u63d0\u793a","[in]<br>\u6e38\u5ba2\u4e0d\u80fd\u91cd\u590d\u53d1\u8868\u8bc4\u8bba!");else{MyWin.Create("\u53cb\u60c5\u63d0\u793a","[in]<br>"+A.responseText);if(D=="\u9a8c\u8bc1\u7801\u9519\u8bef")$("pl_code").src="/inc/scs_Getcode.asp?"+Math.random()}})}function support_against(B,A,_){Scs_Ajax("/inc/scs_ajax.asp?action=support_against&i="+A+"&str="+B+"&id="+_+"&"+Math.random(),"GET",null,function(_){if(_.responseText=="no")MyWin.Create("\u9519\u8bef\u63d0\u793a","[er]<br>\u8bf7\u4e0d\u8981\u91cd\u590d\u53d1\u8868\u610f\u89c1!");else $("scs_mark").innerHTML=_.responseText})}function order_inquiry(){var _=$("order").value;if(_!="")Scs_Ajax("/inc/scs_ajax.asp?action=order_inquiry&id="+_+"&"+Math.random(),"GET",null,function($){MyWin.Create("\u8ba2\u5355\u67e5\u8be2","[in]"+$.responseText)});else{alert("\u8bf7\u8f93\u5165\u8ba2\u5355\u53f7!");$("order").focus();return false}}function order(G){if(!CheckSql("\u59d3\u540d","name",1,10)||!CheckSql("\u7535\u8bdd","tel",1,15)||!CheckSql("\u624b\u673a","mobile",0,11)||!CheckSql("\u90ae\u7bb1","email",1,50)||!CheckSql("\u9001\u8d27\u5730\u5740","address",1,100)||!CheckSql("\u6570\u91cf","number",0,4)||!CheckSql("\u5176\u4ed6\u8981\u6c42","r_content",1,200)||!CheckSql("\u9a8c\u8bc1\u7801","getcode",0,4))return false;var B=$("name").value,H=$("tel").value,E=$("mobile").value,_=$("email").value,F=$("address").value,C=$("number").value,D=$("r_content").value,A=$("getcode").value;if(!ck_email.test(_)){alert("\u90ae\u7bb1\u5730\u5740\u4e0d\u6b63\u786e!");$("email").focus();return false}else if(E.length!=11){alert("\u8bf7\u8f93\u516511\u4f4d\u6570\u7684\u624b\u673a\u53f7\u7801!");$("mobile").focus();return false}else if(C<1){alert("\u8ba2\u8d2d\u6570\u91cf\u4e0d\u80fd\u4e3a\u96f6!");$("number").focus();return false}else if(A.length!=4){alert("\u9a8c\u8bc1\u7801\u5fc5\u987b\u662f\u56db\u4f4d\u6570!");$("getcode").focus();return false}else{MyWin.Create("\u4fe1\u606f\u63d0\u793a","[wf]\u8bf7\u7a0d\u5019,\u6b63\u5728\u5904\u7406\u6570\u636e!");Scs_Ajax("/inc/scs_ajax.asp?action=scs_order&id="+G+"&getcode="+A+"&"+Math.random(),"POST","name="+B+"&tel="+H+"&mobile="+E+"&email="+_+"&address="+F+"&number="+C+"&content="+D,function(_){$("win"+Winid).childNodes[1].childNodes[1].innerHTML=_.responseText})}}function massage(){Read("Pro");var $=new FCKeditor("content");$.BasePath="/FCKeditor/";$.Height=150;$.ToolbarSet="Basic";$.ReplaceTextarea()}function ckeck_gb($){if(!CheckSql("\u7559\u8a00\u8005\u59d3\u540d","gb_poster",1,10)||!CheckSql("\u7559\u8a00\u90ae\u7bb1","gb_email",1,50)||!CheckSql("\u7559\u8a00\u6807\u9898","gb_title",1,50)||!CheckSql("\u7559\u8a00\u9a8c\u8bc1\u7801","gb_code",0,4))return false;else if(getLength().length<10){MyWin.Create("\u7559\u8a00\u63d0\u793a","[in]<br>\u8bf7\u4e0d\u8981\u5c11\u4e8e10\u4e2a\u5b57\u7684\u7559\u8a00\uff01");return false}else if(getLength().length>$){MyWin.Create("\u7559\u8a00\u63d0\u793a","[in]<br>\u8bf7\u4e0d\u8981\u8d85\u8fc7"+$+"\u4e2a\u5b57\u7684\u7559\u8a00\uff01");return false}else MyWin.Create("\u53cb\u60c5\u63d0\u793a","[cf]<br/>\u60a8\u786e\u5b9a\u8981\u7559\u8a00\u5417?\u8bf7\u6ce8\u610f\u7559\u8a00\u4e8b\u9879!")}function write_back($){Scs_Ajax("/inc/scs_ajax.asp?action=write_back&id="+$+"&"+Math.random(),"GET",null,function($){MyWin.Create("\u56de\u590d\u7559\u8a00","[wi]"+$.responseText,"","",490,190,0)})}function ckeck_back(B,C){var A=$("re_content").value,D=$("gb_code").value,_=get_Value("gb_bm");if(A.length<5||A.length>C)alert("\u56de\u590d\u5185\u5bb9\u5fc5\u987b\u57285\u81f3"+C+"\u4e2a\u5b57\u7b26\u5185!");else if(D.length!=4)alert("\u8bf7\u8f93\u5165\u56db\u4f4d\u6570\u7684\u9a8c\u8bc1\u7801!");else Scs_Ajax("/inc/scs_ajax.asp?action=save_gb&id="+B+"&code="+D+"&mb="+_,"POST","content="+escape(A),function($){if($.responseText=="ok")document.location.reload();else alert($.responseText)})}function user_reg(){agree();Read("Pro");Scs_Ajax("/inc/Scs_ajax.asp?action=user_list&styp=0&top=8","GET",null,function(_){$("News_List").innerHTML=_.responseText})}sces=15;function agree(){sces-=1;$("agree").innerHTML=sces+"\u79d2\u540e\u7ee7\u7eed";if(sces>1)setTimeout("agree()",1000);else{$("agree").disabled=false;$("agree").innerHTML="\u6211 \u540c \u610f"}}function agree_ok(){close_open("reguser1",1);close_open("reguser2",0)} if(window.addEventListener)window.addEventListener("load",onland_ok,false);else if(window.attachEvent)window.attachEvent("onload",onland_ok);else window.onload=onland_ok;function onland_ok(){var _=new Date();/*$(s_("108_111_97_100_116_105_109_101")).innerHTML=(_.getTime()-t_begin.getTime())/100+"ms &co"+"py20"+"10 <a href='htt"+"p://ww"+"w."+s_("115_99_115_99_109_115")+".c"+"om' target='_blank'>"+s_("115_99_115_99_109_115")+"</a>";*/input_focus("input","scs_input");input_focus("textarea","text_area");input_focus("select","scs_select");if(get_Cookie("feel")==null)writeCookie("feel","|");dp.SyntaxHighlighter.HighlightAll("code")}function reg_user(){if(!CheckSql("\u4f1a\u5458\u540d\u79f0","username",1,8)||!CheckSql("\u4f1a\u5458\u90ae\u7bb1","email",1,50)||!CheckSql("\u51fa\u751f\u65e5\u671f","borndate",1,20)||!CheckSql("\u7528\u6237\u5bc6\u7801","password",1,20)||!CheckSql("\u9a8c\u8bc1\u7801","u_code",0,4))return false;var C=$("u_code").value,D=$("password").value;if(D!=$("password2").value){alert("\u767b\u5f55\u5bc6\u7801\u4e0e\u786e\u8ba4\u5bc6\u7801\u4e0d\u4e00\u81f4!");$("password2").value="";return false}else if(C!=get_Cookie("useryangzeng")){alert("\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e\uff01");return false}else{var L="";if($("selArea").style.display!="none")L=$("selArea").value;else if($("selCity").style.display!="none")L=$("selCity").value;else L=$("selPro").value;var G=$("username").value,B=$("email").value,_=get_Value("sex").replace(",",""),A=$("borndate").value,I=$("turename").value,J=$("address").value,H=$("zip").value,E=$("homepage").value,F=$("tel").value,K=$("signature").value,M=$("GuestImages").value;if(H.length>0&&H.length!=6){alert("\u8bf7\u8f93\u51656\u4f4d\u7684\u90ae\u653f\u7f16\u7801!");return false}MyWin.Create("\u4fe1\u606f\u63d0\u793a","[wf]\u8bf7\u7a0d\u5019,\u6b63\u5728\u5904\u7406\u6570\u636e!");Scs_Ajax("/inc/Scs_ajax.asp?action=reg_user&code="+C,"POST","uimg="+M+"&username="+escape(G)+"&email="+B+"&sex="+_+"&borndate="+A+"&area_id="+L+"&author="+escape(I)+"&password="+D+"&address="+escape(J)+"&zip="+H+"&homepage="+E+"&tel="+F+"&signature="+escape(K),function(_){$("win"+Winid).childNodes[1].childNodes[1].innerHTML=_.responseText})}}function check_findName(){if(!CheckSql("\u4f1a\u5458\u540d\u79f0","username",1,8)||!CheckSql("\u4f1a\u5458\u90ae\u7bb1","email",1,50)||!CheckSql("\u9a8c\u8bc1\u7801","code",0,4))return false;var _=$("username").value,B=$("email").value,A=$("code").value;if(_==""||_.length<2){alert("\u8bf7\u8f93\u51652\u4f4d\u6570\u4ee5\u4e0a\u7684\u7528\u6237\u540d!");$("username").focus()}else if(!ck_email.test(B)){alert("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740!");$("email").focus()}else if(A!=get_Cookie("useryangzeng")){alert("\u9a8c\u8bc1\u7801\u9519\u8bef!");$("code_pic").src="/inc/Scs_GetCode.asp?scs="+Math.random();$("code").focus()}else{MyWin.Create("\u4fe1\u606f\u63d0\u793a","[wf]\u8bf7\u7a0d\u5019,\u6b63\u5728\u5904\u7406\u6570\u636e!");Scs_Ajax("/inc/scs_ajax.asp?action=check_findName&code="+A+"&email="+B+"&name="+escape(_),"GET",null,function(_){$("win"+Winid).childNodes[1].childNodes[1].innerHTML=_.responseText})}}

