You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
12 KiB
1 line
12 KiB
var OxO1342=["","removeNode","parentNode","firstChild","nodeName","TABLE","length","Can\x27t Get The Position ?","Map","RowCount","ColCount","rows","cells","Unknown Error , pos ",":"," already have cell","rowSpan","colSpan","Unknown Error , Unable to find bestpos","inp_cellspacing","inp_cellpadding","inp_id","inp_border","inp_bgcolor","inp_bordercolor","sel_rules","inp_collapse","inp_summary","btn_editcaption","btn_delcaption","btn_insthead","btn_instfoot","inp_class","inp_width","sel_width_unit","inp_height","sel_height_unit","sel_align","sel_textalign","sel_float","inp_tooltip","onclick","tHead","tFoot","caption","innerHTML","[[Caption]]","innerText","Unable to delete the caption. Please remove it in HTML source.","[[Delete]]","[[Insert]]","[[Edit]]","display","style","none","disabled","value","cellSpacing","cellPadding","id","border","borderColor","backgroundColor","bgColor","checked","borderCollapse","collapse","rules","summary","className","width","options","selectedIndex","height","align","styleFloat","cssFloat","textAlign","title","bordercolor","[[ValidID]]","0","%","class","CaptionTable"];function ParseFloatToString(Ox24){var Ox8=parseFloat(Ox24);if(isNaN(Ox8)){return OxO1342[0];} ;return Ox8+OxO1342[0];} ;function Element_RemoveNode(element,Ox511){if(element[OxO1342[1]]){element.removeNode(Ox511);return ;} ;var p=element[OxO1342[2]];if(!p){return ;} ;if(Ox511){p.removeChild(element);return ;} ;while(true){var Ox217=element[OxO1342[3]];if(!Ox217){break ;} ;p.insertBefore(Ox217,element);} ;p.removeChild(element);} ;function Table_GetTable(Ox43){for(;Ox43!=null;Ox43=Ox43[OxO1342[2]]){if(Ox43[OxO1342[4]]==OxO1342[5]){return Ox43;} ;} ;return null;} ;function Table_GetCellPositionFromMap(Ox50b,Ox396){for(var y=0;y<Ox50b[OxO1342[6]];y++){var Ox50e=Ox50b[y];for(var x=0;x<Ox50e[OxO1342[6]];x++){if(Ox50e[x]==Ox396){return {rowIndex:y,cellIndex:x};} ;} ;} ;throw ( new Error(-1,OxO1342[7]));} ;function Table_GetCellMap(Ox394){return Table_CalculateTableInfo(Ox394)[OxO1342[8]];} ;function Table_GetRowCount(Ox43){return Table_CalculateTableInfo(Ox43)[OxO1342[9]];} ;function Table_GetColCount(Ox43){return Table_CalculateTableInfo(Ox43)[OxO1342[10]];} ;function Table_CalculateTableInfo(Ox43){var Ox394=Table_GetTable(Ox43);var Ox51e=Ox394[OxO1342[11]];for(var Oxa=Ox51e[OxO1342[6]]-1;Oxa>=0;Oxa--){var Ox386=Ox51e.item(Oxa);if(Ox386[OxO1342[12]][OxO1342[6]]==0){Element_RemoveNode(Ox386,true);continue ;} ;} ;var Ox51f=Ox51e[OxO1342[6]];var Ox520=0;var Ox521= new Array(Ox51e.length);for(var Ox522=0;Ox522<Ox51f;Ox522++){Ox521[Ox522]=[];} ;function Ox523(Oxa,Ox217,Ox396){while(Oxa>=Ox51f){Ox521[Ox51f]=[];Ox51f++;} ;var Ox524=Ox521[Oxa];if(Ox217>=Ox520){Ox520=Ox217+1;} ;if(Ox524[Ox217]!=null){throw ( new Error(-1,OxO1342[13]+Oxa+OxO1342[14]+Ox217+OxO1342[15]));} ;Ox524[Ox217]=Ox396;} ;function Ox525(Oxa,Ox217){var Ox524=Ox521[Oxa];if(Ox524){return Ox524[Ox217];} ;} ;for(var Ox522=0;Ox522<Ox51e[OxO1342[6]];Ox522++){var Ox386=Ox51e.item(Ox522);var Ox526=Ox386[OxO1342[12]];for(var Ox39a=0;Ox39a<Ox526[OxO1342[6]];Ox39a++){var Ox396=Ox526.item(Ox39a);var Ox527=Ox396[OxO1342[16]];var Ox528=Ox396[OxO1342[17]];var Ox524=Ox521[Ox522];var Ox529=-1;for(var Ox52a=0;Ox52a<Ox520+Ox528+1;Ox52a++){if(Ox527==1&&Ox528==1){if(Ox524[Ox52a]==null){Ox529=Ox52a;break ;} ;} else {var Ox52b=true;for(var Ox52c=0;Ox52c<Ox527;Ox52c++){for(var Ox52d=0;Ox52d<Ox528;Ox52d++){if(Ox525(Ox522+Ox52c,Ox52a+Ox52d)!=null){Ox52b=false;break ;} ;} ;} ;if(Ox52b){Ox529=Ox52a;break ;} ;} ;} ;if(Ox529==-1){throw ( new Error(-1,OxO1342[18]));} ;if(Ox527==1&&Ox528==1){Ox523(Ox522,Ox529,Ox396);} else {for(var Ox52c=0;Ox52c<Ox527;Ox52c++){for(var Ox52d=0;Ox52d<Ox528;Ox52d++){Ox523(Ox522+Ox52c,Ox529+Ox52d,Ox396);} ;} ;} ;} ;} ;var Ox13e={};Ox13e[OxO1342[9]]=Ox51f;Ox13e[OxO1342[10]]=Ox520;Ox13e[OxO1342[8]]=Ox521;for(var Oxa=0;Oxa<Ox51f;Oxa++){var Ox524=Ox521[Oxa];for(var Ox217=0;Ox217<Ox520;Ox217++){} ;} ;return Ox13e;} ;var inp_cellspacing=Window_GetElement(window,OxO1342[19],true);var inp_cellpadding=Window_GetElement(window,OxO1342[20],true);var inp_id=Window_GetElement(window,OxO1342[21],true);var inp_border=Window_GetElement(window,OxO1342[22],true);var inp_bgcolor=Window_GetElement(window,OxO1342[23],true);var inp_bordercolor=Window_GetElement(window,OxO1342[24],true);var sel_rules=Window_GetElement(window,OxO1342[25],true);var inp_collapse=Window_GetElement(window,OxO1342[26],true);var inp_summary=Window_GetElement(window,OxO1342[27],true);var btn_editcaption=Window_GetElement(window,OxO1342[28],true);var btn_delcaption=Window_GetElement(window,OxO1342[29],true);var btn_insthead=Window_GetElement(window,OxO1342[30],true);var btn_instfoot=Window_GetElement(window,OxO1342[31],true);var inp_class=Window_GetElement(window,OxO1342[32],true);var inp_width=Window_GetElement(window,OxO1342[33],true);var sel_width_unit=Window_GetElement(window,OxO1342[34],true);var inp_height=Window_GetElement(window,OxO1342[35],true);var sel_height_unit=Window_GetElement(window,OxO1342[36],true);var sel_align=Window_GetElement(window,OxO1342[37],true);var sel_textalign=Window_GetElement(window,OxO1342[38],true);var sel_float=Window_GetElement(window,OxO1342[39],true);var inp_tooltip=Window_GetElement(window,OxO1342[40],true);function insertOneRow(Ox61f,Ox414){var Ox386=Ox61f.insertRow(-1);for(var i=0;i<Ox414;i++){Ox386.insertCell();} ;} ;btn_insthead[OxO1342[41]]=function btn_insthead_onclick(){if(element[OxO1342[42]]){element.deleteTHead();} else {var Ox621=Table_GetColCount(element);var Ox622=element.createTHead();insertOneRow(Ox622,Ox621);} ;} ;btn_instfoot[OxO1342[41]]=function btn_instfoot_onclick(){if(element[OxO1342[43]]){element.deleteTFoot();} else {var Ox621=Table_GetColCount(element);var Ox624=element.createTFoot();insertOneRow(Ox624,Ox621);} ;} ;btn_editcaption[OxO1342[41]]=function btn_editcaption_onclick(){var Ox626=element[OxO1342[44]];if(Ox626!=null){var Ox282=editor.EditInWindow(Ox626.innerHTML,window);if(Ox282!=null&&Ox282!==false){Ox626[OxO1342[45]]=Ox282;} ;} else {var Ox626=element.createCaption();if(Browser_IsGecko()){Ox626[OxO1342[45]]=OxO1342[46];} else {Ox626[OxO1342[47]]=OxO1342[46];} ;} ;} ;btn_delcaption[OxO1342[41]]=function btn_delcaption_onclick(){if(element[OxO1342[44]]!=null){alert(OxO1342[48]);} ;} ;UpdateState=function UpdateState_Table(){if(Browser_IsGecko()){btn_insthead[OxO1342[45]]=element[OxO1342[42]]?OxO1342[49]:OxO1342[50];btn_instfoot[OxO1342[45]]=element[OxO1342[43]]?OxO1342[49]:OxO1342[50];} else {btn_insthead[OxO1342[47]]=element[OxO1342[42]]?OxO1342[49]:OxO1342[50];btn_instfoot[OxO1342[47]]=element[OxO1342[43]]?OxO1342[49]:OxO1342[50];} ;if(element[OxO1342[44]]!=null){if(Browser_IsGecko()){btn_editcaption[OxO1342[45]]=OxO1342[51];} else {btn_editcaption[OxO1342[47]]=OxO1342[51];} ;btn_editcaption[OxO1342[53]][OxO1342[52]]=OxO1342[54];btn_delcaption[OxO1342[55]]=false;} else {if(Browser_IsGecko()){btn_editcaption[OxO1342[45]]=OxO1342[50];} else {btn_editcaption[OxO1342[47]]=OxO1342[50];} ;btn_delcaption[OxO1342[55]]=true;} ;} ;var t_inp_width=OxO1342[0];var t_inp_height=OxO1342[0];SyncToView=function SyncToView_Table(){inp_cellspacing[OxO1342[56]]=element.getAttribute(OxO1342[57])||OxO1342[0];inp_cellpadding[OxO1342[56]]=element.getAttribute(OxO1342[58])||OxO1342[0];inp_id[OxO1342[56]]=element.getAttribute(OxO1342[59])||OxO1342[0];inp_border[OxO1342[56]]=element.getAttribute(OxO1342[60])||OxO1342[0];inp_bordercolor[OxO1342[56]]=element.getAttribute(OxO1342[61])||OxO1342[0];inp_bordercolor[OxO1342[53]][OxO1342[62]]=inp_bordercolor[OxO1342[56]];inp_bgcolor[OxO1342[56]]=element.getAttribute(OxO1342[63])||element[OxO1342[53]][OxO1342[62]];inp_bgcolor[OxO1342[53]][OxO1342[62]]=inp_bgcolor[OxO1342[56]];inp_collapse[OxO1342[64]]=element[OxO1342[53]][OxO1342[65]]==OxO1342[66];sel_rules[OxO1342[56]]=element.getAttribute(OxO1342[67])||OxO1342[0];inp_summary[OxO1342[56]]=element.getAttribute(OxO1342[68])||OxO1342[0];inp_class[OxO1342[56]]=element[OxO1342[69]]||OxO1342[0];if(element.getAttribute(OxO1342[70])){t_inp_width=element.getAttribute(OxO1342[70]);} else {if(element[OxO1342[53]][OxO1342[70]]){t_inp_width=element[OxO1342[53]][OxO1342[70]];} ;} ;if(t_inp_width){inp_width[OxO1342[56]]=ParseFloatToString(t_inp_width);for(var i=0;i<sel_width_unit[OxO1342[71]][OxO1342[6]];i++){var Ox142=sel_width_unit[OxO1342[71]][i][OxO1342[56]];if(Ox142&&t_inp_width.indexOf(Ox142)!=-1){sel_width_unit[OxO1342[72]]=i;break ;} ;} ;} ;if(element.getAttribute(OxO1342[73])){t_inp_height=element.getAttribute(OxO1342[73]);} else {if(element[OxO1342[53]][OxO1342[73]]){t_inp_height=element[OxO1342[53]][OxO1342[73]];} ;} ;if(t_inp_height){inp_height[OxO1342[56]]=ParseFloatToString(t_inp_height);for(var i=0;i<sel_height_unit[OxO1342[71]][OxO1342[6]];i++){var Ox142=sel_height_unit[OxO1342[71]][i][OxO1342[56]];if(Ox142&&t_inp_height.indexOf(Ox142)!=-1){sel_height_unit[OxO1342[72]]=i;break ;} ;} ;} ;sel_align[OxO1342[56]]=element[OxO1342[74]];if(Browser_IsWinIE()){sel_float[OxO1342[56]]=element[OxO1342[53]][OxO1342[75]];} else {sel_float[OxO1342[56]]=element[OxO1342[53]][OxO1342[76]];} ;sel_textalign[OxO1342[56]]=element[OxO1342[53]][OxO1342[77]];inp_tooltip[OxO1342[56]]=element[OxO1342[78]];} ;SyncTo=function SyncTo_Table(element){if(Browser_IsWinIE()){element[OxO1342[61]]=inp_bordercolor[OxO1342[56]];} else {element.setAttribute(OxO1342[79],inp_bordercolor.value);} ;if(inp_bgcolor[OxO1342[56]]){if(element[OxO1342[53]][OxO1342[62]]){element[OxO1342[53]][OxO1342[62]]=inp_bgcolor[OxO1342[56]];} else {element[OxO1342[63]]=inp_bgcolor[OxO1342[56]];} ;} else {element.removeAttribute(OxO1342[63]);} ;element[OxO1342[53]][OxO1342[65]]=inp_collapse[OxO1342[64]]?OxO1342[66]:OxO1342[0];element[OxO1342[67]]=sel_rules[OxO1342[56]]||OxO1342[0];element[OxO1342[68]]=inp_summary[OxO1342[56]];element[OxO1342[69]]=inp_class[OxO1342[56]];element[OxO1342[57]]=inp_cellspacing[OxO1342[56]];element[OxO1342[58]]=inp_cellpadding[OxO1342[56]];var Ox375=/[^a-z\d]/i;if(Ox375.test(inp_id.value)){alert(OxO1342[80]);return ;} ;element[OxO1342[59]]=inp_id[OxO1342[56]];if(inp_border[OxO1342[56]]==OxO1342[0]){element[OxO1342[60]]=OxO1342[81];} else {element[OxO1342[60]]=inp_border[OxO1342[56]];} ;if(inp_width[OxO1342[56]]==OxO1342[0]){element.removeAttribute(OxO1342[70]);element[OxO1342[53]][OxO1342[70]]=OxO1342[0];} else {try{t_inp_width=inp_width[OxO1342[56]];if(sel_width_unit[OxO1342[56]]==OxO1342[82]){t_inp_width=inp_width[OxO1342[56]]+sel_width_unit[OxO1342[56]];} ;if(element[OxO1342[53]][OxO1342[70]]&&element[OxO1342[70]]){element[OxO1342[53]][OxO1342[70]]=t_inp_width;element[OxO1342[70]]=t_inp_width;} else {if(element[OxO1342[53]][OxO1342[70]]){element[OxO1342[53]][OxO1342[70]]=t_inp_width;} else {element[OxO1342[70]]=t_inp_width;} ;} ;} catch(x){} ;} ;if(inp_height[OxO1342[56]]==OxO1342[0]){element.removeAttribute(OxO1342[73]);element[OxO1342[53]][OxO1342[73]]=OxO1342[0];} else {try{t_inp_height=inp_height[OxO1342[56]];if(sel_height_unit[OxO1342[56]]==OxO1342[82]){t_inp_height=inp_height[OxO1342[56]]+sel_height_unit[OxO1342[56]];} ;t_inp_height=inp_height[OxO1342[56]]+sel_height_unit[OxO1342[56]];if(element[OxO1342[53]][OxO1342[73]]&&element[OxO1342[73]]){element[OxO1342[53]][OxO1342[73]]=t_inp_height;element[OxO1342[73]]=t_inp_height;} else {if(element[OxO1342[53]][OxO1342[73]]){element[OxO1342[53]][OxO1342[73]]=t_inp_height;} else {element[OxO1342[73]]=t_inp_height;} ;} ;} catch(x){} ;} ;element[OxO1342[74]]=sel_align[OxO1342[56]];if(Browser_IsWinIE()){element[OxO1342[53]][OxO1342[75]]=sel_float[OxO1342[56]];} else {element[OxO1342[53]][OxO1342[76]]=sel_float[OxO1342[56]];} ;element[OxO1342[53]][OxO1342[77]]=sel_textalign[OxO1342[56]];element[OxO1342[78]]=inp_tooltip[OxO1342[56]];if(element[OxO1342[78]]==OxO1342[0]){element.removeAttribute(OxO1342[78]);} ;if(element[OxO1342[68]]==OxO1342[0]){element.removeAttribute(OxO1342[68]);} ;if(element[OxO1342[69]]==OxO1342[0]){element.removeAttribute(OxO1342[69]);} ;if(element[OxO1342[69]]==OxO1342[0]){element.removeAttribute(OxO1342[83]);} ;if(element[OxO1342[59]]==OxO1342[0]){element.removeAttribute(OxO1342[59]);} ;if(element[OxO1342[74]]==OxO1342[0]){element.removeAttribute(OxO1342[74]);} ;if(element[OxO1342[67]]==OxO1342[0]){element.removeAttribute(OxO1342[67]);} ;} ;inp_bgcolor[OxO1342[41]]=function inp_bgcolor_onclick(){SelectColor(inp_bgcolor);} ;inp_bordercolor[OxO1342[41]]=function inp_bordercolor_onclick(){SelectColor(inp_bordercolor);} ;if(!Browser_IsWinIE()){Window_GetElement(window,OxO1342[84],true)[OxO1342[53]][OxO1342[52]]=OxO1342[54];} ; |