147 a:4:{s:8:"template";a:1:{s:25:"db:topics_javascript.html";b:1;}s:9:"timestamp";i:1717403912;s:7:"expires";i:1718008712;s:13:"cache_serials";a:0:{}}function submitRelations(form, check) { var content = getContents(); content += bulid(form, check); setContents(content, 1); } function updateRelations(form, check) { var content = bulid(form, check); setContents(content, 0); } function bulid(form, check) { ret = ''; var MyFrom = document.forms[form].elements; if(MyFrom['storyidR[]']){ if( MyFrom['storyidR[]'].length ){ for(i=0;i'; ret += ''; ret += ''; ret += ''; ret += ''+title+'
'; } } }else{ if( MyFrom['storyidR[]'].checked == check){ storyid = MyFrom['storyidR[]'].value; title = MyFrom['titleR[]'].value; dirname = MyFrom['dirnameR[]'].value; ret += ''; ret += ''; ret += ''; ret += ''; ret += ''+title+'
'; } } } return ret; } function getContents() { if (document.getElementById){ var ret = window.opener.document.getElementById("relation").innerHTML; return ret; } return false; } function setContents(content, subwindow) { if (document.getElementById){ if( subwindow ){ window.opener.document.getElementById("relation").innerHTML=content; }else{ document.getElementById("relation").innerHTML=content; } return true; } return false; }