// JavaScript Document
function openftpwin(ftppath)
{
//self.location.href = '<%= FtpPath & "/"%>';
win = window.open(""+ ftppath +"","", "toolbar=no,location=no,directories=no,status=yes, menubar=yes,scrollbars=yes,resizable=no,copyhistory=no,width=500,height=500")
        
}

function opendownloadwin(img)
{

var ht = screen.height;
var wdth = screen.width;
var newWidth = 770;
var newHeight = 650;
var lft = (wdth / 2) - (newWidth / 2);
var tp = (ht / 2) - (newHeight / 2);
//self.location.href = '<%= FtpPath & "/"%>';
win = window.open("popup/download.asp?img="+img+"","", "toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,left=" + lft + ",top=" + tp + ",width=" + newWidth + ",height=" + newHeight)       
//alert(img);        

}

function opendownloadppt(img)
{

var ht = screen.height;
var wdth = screen.width;
var newWidth = 770;
var newHeight = 650;
var lft = (wdth / 2) - (newWidth / 2);
var tp = (ht / 2) - (newHeight / 2);
//self.location.href = '<%= FtpPath & "/"%>';
win = window.open("popup/download_ppt.asp?img="+img+"","", "toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,left=" + lft + ",top=" + tp + ",width=" + newWidth + ",height=" + newHeight)       
        
}

function opendownloadanim(img)
{


var ht = screen.height;
var wdth = screen.width;
var newWidth = 770;
var newHeight = 550;
var lft = (wdth / 2) - (newWidth / 2);
var tp = (ht / 2) - (newHeight / 2);
//self.location.href = '<%= FtpPath & "/"%>';
win = window.open("popup/download_ppt_gif.asp?img="+img+"","", "toolbar=no,location=no,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=no,copyhistory=no,left=" + lft + ",top=" + tp + ",width=" + newWidth + ",height=" + newHeight)       
        
}

function opendownloadimage(img)
{

var ht = screen.height;
var wdth = screen.width;
var newWidth = 300;
var newHeight = 200;
var lft = (wdth / 2) - (newWidth / 2);
var tp = (ht / 2) - (newHeight / 2);
//self.location.href = '<%= FtpPath & "/"%>';
win = window.open("popup/download_image.asp?img="+img+"","", "toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no,left=" + lft + ",top=" + tp + ",width=" + newWidth + ",height=" + newHeight)       
        
}
