function F_framestyleresize (targobj)
{
var targwin = Targobj.parent.document.all[targobj.name];
if (Targwin!= null)
{
var heightvalue = TargObj.document.body.scrollHeight
if (Heightvalue <) {Heightvalue = 300}//no less than 600
TargWin.style.pixelHeight = Heightvalue;
}
}
function F_iframeresize ()
{
Bloadcomplete = true;
F_framestyleresize (self);
}
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 Reloadx () {
if (Xmlhttp.readystate < 4) {
Setmsg (' data loading, please wait ... ');
}
if (xmlhttp.readystate = = 4) {
F_iframeresize ();
var response = Xmlhttp.responsetext;
document.getElementById ("MyFile"). InnerHTML = response;
var bloadcomplete = false;
F_iframeresize ();
}
}
function Delfile ()
{
if (window.confirm) (Are you sure you want to delete the selected file?) ") ==true)
{
var fileid= "";
var obj=document.getelementsbyname (' Myselect ');
for (Var i=0 i < obj.length; i++) {
if (obj[i].checked)
Fileid=fileid+obj[i].value+ ', ';
}
if (Fileid)
{
var url = ".. /delfile.asp?fid= "+fileid+" &pid "+math.random" ();
Xmlhttp.open ("Get", url, True);
Xmlhttp.onreadystatechange = Delfileok;
Xmlhttp.send (NULL);
}
Else
{
Alert ("Please select File First!");
}
}
}
function Share ()
{
var fileid= "";
var obj=document.getelementsbyname (' Myselect ');
for (Var i=0 i < obj.length; i++) {
if (obj[i].checked)
Fileid=fileid+obj[i].value+ ', ';
}
if (Fileid)
{
var url = ".. /shareit.asp?action=share&myselect= "+fileid+" &pid "+math.random" ();
Xmlhttp.open ("Get", url, True);
Xmlhttp.onreadystatechange = Shareok;
Xmlhttp.send (NULL);
}
Else
{
Alert ("Please select File First!");
}
}
function Delfolder (FID)
{
if (window.confirm) (Are you sure you want to delete the selected folder?) ") ==true)
{
var url = ".. /delfolder.asp?action=del&fid= "+FID;
Xmlhttp.open ("Get", url, True);
Xmlhttp.onreadystatechange = Delfolderok;
Xmlhttp.send (NULL);
}
}
function Dellink (LID)
{
if (window.confirm) ("Are you sure you want to delete the selected URL tag?") ") ==true)
{
var url = "Dellink.asp?id=" +lid;
Xmlhttp.open ("Get", url, True);
Xmlhttp.onreadystatechange = Dellinkok;
Xmlhttp.send (NULL);
}
}
function Formate ()
{
if (Window.confirm ("The system clears all the data in your network disk, are you sure you want to continue?") ==true)
{
var url = "Formate.asp?pid" +math.random ();
Xmlhttp.open ("Get", url, True);
Xmlhttp.onreadystatechange = Formateok;
Xmlhttp.send (NULL);
}
}
function Shareok () {
if (xmlhttp.readystate = = 4) {
Gonow ();
Setmsg (' File sharing success! ');
}
}
function Editfile2 (Fileid) {
var Filerename=document.getelementbyid ("Filerename"). Value
var fileshare= ' no ';
var Fileintro=document.getelementbyid ("Fileintro"). Value;
if (document.getElementById ("FileShare"). Checked)
{
Fileshare=document.getelementbyid ("FileShare"). Value;
}
function Editfileok () {
if (xmlhttp.readystate = = 4) {
Gonow ();
Setmsg (' Edit file succeeded! ');
}
}
function Checkall (form)
{
for (Var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
E.checked = True
}
}
function Checkothers (form)
{
for (Var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (E.checked==false)
{
E.checked = true;
}
Else
{
e.checked = false;
}
}
}
function Creatfolder () {
var Foldername=document.getelementbyid ("foldername"). Value;
var y1= ' no ';
var y2= ' no ';
var Pwd=document.getelementbyid ("Passwordin"). Value;
if (document.getElementById ("Everyone"). Checked)
{
Y1=document.getelementbyid ("Everyone"). Value;
}
if (document.getElementById ("Needpassword"). Checked)
{
Y2=document.getelementbyid ("Needpassword"). Value;
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.