var OxOb566=["inp_src","inp_title","inp_target","sel_protocol","btnbrowse","editor","","href","value","title","target","onclick","length","options","://",":","others","selectedIndex"];var inp_src=Window_GetElement(window,OxOb566[0x0],true);var inp_title=Window_GetElement(window,OxOb566[0x1],true);var inp_target=Window_GetElement(window,OxOb566[0x2],true);var sel_protocol=Window_GetElement(window,OxOb566[0x3],true);var btnbrowse=Window_GetElement(window,OxOb566[0x4],true);var obj=Window_GetDialogArguments(window);var editor=obj[OxOb566[0x5]]; SyncToView() ; function SyncToView(){var src=obj[OxOb566[0x7]].replace(/$\s*/,OxOb566[0x6]); Update_sel_protocol(src) ; inp_src[OxOb566[0x8]]=src ;if(obj[OxOb566[0x9]]){ inp_title[OxOb566[0x8]]=obj[OxOb566[0x9]] ;} ;if(obj[OxOb566[0xa]]){ inp_target[OxOb566[0x8]]=obj[OxOb566[0xa]] ;} ;}  ; btnbrowse[OxOb566[0xb]]=function btnbrowse_onclick(){ function Ox2db(Ox137){if(Ox137){ inp_src[OxOb566[0x8]]=Ox137 ;} ;}  ; editor.SetNextDialogWindow(window) ;if(Browser_IsSafari()){ editor.ShowSelectFileDialog(Ox2db,inp_src.value,inp_src) ;} else { editor.ShowSelectFileDialog(Ox2db,inp_src.value) ;} ;}  ; function sel_protocol_change(){var src=inp_src[OxOb566[0x8]].replace(/$\s*/,OxOb566[0x6]);for(var i=0x0;i<sel_protocol[OxOb566[0xd]][OxOb566[0xc]];i++){var Ox13b=sel_protocol[OxOb566[0xd]][i][OxOb566[0x8]];if(src.substr(0x0,Ox13b.length).toLowerCase()==Ox13b){ src=src.substr(Ox13b[OxOb566[0xc]],src[OxOb566[0xc]]-Ox13b.length) ;break ;} ;} ;var Ox3bf=src.indexOf(OxOb566[0xe]);if(Ox3bf!=-0x1){ src=src.substr(Ox3bf+0x3,src[OxOb566[0xc]]-0x3-Ox3bf) ;} ;var Ox3bf=src.indexOf(OxOb566[0xf]);if(Ox3bf!=-0x1){ src=src.substr(Ox3bf+0x1,src[OxOb566[0xc]]-0x1-Ox3bf) ;} ;var Ox3c0=sel_protocol[OxOb566[0x8]];if(Ox3c0==OxOb566[0x10]){ Ox3c0=OxOb566[0x6] ;} ; inp_src[OxOb566[0x8]]=Ox3c0+src ;}  ; function Update_sel_protocol(src){var Ox3c2=false;for(var i=0x0;i<sel_protocol[OxOb566[0xd]][OxOb566[0xc]];i++){var Ox13b=sel_protocol[OxOb566[0xd]][i][OxOb566[0x8]];if(src.substr(0x0,Ox13b.length).toLowerCase()==Ox13b){if(sel_protocol[OxOb566[0x11]]!=i){ sel_protocol[OxOb566[0x11]]=i ;} ; Ox3c2=true ;break ;} ;} ;if(!Ox3c2){ sel_protocol[OxOb566[0x11]]=sel_protocol[OxOb566[0xd]][OxOb566[0xc]]-0x1 ;} ;}  ; function insert_link(){var arr= new Array(); arr[0x0]=inp_src[OxOb566[0x8]] ;if(inp_target[OxOb566[0x8]]){ arr[0x1]=inp_target[OxOb566[0x8]] ;} ;if(inp_title[OxOb566[0x8]]){ arr[0x2]=inp_title[OxOb566[0x8]] ;} ; Window_SetDialogReturnValue(window,arr) ; Window_CloseDialog(window) ;}  ;





