function CheckIE()
{
    var s=navigator.userAgent;
    if (s.indexOf("MSIE")!=-1)
    {
        s=s.substr(s.indexOf('MSIE')+5,1);
        if (s<=5)
        {
            alert("您的浏览器版本过低！");
            window.close();
        }
    }
}
//CheckIE();
function CookieEnable()
{
    var result=false;
    if(navigator.cookiesEnabled)
    {
        return true;
    }
    document.cookie = "TestCookie=1";
    var s = document.cookie;
    if (s.indexOf("TestCookie=1")!=-1)
    {
        result=true;
    }
    document.cookie = "";
    return result;
}
function CheckCookieEnable()
{
    if(!CookieEnable())
    {
        alert("您的浏览器Cookie功能被禁用，请您开启此功能！");
    }
}
//CheckCookieEnable();
function KillErrors()
{    
    return true;
}
//window.onerror=KillErrors;
/**/
function $$(id)
{
    return document.getElementById(id);
}
function ReturnMsg(s)
{
    alert(s);
    return false;
}
function ReplaceSpace(s)
{
    return s.replace(/ /g,"").replace(/　/g,"");
}
function EnterSubmit(e,btnID)
{ 
    var ee=window.event||e;
    var keyNum=ee.keyCode||ee.which;
    if(keyNum==13)
    {
        $$(btnID).click();
    }
}
function RegExpGather(regExpType)
{
    switch (regExpType)
    {
        case "Num":{return /^[\d]+$/;break;}
        case "Email":{return /^[_a-zA-Z\d\-\.]+@[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+$/;break;}
        case "MobilePhone":{return /^[0-9]{11}$/;break;}
        case "QQ":{return /^[0-9]{4,15}$/;break;}
        case "ChineseCharacter":{return /^[\u0391-\uFFE5]+$/gi;break;}        
        case "HasChn":{return /.*[\u4E00-\u9FA5]+.*$/;break;}
    }
}
function IsDateTime(dateStr)
{ 
    var datePat = /^(\d{4})(\-)(\d{1,2})(\-)(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;
    var matchArray = dateStr.match(datePat);if (matchArray == null)return false;    
    var month = matchArray[3];if (month < 1 || month > 12)return false;
    var day = matchArray[5];if (day < 1 || day > 31)return false;   
    if ((month==4 || month==6 || month==9 || month==11) && day==31)return false;  
    if (month == 2)
    {
        var year = matchArray[1]; 
        var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)); 
        if (day > 29 || (day==29 && !isleap))return false;      
    }
    dateStr=dateStr.substring(dateStr.indexOf(" ")+1);
    var arr=dateStr.split(":");
    if(arr[0]>=60)return false;if(arr[1]>=60)return false;if(arr[2]>=60)return false;
    return true;
}
/**/
function Hover(Obj,Opacity)
{
    if(Opacity==0)
    {
        Obj.style.filter="Gray";
    }
    else
    {
        Obj.style.opacity=Opacity;
        Obj.style.filter="Alpha(Opacity="+Opacity*100+")";
    }
}
function TabControl(tabObj,containerElementID)
{
    var b = tabObj.parentNode.getElementsByTagName("li");
    var v = $$(containerElementID).getElementsByTagName("blockquote");
    for(i=0;i<v.length;i++)
    {
        if(tabObj==b[i])
        {
            b[i].className = "on";
            v[i].className = "block";
        }
        else
        {
            b[i].className = "";
            v[i].className = "none";
        }
    }
}
/**/
function SetCookie(name,value,seconds)
{
    if(seconds==0)
    {
        document.cookie = name + "="+ escape (value);
    }
    else
    {
        var exp  = new Date();
        exp.setTime(exp.getTime() + seconds*1000);
        document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
    }
}
function SetCookieMinutes(name,value,minutes)
{
    SetCookie(name,value,minutes*60);  
}
function SetCookieHours(name,value,hours)
{
    SetCookie(name,value,hours*60*60);  
}
function SetCookieDays(name,value,days)
{
    SetCookie(name,value,days*24*60*60);  
}
function GetCookie(name)
{
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
    if(arr != null)
    {
        return unescape(arr[2]);
    }
    else
    {
        return null;
    }
}
function DelCookie(name)
{
    var exp = new Date();
    exp.setTime(exp.getTime() - 1000);
    var var1=GetCookie(name);
    if(var1!=null)
    {
        document.cookie= name + "="+var1+";expires="+exp.toGMTString();
    }
}
/**/
function CreateXMLHttpRequest()
{
    if (window.ActiveXObject)
    {
        try
        {
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch (e1)
        {
            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
        }
    }
    else if (window.XMLHttpRequest)
    {
        xmlHttp = new XMLHttpRequest();
    }
    return xmlHttp;
}
function Ajax(method,strUrl,strPar,OnHandler)
{    
    //Ajax("POST","","",function OnHandler(){if(xmlHttp.readyState==4){alert(xmlHttp.responseText);}});
    var xmlhttp = CreateXMLHttpRequest();
    if(method=="get")
    {
        xmlHttp.open("GET",strUrl,true);
    }
    else
    {
        xmlHttp.open("POST",strUrl,true);
        xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
    }
    xmlHttp.onreadystatechange = OnHandler;
    if(method=="get")
    {
        xmlHttp.send(null);
    }
    else
    {
        xmlHttp.send(strPar);
    }
}
/**/
function Trim(str)
{
    return str.replace(/(^\s*)|(\s*$)/g, "");
}
function LeftTrim(str)
{
    return str.replace(/(^\s*)/g,"");
}
function RightTrim(str)
{
    return str.replace(/(\s*$)/g,"");
}
function GetLength (str)
{
    var RealLength = 0;
    var Len = str.length;
    var CharCode = -1;
    for (var i=0; i<Len; i++)
    {
        CharCode = str.charCodeAt(i);
        if (CharCode >= 0 && CharCode <= 128)
        {
            RealLength += 1;
        }
        else
        {
            RealLength += 2;
        }
    }
    return RealLength;
} 
/**/
function AddFavorite(sURL, sTitle)
{
	try
	{
	    window.external.addFavorite(sURL, sTitle);
	}
	catch (e)
	{
		try
		{
		    window.sidebar.addPanel(sTitle, sURL, "");
		}
		catch (e)
		{
			alert("加入收藏失败，请使用Ctrl+D进行添加");
		}
	}
}
function AddFav()
{
    AddFavorite(location.href,document.title);
}
function SetHome(obj,vrl,url)
{
    //SetHome(this,'')
    try
    {
        obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
        this.style.behavior='url(#default#homepage)';this.setHomePage(url);
    }
    catch(e)
    {
        if(window.netscape)
        {
            try
            {
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
            }  
            catch (e)
            {
                alert("此操作被浏览器拒绝！请手动设置");
            }
            var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
            prefs.setCharPref('browser.startup.homepage',vrl);
        }
    }
}
function CopyToClipboard(text)
{
    if(window.clipboardData)
    {
        window.clipboardData.clearData();
        window.clipboardData.setData("Text", text);
    }
    else
    {
        alert("请手工复制！");
    }
}
function ResizePic(ImgTag,FitWidth,FitHeight)
{
    var image = new Image();
    image.src = ImgTag.src;
    if(image.width>0 && image.height>0)
    {
        if(image.width/image.height >= FitWidth/FitHeight)
        {
            if(image.width > FitWidth)
            {
                ImgTag.width = FitWidth;
                ImgTag.height = (image.height*FitWidth)/image.width;
            }
            else
            {
                ImgTag.width = image.width;ImgTag.height = image.height;
            }
        }
        else
        {
            if(image.height > FitHeight)
            {
                ImgTag.height = FitHeight;ImgTag.width = (image.width*FitHeight)/image.height;
            }
            else
            {
                ImgTag.width = image.width;ImgTag.height = image.height;
            }
        }
    }
}
function Rolling(objbox_,obj1_,obj2_,speed)
{
    var objbox=$$(objbox_);
    var obj1=$$(obj1_);
    var obj2=$$(obj2_);    
    obj2.innerHTML=obj1.innerHTML;    
    function Marquee()
    {
        if(obj2.offsetWidth-objbox.scrollLeft<=0)
        {
            objbox.scrollLeft-=obj1.offsetWidth
        }
        else
        {
            objbox.scrollLeft++
        }
    }    
    var MyMar=setInterval(Marquee,speed);    
    objbox.onmouseover=function() 
    {
        clearInterval(MyMar)
    }
    objbox.onmouseout=function() 
    {
        MyMar=setInterval(Marquee,speed);
    }
}
/**/
var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var base64DecodeChars = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1);
function base64encode(str)
{
    var out, i, len;
    var c1, c2, c3;
    len = str.length;
    i = 0;
    out = "";
    while(i < len) 
    {
        c1 = str.charCodeAt(i++) & 0xff;
        if(i == len)
        {
            out += base64EncodeChars.charAt(c1 >> 2);
            out += base64EncodeChars.charAt((c1 & 0x3) << 4);
            out += "==";
            break;
        }
        c2 = str.charCodeAt(i++);
        if(i == len)
        {
            out += base64EncodeChars.charAt(c1 >> 2);
            out += base64EncodeChars.charAt(((c1 & 0x3)<< 4) | ((c2 & 0xF0) >> 4));
            out += base64EncodeChars.charAt((c2 & 0xF) << 2);
            out += "=";
            break;
        }
        c3 = str.charCodeAt(i++);
        out += base64EncodeChars.charAt(c1 >> 2);
        out += base64EncodeChars.charAt(((c1 & 0x3)<< 4) | ((c2 & 0xF0) >> 4));
        out += base64EncodeChars.charAt(((c2 & 0xF) << 2) | ((c3 & 0xC0) >>6));
        out += base64EncodeChars.charAt(c3 & 0x3F);
    }
    return out;
}
function base64decode(str)
{
    var c1, c2, c3, c4;
    var i, len, out;
    len = str.length;
    i = 0;
    out = "";
    while(i < len)
    {
        /* c1 */
        do
        {
            c1 = base64DecodeChars[str.charCodeAt(i++) & 0xff];
        }
        while(i < len && c1 == -1);
        if(c1 == -1)
        {
            break;
        }        
        /* c2 */
        do
        {
            c2 = base64DecodeChars[str.charCodeAt(i++) & 0xff];
        }
        while(i < len && c2 == -1);
        if(c2 == -1)
        {
            break;
        }
        out += String.fromCharCode((c1 << 2) | ((c2 & 0x30) >> 4));
        /* c3 */
        do
        {
            c3 = str.charCodeAt(i++) & 0xff;
            if(c3 == 61)
            {
                return out;
            }
            c3 = base64DecodeChars[c3];
        }
        while(i < len && c3 == -1);
        if(c3 == -1)
        {
            break;
        }
        out += String.fromCharCode(((c2 & 0XF) << 4) | ((c3 & 0x3C) >> 2));
        /* c4 */
        do
        {
            c4 = str.charCodeAt(i++) & 0xff;
            if(c4 == 61)
            return out;
            c4 = base64DecodeChars[c4];
        }
        while(i < len && c4 == -1);
        if(c4 == -1)
        {
            break;
        }
        out += String.fromCharCode(((c3 & 0x03) << 6) | c4);
    }
    return out;
}
function utf16to8(str)
{
    var out, i, len, c;
    out = "";
    len = str.length;
    for(i = 0; i < len; i++)
    {
        c = str.charCodeAt(i);
        if ((c >= 0x0001) && (c <= 0x007F))
        {
            out += str.charAt(i);
        }
        else if (c > 0x07FF)
        {
            out += String.fromCharCode(0xE0 | ((c >> 12) & 0x0F));
            out += String.fromCharCode(0x80 | ((c >>  6) & 0x3F));
            out += String.fromCharCode(0x80 | ((c >>  0) & 0x3F));
        }
        else
        {
            out += String.fromCharCode(0xC0 | ((c >>  6) & 0x1F));
            out += String.fromCharCode(0x80 | ((c >>  0) & 0x3F));
        }
    }
    return out;
}
function utf8to16(str)
{
    var out, i, len, c;
    var char2, char3;
    out = "";
    len = str.length;
    i = 0;
    while(i < len)
    {
        c = str.charCodeAt(i++);
        switch(c >> 4)
        { 
            case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7:
            {
                // 0xxxxxxx
                out += str.charAt(i-1);
                break;
            }
            case 12: case 13:
            {
                // 110x xxxx   10xx xxxx
                char2 = str.charCodeAt(i++);
                out += String.fromCharCode(((c & 0x1F) << 6) | (char2 & 0x3F));
                break;
            }
            case 14:
            {
                // 1110 xxxx  10xx xxxx  10xx xxxx
                char2 = str.charCodeAt(i++);
                char3 = str.charCodeAt(i++);
                out += String.fromCharCode(((c & 0x0F) << 12) |((char2 & 0x3F) << 6) |((char3 & 0x3F) << 0));
                break;
            }
        }
    }
    return out;
}
function base64en(value)
{    
    return base64encode(utf16to8(value)).replace(/=/g,"_").replace(/\+/g,"!").replace(/\//g,"*");//base64encode(utf16to8(value))
}
function base64de(value)
{    
    return utf8to16(base64decode(value.replace(/\*/g,"/").replace(/\!/g,"+").replace(/_/g,"=")));//utf8to16(base64decode(value))
}
/**/
var TINY={};TINY.box=function(){var p,m,b,fn,ic,iu,iw,ih,ia,f=0;return{show:function(c,u,w,h,a,t){if(!f){p=document.createElement('div');p.id='tinybox';m=document.createElement('div');m.id='tinymask';b=document.createElement('div');b.id='tinycontent';document.body.appendChild(m);document.body.appendChild(p);p.appendChild(b);if(u==0&&c.indexOf("<iframe")==-1)m.onclick=TINY.box.hide;window.onresize=TINY.box.resize;f=1;}if(!a&&!u){p.style.width=w?w+'px':'auto';p.style.height=h?h+'px':'auto';p.style.backgroundImage='none';b.innerHTML=c;}else{b.style.display='none';p.style.width=p.style.height='100px'}this.mask();ic=c;iu=u;iw=w;ih=h;ia=a;this.alpha(m,1,50,1);if(t){setTimeout(function(){TINY.box.hide()},1000*t)}},fill:function(c,u,w,h,a){if(u){p.style.backgroundImage='';var x=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP');x.onreadystatechange=function(){if(x.readyState==4&&x.status==200){TINY.box.psh(x.responseText,w,h,a)}};x.open('GET',c,1);x.send(null)}else{this.psh(c,w,h,a)}},psh:function(c,w,h,a){if(a){if(!w||!h){var x=p.style.width,y=p.style.height;b.innerHTML=c;p.style.width=w?w+'px':'';p.style.height=h?h+'px':'';b.style.display='';w=parseInt(b.offsetWidth);h=parseInt(b.offsetHeight);b.style.display='none';p.style.width=x;p.style.height=y;}else{b.innerHTML=c}this.size(p,w,h,4)}else{p.style.backgroundImage='none'}},hide:function(){TINY.box.alpha(p,-1,0,1);},resize:function(){TINY.box.pos();TINY.box.mask();},mask:function(){m.style.height=TINY.page.theight()+'px';m.style.width='';m.style.width=TINY.page.twidth()+'px'},pos:function(){var t=(TINY.page.height()/2)-(p.offsetHeight/2);t=t<10?10:t;p.style.top=(t+TINY.page.top())+'px';p.style.left=(TINY.page.width()/2)-(p.offsetWidth/2)+'px'},alpha:function(e,d,a,s){clearInterval(e.ai);if(d==1){e.style.opacity=0;e.style.filter='alpha(opacity=0)';e.style.display='block';this.pos()}e.ai=setInterval(function(){TINY.box.twalpha(e,a,d,s)},20)},twalpha:function(e,a,d,s){var o=Math.round(e.style.opacity*100);if(o==a){clearInterval(e.ai);if(d==-1){e.style.display='none';e==p?TINY.box.alpha(m,-1,0,1):b.innerHTML=p.style.backgroundImage=''}else{e==m?this.alpha(p,1,100,1):TINY.box.fill(ic,iu,iw,ih,ia)}}else{var n=o+Math.ceil(Math.abs(a-o)/s)*d;e.style.opacity=n/100;e.style.filter='alpha(opacity='+n+')'}},size:function(e,w,h,s){e=typeof e=='object'?e:$$(e);clearInterval(e.si);var ow=e.offsetWidth,oh=e.offsetHeight,wo=ow-parseInt(e.style.width),ho=oh-parseInt(e.style.height);var wd=ow-wo>w?-1:1,hd=(oh-ho>h)?-1:1;e.si=setInterval(function(){TINY.box.twsize(e,w,wo,wd,h,ho,hd,s)},20)},twsize:function(e,w,wo,wd,h,ho,hd,s){var ow=e.offsetWidth-wo,oh=e.offsetHeight-ho;if(ow==w&&oh==h){clearInterval(e.si);p.style.backgroundImage='none';b.style.display='block'}else{if(ow!=w){e.style.width=ow+(Math.ceil(Math.abs(w-ow)/s)*wd)+'px'}if(oh!=h){e.style.height=oh+(Math.ceil(Math.abs(h-oh)/s)*hd)+'px'}this.pos()}}}}();TINY.page=function(){return{top:function(){return document.body.scrollTop||document.documentElement.scrollTop},width:function(){return self.innerWidth||document.documentElement.clientWidth},height:function(){return self.innerHeight||document.documentElement.clientHeight},theight:function(){var d=document,b=d.body,e=d.documentElement;return Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight))},twidth:function(){var d=document,b=d.body,e=d.documentElement;return Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth))}}}();

function SelectAll(obj)
{
    var objs=obj.parentNode.parentNode.parentNode.getElementsByTagName("input");            
    for(var i=0;i<objs.length;i++)
    {
        if(objs[i]!=obj&&objs[i].type=="checkbox")
        {
            if(objs[i].checked==true)objs[i].checked=false;else objs[i].checked=true;                                    
        }
    }
} 
function GetSelected(objID)
{
    var result="";
    var objs;
    if(objID=="")
    {
        objs=document.getElementsByTagName("input");
    }
    else
    {
        objs=$$(objID).getElementsByTagName("input");
    }
    for(var i=0;i<objs.length;i++)
    {
        if(objs[i].type=="checkbox")
        {
            if(objs[i].checked==true)
            {
                result+=","+objs[i].value;
            }
        }
    }
    if(result.indexOf(",0,")!=-1)
    {
        result=result.replace(",0,","");   
    }
    else
    {
        if(result.indexOf(",")!=-1)
        {
            result=result.substring(1);             
        }
    }
    return result;
}
function EditorOn(onImg,offImg,content,width,height,_allowFileManager,_filterMode,_resizeType,_imageSizeLimit,_items,_SubmitButton)
{
    if($$(onImg))$$(onImg).style.display="none";
    if($$(offImg))$$(offImg).style.display="";    
    if(document.all)
    {    
        $$(content).style.width=width;
        $$(content).style.height=height;
    }  
    else
    {    
        $$(content).style.width=width+"px";
        $$(content).style.height=height+"px";
    }     
    KindEditor.basePath="/Assist/tool/editor/";
    if(_items==null)
    {
        pub_editor1=KindEditor.create("#"+content,{cssPath:"/Assist/tool/editor/plugins/code/prettify.css",uploadJson:"/Assist/tool/editor/asp.net/upload_json.ashx",fileManagerJson:"/Assist/tool/editor/asp.net/file_manager_json.ashx",allowFileManager:_allowFileManager,filterMode:_filterMode,resizeType:_resizeType,imageSizeLimit:_imageSizeLimit,afterCreate:function FunSub(){var self=this;KindEditor.ctrl(self.edit.doc, 13, function(){self.sync();if(_SubmitButton!=null&&$$(_SubmitButton)){$$(_SubmitButton).click();}});}});
    }
    else
    {
        pub_editor1=KindEditor.create("#"+content,{cssPath:"/Assist/tool/editor/plugins/code/prettify.css",uploadJson:"/Assist/tool/editor/asp.net/upload_json.ashx",fileManagerJson:"/Assist/tool/editor/asp.net/file_manager_json.ashx",allowFileManager:_allowFileManager,filterMode:_filterMode,resizeType:_resizeType,imageSizeLimit:_imageSizeLimit,items:_items,afterCreate:function FunSub(){var self=this;KindEditor.ctrl(self.edit.doc, 13, function(){self.sync();if(_SubmitButton!=null&&$$(_SubmitButton)){$$(_SubmitButton).click();}});}});
    }
}
function EditorOff(onImg,offImg,content,width,height)
{
    if($$(onImg))$$(onImg).style.display="";
    if($$(offImg))$$(offImg).style.display="none";    
    if(document.all)
    {    
        $$(content).style.width=width;
        $$(content).style.height=height;
    }  
    else
    {    
        $$(content).style.width=width+"px";
        $$(content).style.height=height+"px";
    } 
    if(pub_editor1)
    {
        pub_editor1.remove();
        pub_editor1=null;
    }
}

function UploadChange(FileUpload1, PreviewObj, FakeField, LimitType, SubmitBtn, PathTextLen)
{
    var value=FileUpload1.value;
    if (value==""){return;}
    if ($$(SubmitBtn)){$$(SubmitBtn).removeAttribute("disabled");}
    LimitType=(LimitType=="")?".jpg|.jpeg|.gif|.bmp|.png":LimitType;
    var reg = new RegExp(LimitType, "i");
    if (!value.match(reg))
    {
        alert("格式不正确，请上传" + LimitType.toUpperCase().replace(/\./g, "").replace(/\|/g, "、") + "格式的文件！");
        FileUpload1.value = "";
        if ($$(SubmitBtn)){$$(SubmitBtn).setAttribute("disabled", "disabled");}
        return;
    }
    $$(FakeField).innerHTML = (PathTextLen>0)?(value.substring(0,PathTextLen)+((value.length>PathTextLen)?"...":"")):value;    
    if (!$$(PreviewObj)) return;    
    var img = $$(PreviewObj);
    if (navigator.userAgent.indexOf("Firefox") != -1)
    {
        if (FileUpload1.files)
        {
            img.src = FileUpload1.files.item(0).getAsDataURL();
            img.style.display = "";            
        }
    }
    else if (navigator.userAgent.indexOf('MSIE') != -1)
    {
        var iVer = navigator.userAgent.substr(navigator.userAgent.indexOf('MSIE') + 5, 1);
        if (iVer <= 6)
        {            
            img.src = value;
            img.style.display = "";            
            if (iVer == 6)
            {
                var image = new Image();
                image.dynsrc = value;
                var iSize = Math.round(image.fileSize / 1024);
                if (iSize > 200) alert("您选择的文件大小超过了200K，可能上传过程要等待更长的时间！");
            }
        }
        else if (iVer > 6)
        {           
            img.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = value;
            img.style.display = "";            
        }
    }
}