// Script: Maian Uploader v3.2
// Written by: David Ian Bennett
// E-Mail: support@maianscriptworld.co.uk
// Website: http://www.maianscriptworld.co.uk
// Javascript Functions

function toggle_box(id) {
 var e = document.getElementById(id);
 if(e.style.display == 'none')
 e.style.display = 'block';
 else
 e.style.display = 'none';
}
function resendLink(URL)
{
	day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,left=200,top=100,screenX=0,screenY=0,resizable=0,width=400,height=325');");
}
function codeGenerator(URL)
{
	day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,left=0,top=0,screenX=0,screenY=0,resizable=0,width=650,height=450');");
}
function viewRGB(URL)
{
	day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,left=200,top=80,screenX=0,screenY=0,resizable=0,width=350,height=320');");
}
function viewFile(URL)
{
	day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,left=160,top=20,screenX=0,screenY=0,resizable=1,width=670,height=550');");
}
function viewMedia(URL)
{
	day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,left=175,top=20,screenX=0,screenY=0,resizable=1,width=650,height=350');");
}
function viewWatermark(URL)
{
	day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,left=150,top=20,screenX=0,screenY=0,resizable=1,width=660,height=500');");
}
function ftpData(URL)
{
	day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,left=150,top=20,screenX=0,screenY=0,resizable=0,width=500,height=575');");
}
function paypalData(URL)
{
	day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,left=0,top=0,screenX=0,screenY=0,resizable=0,width=450,height=525');");
}
function previewNews(URL)
{
	day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,left=175,top=150,screenX=0,screenY=0,resizable=0,width=650,height=300');");
}
function viewBanner(URL)
{
	day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,left=250,top=150,screenX=0,screenY=0,resizable=1,width=550,height=250');");
}
function submit_confirm(txt)

{
  var txt;
  var confirmSub = confirm(txt);
  if (confirmSub) { return true; } else { return false; }

}
function selectAll()
{
	for (var i=0;i<document.MyForm.elements.length;i++)
        {
        	var e = document.MyForm.elements[i];
                if ((e.name != 'log') && (e.type=='checkbox'))
                {
                	e.checked = document.MyForm.log.checked;
                }
        }
}
function backupSelect()
{
	for (var i=0;i<document.MyForm.elements.length;i++)
        {
        	var e = document.MyForm.elements[i];
                if ((e.name != 'log') && (e.name != 'structure') && (e.name != 'compress') && (e.type=='checkbox'))
                {
                	e.checked = document.MyForm.log.checked;
                }
        }
}
