Dialog_InsertImage.js
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:27k
- var OxO4465=["zoomcount","wheelDelta","zoom","style","0%","top","hiddenDirectory","hiddenFile","hiddenAlert","hiddenAction","hiddenActionData","disabled","[[Disabled]]","[[SpecifyNewFolderName]]","","value","createdir","[[CopyMoveto]]","/","move","copy","[[AreyouSureDelete]]","parentNode","text","isdir","true",".","[[SpecifyNewFileName]]","rename","path","True","False",":","FoldersAndFiles","TR","length","this.bgColor=x27#eeeeeex27;","onmouseover","this.bgColor=x27x27;","onmouseout","nodeName","INPUT","changedir","url","TargetUrl","htmlcode","onload","getElementsByTagName","table","sortable","className"," ","id","rows","cells","innerHTML","x3Ca href=x22#x22 onclick=x22ts_resortTable(this);return false;x22x3E","x3Cspan class=x22sortarrowx22x3Ex26nbsp;x3C/spanx3Ex3C/ax3E","string","undefined","innerText","childNodes","nodeValue","nodeType","span","cellIndex","TABLE","sortdir","down","x26uarr;","up","x26darr;","sortbottom","tBodies","sortarrow","x26nbsp;","20","19","Form1","Image1","FolderDescription","CreateDir","Copy","Move","img_AutoThumbnail","img_ImageEditor","Delete","DoRefresh","name_Cell","size_Cell","op_Cell","op_space","divpreview","img_demo","Align","optNotSet","optLeft","optRight","optTexttop","optAbsMiddle","optBaseline","optAbsBottom","optBottom","optMiddle","optTop","Border","bordercolor","bordercolor_Preview","inp_width","imgLock","inp_height","constrain_prop","HSpace","VSpace","AlternateText","inp_id","longDesc","fieldsetUpload","Button1","Button2","img","editor","frameloaded","src","src_cetemp","width","height","vspace","hspace","border","borderColor","backgroundColor","align","alt","specified","file","complete","../images/1x1.gif","?","x26time=","?time=","0","onmousewheel",".aspx","display","none","Edit","[[ValidID]]","[[ValidColor]]","[[SelectImagetoInsert]]","longdesc","Code","=x22","x22","checked","../Load.ashx?type=imagex26file=locked.gif","../Load.ashx?type=imagex26file=1x1.gif","[[SelectImagetoThumbnail]]","dir","refresh","EditorSetting","Thumbnail.aspx?setting=","dialogWidth:310px;dialogHeight:200px;help:no;scroll:no;status:no;resizable:1;","[[SelectImagetoEdit]]","[[_CuteEditorResource_]]","../ImageEditor/ImageEditor.aspx?f=","x26p=","x26setting=","dialogWidth:676px;dialogHeight:500px;help:no;scroll:no;status:no;resizable:0;","s_bordercolor","onclick","wrapupPrompt","iepromptfield","body","div","IEPromptBox","promptBlackout","2px solid blue","#DDDDDD","position","absolute","330px","zIndex","100","x3Cdiv style=x22width: 100%; background-color: blue; color: white; font-family: verdana; font-size: 10pt; font-weight: bold; height: 20pxx22x3E[[InputRequired]]x3C/divx3E","x3Cdiv style=x22padding: 10pxx22x3E","x3CBRx3Ex3CBRx3E","x3Cform action=x22x22 onsubmit=x22return wrapupPrompt()x22x3E","x3Cinput id=x22iepromptfieldx22 name=x22iepromptdatax22 type=text size=46 value=x22","x22x3E","x3Cbrx3Ex3Cbrx3Ex3Ccenterx3E","x3Cinput type=x22submitx22 value=x22x26nbsp;x26nbsp;x26nbsp;[[OK]]x26nbsp;x26nbsp;x26nbsp;x22x3E","x26nbsp;x26nbsp;x26nbsp;x26nbsp;x26nbsp;x26nbsp;","x3Cinput type=x22buttonx22 onclick=x22wrapupPrompt(true)x22 value=x22x26nbsp;[[Cancel]]x26nbsp;x22x3E","x3C/formx3Ex3C/divx3E","100px","offsetWidth","left","px","block"]; function OnImageMouseWheel(){var Ox301=Event_GetEvent();var img=Event_GetSrcElement(Ox301);var Ox302=img[OxO4465[0x0]]||0x3;if(Ox301[OxO4465[0x1]]>=0x6a){ Ox302++ ;} else {if(Ox301[OxO4465[0x1]]<=-0x6a){ Ox302-- ;} ;} ; img[OxO4465[0x0]]=Ox302 ; img[OxO4465[0x3]][OxO4465[0x2]]=Ox302+OxO4465[0x4] ;return false;} ; function Window_GetDialogTop(Ox1bd){return Ox1bd[OxO4465[0x5]];} ;var hiddenDirectory=Window_GetElement(window,OxO4465[0x6],true);var hiddenFile=Window_GetElement(window,OxO4465[0x7],true);var hiddenAlert=Window_GetElement(window,OxO4465[0x8],true);var hiddenAction=Window_GetElement(window,OxO4465[0x9],true);var hiddenActionData=Window_GetElement(window,OxO4465[0xa],true); function CreateDir_click(){if(Event_GetSrcElement()[OxO4465[0xb]]){ alert(OxO4465[0xc]) ;return false;} ;if(Browser_IsIE7()){ IEprompt(Ox273,OxO4465[0xd],OxO4465[0xe]) ; function Ox273(Ox274){if(Ox274){ hiddenActionData[OxO4465[0xf]]=Ox274 ; hiddenAction[OxO4465[0xf]]=OxO4465[0x10] ; window.PostBackAction() ;return true;} else {return false;} ;} ;return Event_CancelEvent();} else {var Ox274=prompt(OxO4465[0xd],OxO4465[0xe]);if(Ox274){ hiddenActionData[OxO4465[0xf]]=Ox274 ;return true;} else {return false;} ;return false;} ;} ; function Move_click(){if(Event_GetSrcElement()[OxO4465[0xb]]){ alert(OxO4465[0xc]) ;return false;} ;if(Browser_IsIE7()){ IEprompt(Ox273,OxO4465[0x11],OxO4465[0x12]) ; function Ox273(Ox274){if(Ox274){ hiddenActionData[OxO4465[0xf]]=Ox274 ; hiddenAction[OxO4465[0xf]]=OxO4465[0x13] ; window.PostBackAction() ;return true;} else {return false;} ;} ;return Event_CancelEvent();} else {var Ox274=prompt(OxO4465[0x11],OxO4465[0x12]);if(Ox274){ hiddenActionData[OxO4465[0xf]]=Ox274 ;return true;} else {return false;} ;return false;} ;} ; function Copy_click(){if(Event_GetSrcElement()[OxO4465[0xb]]){ alert(OxO4465[0xc]) ;return false;} ;if(Browser_IsIE7()){ IEprompt(Ox273,OxO4465[0x11],OxO4465[0x12]) ; function Ox273(Ox274){if(Ox274){ hiddenActionData[OxO4465[0xf]]=Ox274 ; hiddenAction[OxO4465[0xf]]=OxO4465[0x14] ; window.PostBackAction() ;return true;} else {return false;} ;} ;return Event_CancelEvent();} else {var Ox274=prompt(OxO4465[0x11],OxO4465[0x12]);if(Ox274){ hiddenActionData[OxO4465[0xf]]=Ox274 ;return true;} else {return false;} ;return false;} ;} ; function Delete_click(){if(Event_GetSrcElement()[OxO4465[0xb]]){ alert(OxO4465[0xc]) ;return false;} ;return confirm(OxO4465[0x15]);} ; function EditImg_click(img){if(img[OxO4465[0xb]]){ alert(OxO4465[0xc]) ;return false;} ;var Ox279=img[OxO4465[0x16]][OxO4465[0x16]];var Ox27a=Ox279[OxO4465[0x17]];var name;var Ox27b;if(Browser_IsOpera()){ Ox27b=Ox279.getAttribute(OxO4465[0x18])==OxO4465[0x19] ;} else { Ox27b=Ox279[OxO4465[0x18]] ;} ;if(Browser_IsIE7()){var Ox12c;if(Ox27b){ IEprompt(Ox273,OxO4465[0xd],Ox27a) ;} else {var i=Ox27a.lastIndexOf(OxO4465[0x1a]); Ox12c=Ox27a.substr(i) ;var Ox25=Ox27a.substr(0x0,Ox27a.lastIndexOf(OxO4465[0x1a])); IEprompt(Ox273,OxO4465[0x1b],Ox25) ;} ; function Ox273(Ox274){if(Ox274&&Ox274!=Ox279[OxO4465[0x17]]){if(!Ox27b){ Ox274=Ox274+Ox12c ;} ; hiddenAction[OxO4465[0xf]]=OxO4465[0x1c] ; hiddenActionData[OxO4465[0xf]]=(Ox27b?OxO4465[0x1e]:OxO4465[0x1f])+OxO4465[0x20]+Ox279[OxO4465[0x1d]]+OxO4465[0x20]+Ox274 ; window.PostBackAction() ;} ;} ;} else {if(Ox27b){ name=prompt(OxO4465[0xd],Ox27a) ;} else {var i=Ox27a.lastIndexOf(OxO4465[0x1a]);var Ox12c=Ox27a.substr(i);var Ox25=Ox27a.substr(0x0,Ox27a.lastIndexOf(OxO4465[0x1a])); name=prompt(OxO4465[0x1b],Ox25) ;if(name){ name=name+Ox12c ;} ;} ;if(name&&name!=Ox279[OxO4465[0x17]]){ hiddenAction[OxO4465[0xf]]=OxO4465[0x1c] ; hiddenActionData[OxO4465[0xf]]=(Ox27b?OxO4465[0x1e]:OxO4465[0x1f])+OxO4465[0x20]+Ox279[OxO4465[0x1d]]+OxO4465[0x20]+name ; window.PostBackAction() ;} ;} ;return Event_CancelEvent();} ; setMouseOver() ; function setMouseOver(){var FoldersAndFiles=Window_GetElement(window,OxO4465[0x21],true);var Ox27e=FoldersAndFiles.getElementsByTagName(OxO4465[0x22]);for(var i=0x0;i<Ox27e[OxO4465[0x23]];i++){var Ox279=Ox27e[i]; Ox279[OxO4465[0x25]]= new Function(OxO4465[0xe],OxO4465[0x24]) ; Ox279[OxO4465[0x27]]= new Function(OxO4465[0xe],OxO4465[0x26]) ;} ;} ; function row_click(Ox279){var Ox27b;if(Browser_IsOpera()){ Ox27b=Ox279.getAttribute(OxO4465[0x18])==OxO4465[0x19] ;} else { Ox27b=Ox279[OxO4465[0x18]] ;} ;if(Ox27b){if(Event_GetSrcElement()[OxO4465[0x28]]==OxO4465[0x29]){return ;} ; hiddenAction[OxO4465[0xf]]=OxO4465[0x2a] ; hiddenActionData[OxO4465[0xf]]=Ox279.getAttribute(OxO4465[0x1d]) ; window.PostBackAction() ;} else {var Ox169=Ox279.getAttribute(OxO4465[0x1d]); hiddenFile[OxO4465[0xf]]=Ox169 ;var Ox280=Ox279.getAttribute(OxO4465[0x2b]); Window_GetElement(window,OxO4465[0x2c],true)[OxO4465[0xf]]=Ox280 ;var htmlcode=Ox279.getAttribute(OxO4465[0x2d]);if(htmlcode!=OxO4465[0xe]&&htmlcode!=null){ do_preview(htmlcode) ;} else {if(Ox280!=OxO4465[0xe]&&Ox280!=null){try{ Actualsize() ;} catch(x){ do_preview() ;} ;} ;} ;} ;} ; function do_preview(){} ; function reset_hiddens(){if(hiddenAlert[OxO4465[0xf]]){ alert(hiddenAlert.value) ;} ;if(TargetUrl[OxO4465[0xf]]!=OxO4465[0xe]&&TargetUrl[OxO4465[0xf]]!=null){ do_preview() ;} ; hiddenAlert[OxO4465[0xf]]=OxO4465[0xe] ; hiddenAction[OxO4465[0xf]]=OxO4465[0xe] ; hiddenActionData[OxO4465[0xf]]=OxO4465[0xe] ;} ; Event_Attach(window,OxO4465[0x2e],reset_hiddens) ; function RequireFileBrowseScript(){} ; function Actualsize(){} ; Event_Attach(window,OxO4465[0x2e],sortables_init) ;var SORT_COLUMN_INDEX; function sortables_init(){if(!document[OxO4465[0x2f]]){return ;} ;var Ox285=document.getElementsByTagName(OxO4465[0x30]);for(var Ox286=0x0;Ox286<Ox285[OxO4465[0x23]];Ox286++){var Ox287=Ox285[Ox286];if(((OxO4465[0x33]+Ox287[OxO4465[0x32]]+OxO4465[0x33]).indexOf(OxO4465[0x31])!=-0x1)&&(Ox287[OxO4465[0x34]])){ ts_makeSortable(Ox287) ;} ;} ;} ; function ts_makeSortable(Ox289){if(Ox289[OxO4465[0x35]]&&Ox289[OxO4465[0x35]][OxO4465[0x23]]>0x0){var Ox28a=Ox289[OxO4465[0x35]][0x0];} ;if(!Ox28a){return ;} ;for(var i=0x2;i<0x4;i++){var Ox28b=Ox28a[OxO4465[0x36]][i];var Ox208=ts_getInnerText(Ox28b); Ox28b[OxO4465[0x37]]=OxO4465[0x38]+Ox208+OxO4465[0x39] ;} ;} ; function ts_getInnerText(Ox81){if( typeof Ox81==OxO4465[0x3a]){return Ox81;} ;if( typeof Ox81==OxO4465[0x3b]){return Ox81;} ;if(Ox81[OxO4465[0x3c]]){return Ox81[OxO4465[0x3c]];} ;var Ox24=OxO4465[0xe];var Ox235=Ox81[OxO4465[0x3d]];var Ox2b=Ox235[OxO4465[0x23]];for(var i=0x0;i<Ox2b;i++){switch(Ox235[i][OxO4465[0x3f]]){case 0x1: Ox24+=ts_getInnerText(Ox235[i]) ;break ;case 0x3: Ox24+=Ox235[i][OxO4465[0x3e]] ;break ;;;} ;} ;return Ox24;} ; function ts_resortTable(Ox28e){var Ox28f;for(var Ox290=0x0;Ox290<Ox28e[OxO4465[0x3d]][OxO4465[0x23]];Ox290++){if(Ox28e[OxO4465[0x3d]][Ox290][OxO4465[0x28]]&&Ox28e[OxO4465[0x3d]][Ox290][OxO4465[0x28]].toLowerCase()==OxO4465[0x40]){ Ox28f=Ox28e[OxO4465[0x3d]][Ox290] ;} ;} ;var Ox291=ts_getInnerText(Ox28f);var Ox64=Ox28e[OxO4465[0x16]];var Ox292=Ox64[OxO4465[0x41]];var Ox289=getParent(Ox64,OxO4465[0x42]);if(Ox289[OxO4465[0x35]][OxO4465[0x23]]<=0x1){return ;} ;var Ox293=ts_getInnerText(Ox289[OxO4465[0x35]][0x1][OxO4465[0x36]][Ox292]);var Ox294=ts_sort_caseinsensitive;if(Ox293.match(/^dd[/-]dd[/-]dddd$/)){ Ox294=ts_sort_date ;} ;if(Ox293.match(/^dd[/-]dd[/-]dd$/)){ Ox294=ts_sort_date ;} ;if(Ox293.match(/^[?]/)){ Ox294=ts_sort_currency ;} ;if(Ox293.match(/^[d.]+$/)){ Ox294=ts_sort_numeric ;} ; SORT_COLUMN_INDEX=Ox292 ;var Ox28a= new Array();var Ox295= new Array();for(var i=0x0;i<Ox289[OxO4465[0x35]][0x0][OxO4465[0x23]];i++){ Ox28a[i]=Ox289[OxO4465[0x35]][0x0][i] ;} ;for(var j=0x1;j<Ox289[OxO4465[0x35]][OxO4465[0x23]];j++){ Ox295[j-0x1]=Ox289[OxO4465[0x35]][j] ;} ; Ox295.sort(Ox294) ;if(Ox28f.getAttribute(OxO4465[0x43])==OxO4465[0x44]){var Ox296=OxO4465[0x45]; Ox295.reverse() ; Ox28f.setAttribute(OxO4465[0x43],OxO4465[0x46]) ;} else { Ox296=OxO4465[0x47] ; Ox28f.setAttribute(OxO4465[0x43],OxO4465[0x44]) ;} ;for( i=0x0 ;i<Ox295[OxO4465[0x23]];i++){if(!Ox295[i][OxO4465[0x32]]||(Ox295[i][OxO4465[0x32]]&&(Ox295[i][OxO4465[0x32]].indexOf(OxO4465[0x48])==-0x1))){ Ox289[OxO4465[0x49]][0x0].appendChild(Ox295[i]) ;} ;} ;for( i=0x0 ;i<Ox295[OxO4465[0x23]];i++){if(Ox295[i][OxO4465[0x32]]&&(Ox295[i][OxO4465[0x32]].indexOf(OxO4465[0x48])!=-0x1)){ Ox289[OxO4465[0x49]][0x0].appendChild(Ox295[i]) ;} ;} ;var Ox297=document.getElementsByTagName(OxO4465[0x40]);for(var Ox290=0x0;Ox290<Ox297[OxO4465[0x23]];Ox290++){if(Ox297[Ox290][OxO4465[0x32]]==OxO4465[0x4a]){if(getParent(Ox297[Ox290],OxO4465[0x30])==getParent(Ox28e,OxO4465[0x30])){ Ox297[Ox290][OxO4465[0x37]]=OxO4465[0x4b] ;} ;} ;} ; Ox28f[OxO4465[0x37]]=Ox296 ;} ; function getParent(Ox81,Ox299){if(Ox81==null){return null;} else {if(Ox81[OxO4465[0x3f]]==0x1&&Ox81[OxO4465[0x28]].toLowerCase()==Ox299.toLowerCase()){return Ox81;} else {return getParent(Ox81.parentNode,Ox299);} ;} ;} ; function ts_sort_date(Ox14d,Ox17){var Ox29b=ts_getInnerText(Ox14d[OxO4465[0x36]][SORT_COLUMN_INDEX]);var Ox29c=ts_getInnerText(Ox17[OxO4465[0x36]][SORT_COLUMN_INDEX]);if(Ox29b[OxO4465[0x23]]==0xa){var Ox29d=Ox29b.substr(0x6,0x4)+Ox29b.substr(0x3,0x2)+Ox29b.substr(0x0,0x2);} else {var Ox29e=Ox29b.substr(0x6,0x2);if(parseInt(Ox29e)<0x32){ Ox29e=OxO4465[0x4c]+Ox29e ;} else { Ox29e=OxO4465[0x4d]+Ox29e ;} ;var Ox29d=Ox29e+Ox29b.substr(0x3,0x2)+Ox29b.substr(0x0,0x2);} ;if(Ox29c[OxO4465[0x23]]==0xa){var Ox29f=Ox29c.substr(0x6,0x4)+Ox29c.substr(0x3,0x2)+Ox29c.substr(0x0,0x2);} else { Ox29e=Ox29c.substr(0x6,0x2) ;if(parseInt(Ox29e)<0x32){ Ox29e=OxO4465[0x4c]+Ox29e ;} else { Ox29e=OxO4465[0x4d]+Ox29e ;} ;var Ox29f=Ox29e+Ox29c.substr(0x3,0x2)+Ox29c.substr(0x0,0x2);} ;if(Ox29d==Ox29f){return 0x0;} ;if(Ox29d<Ox29f){return -0x1;} ;return 0x1;} ; function ts_sort_currency(Ox14d,Ox17){var Ox29b=ts_getInnerText(Ox14d[OxO4465[0x36]][SORT_COLUMN_INDEX]).replace(/[^0-9.]/g,OxO4465[0xe]);var Ox29c=ts_getInnerText(Ox17[OxO4465[0x36]][SORT_COLUMN_INDEX]).replace(/[^0-9.]/g,OxO4465[0xe]);return parseFloat(Ox29b)-parseFloat(Ox29c);} ; function ts_sort_numeric(Ox14d,Ox17){var Ox29b=parseFloat(ts_getInnerText(Ox14d[OxO4465[0x36]][SORT_COLUMN_INDEX]));if(isNaN(Ox29b)){ Ox29b=0x0 ;} ;var Ox29c=parseFloat(ts_getInnerText(Ox17[OxO4465[0x36]][SORT_COLUMN_INDEX]));if(isNaN(Ox29c)){ Ox29c=0x0 ;} ;return Ox29b-Ox29c;} ; function ts_sort_caseinsensitive(Ox14d,Ox17){var Ox29b=ts_getInnerText(Ox14d[OxO4465[0x36]][SORT_COLUMN_INDEX]).toLowerCase();var Ox29c=ts_getInnerText(Ox17[OxO4465[0x36]][SORT_COLUMN_INDEX]).toLowerCase();if(Ox29b==Ox29c){return 0x0;} ;if(Ox29b<Ox29c){return -0x1;} ;return 0x1;} ; function ts_sort_default(Ox14d,Ox17){var Ox29b=ts_getInnerText(Ox14d[OxO4465[0x36]][SORT_COLUMN_INDEX]);var Ox29c=ts_getInnerText(Ox17[OxO4465[0x36]][SORT_COLUMN_INDEX]);if(Ox29b==Ox29c){return 0x0;} ;if(Ox29b<Ox29c){return -0x1;} ;return 0x1;} [sortables_init] ; RequireFileBrowseScript() ;var Form1=Window_GetElement(window,OxO4465[0x4e],true);var hiddenDirectory=Window_GetElement(window,OxO4465[0x6],true);var hiddenFile=Window_GetElement(window,OxO4465[0x7],true);var hiddenAlert=Window_GetElement(window,OxO4465[0x8],true);var hiddenAction=Window_GetElement(window,OxO4465[0x9],true);var hiddenActionData=Window_GetElement(window,OxO4465[0xa],true);var Image1=Window_GetElement(window,OxO4465[0x4f],true);var FolderDescription=Window_GetElement(window,OxO4465[0x50],true);var CreateDir=Window_GetElement(window,OxO4465[0x51],true);var Copy=Window_GetElement(window,OxO4465[0x52],true);var Move=Window_GetElement(window,OxO4465[0x53],true);var img_AutoThumbnail=Window_GetElement(window,OxO4465[0x54],true);var img_ImageEditor=Window_GetElement(window,OxO4465[0x55],false);var FoldersAndFiles=Window_GetElement(window,OxO4465[0x21],true);var Delete=Window_GetElement(window,OxO4465[0x56],true);var DoRefresh=Window_GetElement(window,OxO4465[0x57],true);var name_Cell=Window_GetElement(window,OxO4465[0x58],true);var size_Cell=Window_GetElement(window,OxO4465[0x59],true);var op_Cell=Window_GetElement(window,OxO4465[0x5a],true);var op_space=Window_GetElement(window,OxO4465[0x5b],true);var divpreview=Window_GetElement(window,OxO4465[0x5c],true);var img_demo=Window_GetElement(window,OxO4465[0x5d],true);var Align=Window_GetElement(window,OxO4465[0x5e],true);var optNotSet=Window_GetElement(window,OxO4465[0x5f],true);var optLeft=Window_GetElement(window,OxO4465[0x60],true);var optRight=Window_GetElement(window,OxO4465[0x61],true);var optTexttop=Window_GetElement(window,OxO4465[0x62],true);var optAbsMiddle=Window_GetElement(window,OxO4465[0x63],true);var optBaseline=Window_GetElement(window,OxO4465[0x64],true);var optAbsBottom=Window_GetElement(window,OxO4465[0x65],true);var optBottom=Window_GetElement(window,OxO4465[0x66],true);var optMiddle=Window_GetElement(window,OxO4465[0x67],true);var optTop=Window_GetElement(window,OxO4465[0x68],true);var Border=Window_GetElement(window,OxO4465[0x69],true);var bordercolor=Window_GetElement(window,OxO4465[0x6a],true);var bordercolor_Preview=Window_GetElement(window,OxO4465[0x6b],true);var inp_width=Window_GetElement(window,OxO4465[0x6c],true);var imgLock=Window_GetElement(window,OxO4465[0x6d],true);var inp_height=Window_GetElement(window,OxO4465[0x6e],true);var constrain_prop=Window_GetElement(window,OxO4465[0x6f],true);var HSpace=Window_GetElement(window,OxO4465[0x70],true);var VSpace=Window_GetElement(window,OxO4465[0x71],true);var TargetUrl=Window_GetElement(window,OxO4465[0x2c],true);var AlternateText=Window_GetElement(window,OxO4465[0x72],true);var inp_id=Window_GetElement(window,OxO4465[0x73],true);var longDesc=Window_GetElement(window,OxO4465[0x74],true);var fieldsetUpload=Window_GetElement(window,OxO4465[0x75],true);var Button1=Window_GetElement(window,OxO4465[0x76],true);var Button2=Window_GetElement(window,OxO4465[0x77],true);var obj=Window_GetDialogArguments(window);var element=obj[OxO4465[0x78]];var editor=obj[OxO4465[0x79]];if(!Window_GetDialogTop(window)[OxO4465[0x7a]]){ Window_GetDialogTop(window)[OxO4465[0x7a]]=true ;var src=OxO4465[0xe];if(element.getAttribute(OxO4465[0x7b])){ src=element.getAttribute(OxO4465[0x7b]) ;} ;if(element.getAttribute(OxO4465[0x7c])){ src=element.getAttribute(OxO4465[0x7c]) ;} ; TargetUrl[OxO4465[0xf]]=src ; inp_width[OxO4465[0xf]]=element[OxO4465[0x7d]]||OxO4465[0xe] ; inp_height[OxO4465[0xf]]=element[OxO4465[0x7e]]||OxO4465[0xe] ; inp_id[OxO4465[0xf]]=element[OxO4465[0x34]]||OxO4465[0xe] ;if(element[OxO4465[0x7f]]<=0x0){ VSpace[OxO4465[0xf]]=OxO4465[0xe] ;} else { VSpace[OxO4465[0xf]]=element[OxO4465[0x7f]] ;} ;if(element[OxO4465[0x80]]<=0x0){ HSpace[OxO4465[0xf]]=OxO4465[0xe] ;} else { HSpace[OxO4465[0xf]]=element[OxO4465[0x80]] ;} ; Border[OxO4465[0xf]]=element[OxO4465[0x81]]||OxO4465[0xe] ;if(Browser_IsWinIE()){ bordercolor[OxO4465[0xf]]=element[OxO4465[0x3]][OxO4465[0x82]] ;} else {var arr=revertColor(element[OxO4465[0x3]].borderColor).split(OxO4465[0x33]); bordercolor[OxO4465[0xf]]=arr[0x0] ;} ; bordercolor[OxO4465[0x3]][OxO4465[0x83]]=bordercolor[OxO4465[0xf]]||OxO4465[0xe] ; bordercolor_Preview[OxO4465[0x3]][OxO4465[0x83]]=bordercolor[OxO4465[0xf]]||OxO4465[0xe] ; Align[OxO4465[0xf]]=element[OxO4465[0x84]]||OxO4465[0xe] ; AlternateText[OxO4465[0xf]]=element[OxO4465[0x85]]||OxO4465[0xe] ; longDesc[OxO4465[0xf]]=element[OxO4465[0x74]]||OxO4465[0xe] ;} ; function GetAttribute(Ox30f){var attr=element.getAttributeNode(Ox30f);if(attr&&attr[OxO4465[0x86]]){return element[attr[OxO4465[0x28]]];} ;return OxO4465[0xe];} ;var sCheckFlag=OxO4465[0x87]; function ResetFields(){ TargetUrl[OxO4465[0xf]]=OxO4465[0xe] ; inp_width[OxO4465[0xf]]=OxO4465[0xe] ; inp_height[OxO4465[0xf]]=OxO4465[0xe] ; inp_id[OxO4465[0xf]]=OxO4465[0xe] ; VSpace[OxO4465[0xf]]=OxO4465[0xe] ; HSpace[OxO4465[0xf]]=OxO4465[0xe] ; Border[OxO4465[0xf]]=OxO4465[0xe] ; bordercolor[OxO4465[0xf]]=OxO4465[0xe] ; bordercolor[OxO4465[0x3]][OxO4465[0x83]]=OxO4465[0xe] ; Align[OxO4465[0xf]]=OxO4465[0xe] ; AlternateText[OxO4465[0xf]]=OxO4465[0xe] ; longDesc[OxO4465[0xf]]=OxO4465[0xe] ;} ; function do_preview(){var Ox1b2=TargetUrl[OxO4465[0xf]];if(Ox1b2==null){ TargetUrl[OxO4465[0xf]]=OxO4465[0xe] ; Ox1b2==OxO4465[0xe] ;} ;if(Ox1b2!=null&&Ox1b2!=OxO4465[0xe]){var Ox312;var Ox313;var Ox312= new Image(); Ox312[OxO4465[0x7b]]=Ox1b2 ; function Ox314(){if(Ox312[OxO4465[0x88]]){ window.clearInterval(Ox313) ;var Ox109= new Date();var Ox10a=Ox109.getTime();if(Ox1b2==OxO4465[0xe]){ Ox1b2=OxO4465[0x89] ;} ;if(Ox1b2.indexOf(OxO4465[0x8a])!=-0x1){ Ox1b2=Ox1b2+OxO4465[0x8b]+Ox10a ;} else { Ox1b2=Ox1b2+OxO4465[0x8c]+Ox10a ;} ;if(inp_width[OxO4465[0xf]]==OxO4465[0x8d]||inp_width[OxO4465[0xf]]==OxO4465[0xe]){ inp_width[OxO4465[0xf]]=Ox312[OxO4465[0x7d]] ; inp_height[OxO4465[0xf]]=Ox312[OxO4465[0x7e]] ;} ; img_demo[OxO4465[0x7b]]=Ox1b2 ;if(Browser_IsWinIE()){ Event_Attach(img_demo,OxO4465[0x8e],OnImageMouseWheel) ;} ; img_demo[OxO4465[0x85]]=AlternateText[OxO4465[0xf]] ; img_demo[OxO4465[0x84]]=Align[OxO4465[0xf]] ; img_demo[OxO4465[0x7d]]=inp_width[OxO4465[0xf]] ; img_demo[OxO4465[0x7e]]=inp_height[OxO4465[0xf]] ; img_demo[OxO4465[0x7f]]=VSpace[OxO4465[0xf]] ; img_demo[OxO4465[0x80]]=HSpace[OxO4465[0xf]] ;if(parseInt(Border.value)>0x0){ img_demo[OxO4465[0x81]]=Border[OxO4465[0xf]] ;} ;if(bordercolor[OxO4465[0xf]]!=OxO4465[0xe]){ img_demo[OxO4465[0x3]][OxO4465[0x82]]=bordercolor[OxO4465[0xf]] ;} ; Ox1b2=Ox1b2.toLowerCase() ;if(Ox1b2.indexOf(OxO4465[0x8f])!=-0x1){ img_AutoThumbnail[OxO4465[0x3]][OxO4465[0x90]]=OxO4465[0x91] ;if(img_ImageEditor){ img_ImageEditor[OxO4465[0x3]][OxO4465[0x90]]=OxO4465[0x91] ;} ;} ;} ;} ; Ox313=window.setInterval(Ox314,0x64) ;} ;} ; function do_insert(){var img=element; img[OxO4465[0x7b]]=TargetUrl[OxO4465[0xf]] ;if(editor.GetActiveTab()==OxO4465[0x92]){ img.setAttribute(OxO4465[0x7c],TargetUrl.value) ;} ; img[OxO4465[0x7d]]=inp_width[OxO4465[0xf]] ; img[OxO4465[0x7e]]=inp_height[OxO4465[0xf]] ;if(img[OxO4465[0x3]][OxO4465[0x7d]]||img[OxO4465[0x3]][OxO4465[0x7e]]){ img[OxO4465[0x3]][OxO4465[0x7d]]=inp_width[OxO4465[0xf]] ; img[OxO4465[0x3]][OxO4465[0x7e]]=inp_height[OxO4465[0xf]] ;} ; img[OxO4465[0x7f]]=VSpace[OxO4465[0xf]] ; img[OxO4465[0x80]]=HSpace[OxO4465[0xf]] ; img[OxO4465[0x81]]=Border[OxO4465[0xf]] ;var Ox268=/[^a-zd]/i;if(Ox268.test(inp_id.value)){ alert(OxO4465[0x93]) ;return ;} ; img[OxO4465[0x34]]=inp_id[OxO4465[0xf]] ;try{ img[OxO4465[0x3]][OxO4465[0x82]]=bordercolor[OxO4465[0xf]] ;} catch(er){ alert(OxO4465[0x94]) ;return false;} ; img[OxO4465[0x84]]=Align[OxO4465[0xf]] ; img[OxO4465[0x85]]=AlternateText[OxO4465[0xf]]||OxO4465[0xe] ; img[OxO4465[0x74]]=longDesc[OxO4465[0xf]] ;if(TargetUrl[OxO4465[0xf]]==OxO4465[0xe]){ alert(OxO4465[0x95]) ;return false;} ;if(img[OxO4465[0x7d]]==0x0){ img.removeAttribute(OxO4465[0x7d]) ;} ;if(img[OxO4465[0x7e]]==0x0){ img.removeAttribute(OxO4465[0x7e]) ;} ;if(img[OxO4465[0x96]]==OxO4465[0xe]||img[OxO4465[0x96]]==null){ img.removeAttribute(OxO4465[0x96]) ;} ;if(img[OxO4465[0x74]]==OxO4465[0xe]||img[OxO4465[0x74]]==null){ img.removeAttribute(OxO4465[0x74]) ;} ;if(img[OxO4465[0x80]]==OxO4465[0xe]){ img.removeAttribute(OxO4465[0x80]) ;} ;if(img[OxO4465[0x7f]]==OxO4465[0xe]){ img.removeAttribute(OxO4465[0x7f]) ;} ;if(img[OxO4465[0x34]]==OxO4465[0xe]){ img.removeAttribute(OxO4465[0x34]) ;} ;if(img[OxO4465[0x81]]==OxO4465[0xe]){ img.removeAttribute(OxO4465[0x81]) ;} ;if(img[OxO4465[0x84]]==OxO4465[0xe]){ img.removeAttribute(OxO4465[0x84]) ;} ;if(editor.GetActiveTab()==OxO4465[0x97]){if(Browser_IsWinIE()){ editor.PasteHTML(img.outerHTML) ;} else { editor.PasteHTML(outerHTML(img)) ;} ;} else { editor.InsertElement(img,obj.img) ;} ; Window_CloseDialog(window) ;} ; function attr(name,Ox1be){if(!Ox1be||Ox1be==OxO4465[0xe]){return OxO4465[0xe];} ;return OxO4465[0x33]+name+OxO4465[0x98]+Ox1be+OxO4465[0x99];} ; function do_cancel(){ Window_CloseDialog(window) ;} ; function Zoom_In(){if(Browser_IsWinIE()){if(divpreview[OxO4465[0x3]][OxO4465[0x2]]!=0x0){ divpreview[OxO4465[0x3]][OxO4465[0x2]]*=1.2 ;} else { divpreview[OxO4465[0x3]][OxO4465[0x2]]=1.2 ;} ;} ;} ; function Zoom_Out(){if(Browser_IsWinIE()){if(divpreview[OxO4465[0x3]][OxO4465[0x2]]!=0x0){ divpreview[OxO4465[0x3]][OxO4465[0x2]]*=0.8 ;} else { divpreview[OxO4465[0x3]][OxO4465[0x2]]=0.8 ;} ;} ;} ; function BestFit(){var img=img_demo;if(!img){return ;} ;var Oxd4=0x118;var Oxd5=0x122;if(Browser_IsWinIE()){ divpreview[OxO4465[0x3]][OxO4465[0x2]]=0x1/Math.max(img[OxO4465[0x7d]]/Oxd5,img[OxO4465[0x7e]]/Oxd4) ;} ;} ; function Actualsize(){ inp_width[OxO4465[0xf]]=OxO4465[0xe] ; inp_height[OxO4465[0xf]]=OxO4465[0xe] ; do_preview() ;if(Browser_IsWinIE()){ divpreview[OxO4465[0x3]][OxO4465[0x2]]=0x1 ;} ;} ; function toggleConstrains(){if(constrain_prop[OxO4465[0x9a]]){ imgLock[OxO4465[0x7b]]=OxO4465[0x9b] ; checkConstrains(OxO4465[0x7d]) ;} else { imgLock[OxO4465[0x7b]]=OxO4465[0x9c] ;} ;} ;var checkingConstrains=false; function checkConstrains(Oxdb){if(checkingConstrains){return ;} ; checkingConstrains=true ;try{if(constrain_prop[OxO4465[0x9a]]){var Oxde= new Image(); Oxde[OxO4465[0x7b]]=TargetUrl[OxO4465[0xf]] ;var Ox315=Oxde[OxO4465[0x7d]];var Ox316=Oxde[OxO4465[0x7e]];if((Ox315>0x0)&&(Ox316>0x0)){var Oxd5=inp_width[OxO4465[0xf]];var Oxd4=inp_height[OxO4465[0xf]];if(Oxdb==OxO4465[0x7d]){if(Oxd5[OxO4465[0x23]]==0x0||isNaN(Oxd5)){ inp_width[OxO4465[0xf]]=OxO4465[0xe] ; inp_height[OxO4465[0xf]]=OxO4465[0xe] ;} else { Oxd4=parseInt(Oxd5*Ox316/Ox315) ; inp_height[OxO4465[0xf]]=Oxd4 ;} ;} ;if(Oxdb==OxO4465[0x7e]){if(Oxd4[OxO4465[0x23]]==0x0||isNaN(Oxd4)){ inp_width[OxO4465[0xf]]=OxO4465[0xe] ; inp_height[OxO4465[0xf]]=OxO4465[0xe] ;} else { Oxd5=parseInt(Oxd4*Ox315/Ox316) ; inp_width[OxO4465[0xf]]=Oxd5 ;} ;} ;} ;} ; do_preview() ;} finally{ checkingConstrains=false ;} ;} ; function AutoThumbnail(){if(TargetUrl[OxO4465[0xf]]==OxO4465[0xe]){ alert(OxO4465[0x9d]) ;return false;} ;var obj= new Object(); obj[OxO4465[0x7b]]=TargetUrl[OxO4465[0xf]] ; obj[OxO4465[0x9e]]=FolderDescription[OxO4465[0x37]]+OxO4465[0xe] ; function Ox20e(Ox197){if(Ox197){ TargetUrl[OxO4465[0xf]]=Ox197 ; hiddenAction[OxO4465[0xf]]=OxO4465[0x9f] ; window.PostBackAction() ;} ;} ; editor.SetNextDialogWindow(window) ; editor.ShowDialog(Ox20e,OxO4465[0xa1]+editor.GetScriptProperty(OxO4465[0xa0]),obj,OxO4465[0xa2]) ;} ; function ImageEditor(){if(TargetUrl[OxO4465[0xf]]==OxO4465[0xe]){ alert(OxO4465[0xa3]) ;return false;} ;var img= new Image(); img[OxO4465[0x7b]]=TargetUrl[OxO4465[0xf]] ;var src=TargetUrl[OxO4465[0xf]];var p=OxO4465[0xa4]; function Ox20e(arr){ TargetUrl[OxO4465[0xf]]=src ; do_preview() ;} ; editor.SetNextDialogWindow(window) ; editor.ShowDialog(Ox20e,OxO4465[0xa5]+src+OxO4465[0xa6]+p+OxO4465[0xa7]+editor.GetScriptProperty(OxO4465[0xa0]),img,OxO4465[0xa8]) ;} ;if(!Browser_IsWinIE()){var s_bordercolor=document.getElementById(OxO4465[0xa9]); bordercolor[OxO4465[0xaa]]=s_bordercolor[OxO4465[0xaa]]=function bordercolor_onclick(){ SelectColor(bordercolor,s_bordercolor) ;} ;} ;if(Browser_IsIE7()){var _dialogPromptID=null; function IEprompt(Ox273,Ox2c3,Ox2c4){ that=this ; this[OxO4465[0xab]]=function (Ox2c5){ val=document.getElementById(OxO4465[0xac])[OxO4465[0xf]] ; _dialogPromptID[OxO4465[0x3]][OxO4465[0x90]]=OxO4465[0x91] ; document.getElementById(OxO4465[0xac])[OxO4465[0xf]]=OxO4465[0xe] ;if(Ox2c5){ val=OxO4465[0xe] ;} ; Ox273(val) ;return false;} ;if(Ox2c4==undefined){ Ox2c4=OxO4465[0xe] ;} ;if(_dialogPromptID==null){var Ox2c6=document.getElementsByTagName(OxO4465[0xad])[0x0]; tnode=document.createElement(OxO4465[0xae]) ; tnode[OxO4465[0x34]]=OxO4465[0xaf] ; Ox2c6.appendChild(tnode) ; _dialogPromptID=document.getElementById(OxO4465[0xaf]) ; tnode=document.createElement(OxO4465[0xae]) ; tnode[OxO4465[0x34]]=OxO4465[0xb0] ; Ox2c6.appendChild(tnode) ; _dialogPromptID[OxO4465[0x3]][OxO4465[0x81]]=OxO4465[0xb1] ; _dialogPromptID[OxO4465[0x3]][OxO4465[0x83]]=OxO4465[0xb2] ; _dialogPromptID[OxO4465[0x3]][OxO4465[0xb3]]=OxO4465[0xb4] ; _dialogPromptID[OxO4465[0x3]][OxO4465[0x7d]]=OxO4465[0xb5] ; _dialogPromptID[OxO4465[0x3]][OxO4465[0xb6]]=OxO4465[0xb7] ;} ;var Ox2c7=OxO4465[0xb8]; Ox2c7+=OxO4465[0xb9]+Ox2c3+OxO4465[0xba] ; Ox2c7+=OxO4465[0xbb] ; Ox2c7+=OxO4465[0xbc]+Ox2c4+OxO4465[0xbd] ; Ox2c7+=OxO4465[0xbe] ; Ox2c7+=OxO4465[0xbf] ; Ox2c7+=OxO4465[0xc0] ; Ox2c7+=OxO4465[0xc1] ; Ox2c7+=OxO4465[0xc2] ; _dialogPromptID[OxO4465[0x37]]=Ox2c7 ; _dialogPromptID[OxO4465[0x3]][OxO4465[0x5]]=OxO4465[0xc3] ; _dialogPromptID[OxO4465[0x3]][OxO4465[0xc5]]=parseInt((document[OxO4465[0xad]][OxO4465[0xc4]]-0x13b)/0x2)+OxO4465[0xc6] ; _dialogPromptID[OxO4465[0x3]][OxO4465[0x90]]=OxO4465[0xc7] ;var Ox2c8=document.getElementById(OxO4465[0xac]);try{var range=Ox2c8.createTextRange(); range.collapse(false) ; range.select() ;} catch(x){ Ox2c8.focus() ;} ;} ;} ;