try{document.execCommand("BackgroundImageCache",false,true);}catch(err){}; function $(v){return(document.getElementById(v));}; function $N(v){return(document.getElementsByName(v));}; function $S(v){return(document.getElementById(v).style);}; function $D(v){$S(v).display='none';$(v).removeNode(true);}; function createXMLHttpRequest(){ var XMLhttpObject=null; try{ XMLhttpObject=new XMLHttpRequest(); }catch(e){ try{ XMLhttpObject=new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ XMLhttpObject=new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ return false; }; }; }; return XMLhttpObject; }; function getIndex(i){ ownuser=i; xmlhttp=createXMLHttpRequest(); if(xmlhttp){ xmlhttp.onreadystatechange=function(){ if(xmlhttp.readyState==4){ databaseText=xmlhttp.responseText; JsBlockShowID(0,'Y'); }; }; xmlhttp.open('get','/kurabu/read/menu.asp?'+i,true); xmlhttp.send(null); }; }; function JsBlockShowID(o,o2){ var obj=$('SubBlock_div_'+o); if(o2=='Y'){ obj.style.display=''; JsBlockShow(o); }else{ if(obj.style.display==''){ obj.style.display='none'; }else{ obj.style.display=''; if(obj.innerHTML==''){ JsBlockShow(o); }; }; }; }; function JsBlockShow(o){ var item_d=''; var resultText=''; var LF=String.fromCharCode(10); var TAB=String.fromCharCode(9); var lineData=databaseText.split(LF); for(var i=0;i'; switch(parseInt(itemData[2])){ case 0:item_d+=''+itemData[1]+'';break; case 1:item_d+=''+itemData[1]+'';break; case 2:item_d+=''+itemData[1]+'';break; }; item_d+=''; }; }; }; if(item_d=='' && o!=0){item_d='
  • 沒有選項
  • ';}; if(o==0){ if(item_d!=''){resultText='';}; }else{ resultText=''; }; if(resultText!=''){$('SubBlock_div_'+o).innerHTML=resultText;}; };