function Toggle(secid, last){var o=document.getElementById(secid);if(o==null){return;}var i=document.getElementById("is" + secid);if(i==null){return;}if(o.style.display=='block'){i.src=last==1?"img/fcnsl.gif":"img/fcns.gif"; o.style.display='none';}else{i.src=last==1?"img/fonsl.gif":"img/fons.gif"; o.style.display='block';}}function dirOpen(secid, last){var o=document.getElementById(secid);if(o==null)return;if(o.style.display !='block'){var i=document.getElementById("is" + secid);i.src=last==1?"img/fonsl.gif":"img/fons.gif"; o.style.display='block';}}function submit_chkid(x){if(currentdir){x.id.value=currentdir;}with(x){submit();}}function showFiles(id){xmlHttp=GetXmlHttpObject();if(xmlHttp==null){alert("Your browser does not support AJAX!");return;}var url="showfiles.php";url=url+"?id="+id;xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",url,true);xmlHttp.send(null);if(currentdir){o=document.getElementById("dir"+currentdir);o.className="tdesc";}currentdir=id;o=document.getElementById("dir"+currentdir);if(o){o.className="tdescsel";}document.getElementById("dirpath").innerHTML=dirpath[id];if(document.getElementById("ren_dir_id")){document.getElementById("ren_dir_id").value=dirname[id];}if(document.getElementById("del_dir_id")){document.getElementById("del_dir_id").innerHTML=dirname[id];}}function GetXmlHttpObject(){var xmlHttp=null;try{xmlHttp=new XMLHttpRequest();}catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){alert("Your browser does not support AJAX!");return false;}}}return xmlHttp;}function stateChanged(){if(xmlHttp.readyState==4){document.getElementById("filelist").innerHTML=xmlHttp.responseText;}}