var OxO7fc7=["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,OxO7fc7[0],true);var inp_title=Window_GetElement(window,OxO7fc7[1],true);var inp_target=Window_GetElement(window,OxO7fc7[2],true);var sel_protocol=Window_GetElement(window,OxO7fc7[3],true);var btnbrowse=Window_GetElement(window,OxO7fc7[4],true);var obj=Window_GetDialogArguments(window);var editor=obj[OxO7fc7[5]];SyncToView();function SyncToView(){var src=obj[OxO7fc7[7]].replace(/$\s*/,OxO7fc7[6]);Update_sel_protocol(src);inp_src[OxO7fc7[8]]=src;if(obj[OxO7fc7[9]]){inp_title[OxO7fc7[8]]=obj[OxO7fc7[9]];} ;if(obj[OxO7fc7[10]]){inp_target[OxO7fc7[8]]=obj[OxO7fc7[10]];} ;} ;btnbrowse[OxO7fc7[11]]=function btnbrowse_onclick(){function Ox35d(Ox13e){if(Ox13e){inp_src[OxO7fc7[8]]=Ox13e;} ;} ;editor.SetNextDialogWindow(window);if(Browser_IsSafari()){editor.ShowSelectFileDialog(Ox35d,inp_src.value,inp_src);} else {editor.ShowSelectFileDialog(Ox35d,inp_src.value);} ;} ;function sel_protocol_change(){var src=inp_src[OxO7fc7[8]].replace(/$\s*/,OxO7fc7[6]);for(var i=0;i<sel_protocol[OxO7fc7[13]][OxO7fc7[12]];i++){var Ox142=sel_protocol[OxO7fc7[13]][i][OxO7fc7[8]];if(src.substr(0,Ox142.length).toLowerCase()==Ox142){src=src.substr(Ox142.length,src[OxO7fc7[12]]-Ox142[OxO7fc7[12]]);break ;} ;} ;var Ox449=src.indexOf(OxO7fc7[14]);if(Ox449!=-1){src=src.substr(Ox449+3,src[OxO7fc7[12]]-3-Ox449);} ;var Ox449=src.indexOf(OxO7fc7[15]);if(Ox449!=-1){src=src.substr(Ox449+1,src[OxO7fc7[12]]-1-Ox449);} ;var Ox44a=sel_protocol[OxO7fc7[8]];if(Ox44a==OxO7fc7[16]){Ox44a=OxO7fc7[6];} ;inp_src[OxO7fc7[8]]=Ox44a+src;} ;function Update_sel_protocol(src){var Ox44c=false;for(var i=0;i<sel_protocol[OxO7fc7[13]][OxO7fc7[12]];i++){var Ox142=sel_protocol[OxO7fc7[13]][i][OxO7fc7[8]];if(src.substr(0,Ox142.length).toLowerCase()==Ox142){if(sel_protocol[OxO7fc7[17]]!=i){sel_protocol[OxO7fc7[17]]=i;} ;Ox44c=true;break ;} ;} ;if(!Ox44c){sel_protocol[OxO7fc7[17]]=sel_protocol[OxO7fc7[13]][OxO7fc7[12]]-1;} ;} ;function insert_link(){var arr= new Array();arr[0]=inp_src[OxO7fc7[8]];if(inp_target[OxO7fc7[8]]){arr[1]=inp_target[OxO7fc7[8]];} ;if(inp_title[OxO7fc7[8]]){arr[2]=inp_title[OxO7fc7[8]];} ;Window_SetDialogReturnValue(window,arr);Window_CloseDialog(window);} ;