var xmlHttp = false;
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e2) {
xmlHttp = false;
}
}
if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
xmlHttp = new XMLHttpRequest();
}
function showfiles(){
var url = "showfile.asp?pid" +Math.random();
xmlHttp.open("GET", url, true);
xmlHttp.onreadystatechange = reloadX;
xmlHttp.send(null);
}
function showfiles2(folder){
var url = "showfile.asp?foldername="+folder+"&pid" +Math.random();
xmlHttp.open("GET", url, true);
xmlHttp.onreadystatechange = reloadX;
xmlHttp.send(null);
}
function goback(){
var url = "showfile.asp?go=back"+"&pid" +Math.random();
xmlHttp.open("GET", url, true);
xmlHttp.onreadystatechange = reloadX;
xmlHttp.send(null);
}
function gonow(){
document.getElementById("filemanage_all").style.display="block";
var url = "showfile.asp?go=now"+"&pid" +Math.random();
xmlHttp.open("GET", url, true);
xmlHttp.onreadystatechange = reloadX;
xmlHttp.send(null);
}
function reloadX() {
if (xmlHttp.readyState < 4) {
setmsg(' ";
document.getElementById("mylocation").style.display="block";
document.getElementById('mylocation').style.height=20;
showl=false
}
else
{
document.getElementById('showloctionx').innerHTML="";
document.getElementById("mylocation").style.display="none";
showl=true;
}
}
function hidemenu(){
document.getElementById("Movefiles").style.display="none";
document.getElementById("CreateFolder").style.display="none";
}
function hidemenu1(){
document.getElementById("addlink").style.display="none";
}
function setorderby(){
var orderby=document.getElementById("orderby").value;
var url = "setorderby.asp?setby="+orderby+"&pid="+Math.random();
xmlHttp.open("GET", url, true);
xmlHttp.onreadystatechange = setorderbyok;
xmlHttp.send(null);
}
function setorderbyok() {
if (xmlHttp.readyState == 4) {
gonow();
setmsg(' 文件排序设置成功!');
}
}
function editlink(linkid,urlname,urlloction,share){
document.getElementById(linkid).innerHTML="标签名: 是否公享 网址编辑: ";
}
function editlink2(linkidx){
var urlname=document.getElementById("editlinkname").value;
var linkshare='no';
var urlloction=document.getElementById("editlinkloaction").value;
if(document.getElementById("editlinkshare").checked)
{
linkshare=document.getElementById("editlinkshare").value;
}
if (urlname!=undefined)
{
var url = "editlink.asp?uname="+urlname+"&share="+linkshare+"&uloction="+urlloction+"&id="+linkidx+"&pid="+Math.random();
xmlHttp.open("GET", url, true);
xmlHttp.onreadystatechange = editlinkok;
xmlHttp.send(null);
}
}
function editlinkok() {
if (xmlHttp.readyState == 4) {
gonow();
setmsg(' 编辑网址标签成功!');
}
}
function highlightme(o){
o.parentNode.parentNode.style.backgroundColor = (o.checked)?"#FFEBD7":""
}