
function pop_window(winname)
{
	var confirmWin = null;
	confirmWin = window.open(winname,'BackupNation','width=800,height=500,status');
	return false;
}
function PopupPage(winname,w,h) 
{ 
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+'resizable=0'
	window.open(winname,'', winprops)
	return false;
}
function PopupPage2(winname,w,h) 
{ 
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes';
	window.open(winname,'', winprops)
	return false;
}
function PopupFullPage(winname) 
{ 
        var h=screen.height-25
        var w=screen.width-10
	var winl = 0;
	var wint = 0;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+'resizable=0'
	window.open(winname,'', winprops)
	return false;
}

function mnu_signup()
{
	//alert('full')
	location.href="https://www.backupnation.com/rbms/customer_reg.aspx?referral=fZ9qr3hnlgyOx90HqL5vWw%3d%3d";
}

function mnu_downloads()
{
	//alert('full')
	location.href="https://www.backupnation.com/support/downloads.html";
}

function mnu_home()
{

	//alert('home')
	location.href="http://www.backupnation.com/index.html";

}


function login()
{
     
	
	var i;
	var cc="";

	//cc=document.forms[0].username.value+"end";if(cc.indexOf("end")<6 || cc.indexOf("end")>14){alert("The <UserName> field must consist at least 6 characters but not must exceed 14 characters.");return false;}
	//cc=document.forms[0].password.value+"end";if(cc.indexOf("end")<6 || cc.indexOf("end")>14){alert("The <Password> field field must consist at least 6 characters but not must exceed 14 characters.");return false;}

	parent.mainFrame.location.href="/RBMS/login.aspx?username=" +document.forms[0].username.value + "&password="+document.forms[0].password.value;
	
	parent.topFrame.location.href="top_blank.html";
	
	return false;
}

function register()
{
     		
	parent.mainFrame.location.href="/RBMS/customer_reg.aspx";
	parent.topFrame.location.href="top_blank.html";
	
	return false;
}
function login2()
{

	var i;
	var cc="";
	
	//cc=document.forms[0].txtusername.value+"end";if(cc.indexOf("end")<6 || cc.indexOf("end")>14){alert("The <UserName> field must consist at least 6 characters but not must exceed 14 characters.");return false;}
	//cc=document.forms[0].txtpassword.value+"end";if(cc.indexOf("end")<6 || cc.indexOf("end")>14){alert("The <Password> field field must consist at least 6 characters but not must exceed 14 characters.");return false;}
	
	location.href="login.aspx?username=" +document.forms[0].login_txtusername.value + "&password="+document.forms[0].login_txtpassword.value;
	
	
	return false;
}
function checkall()
{
	
	
	
	document.forms[0].Customers_day1.checked=true;
	document.forms[0].Customers_day2.checked=true;
	document.forms[0].Customers_day3.checked=true;
	document.forms[0].Customers_day4.checked=true;
	document.forms[0].Customers_day5.checked=true;
	document.forms[0].Customers_day6.checked=true;
	document.forms[0].Customers_day7.checked=true;
	
	return false;
	
}
function uncheckall()
{
	document.forms[0].Customers_day1.checked=false;
	document.forms[0].Customers_day2.checked=false;
	document.forms[0].Customers_day3.checked=false;
	document.forms[0].Customers_day4.checked=false;
	document.forms[0].Customers_day5.checked=false;
	document.forms[0].Customers_day6.checked=false;
	document.forms[0].Customers_day7.checked=false;
	
	return false;

}


function downloadkit()
{
	if(!(document.forms[0].Customers_day1.checked||document.forms[0].Customers_day2.checked||document.forms[0].Customers_day3.checked||document.forms[0].Customers_day4.checked||document.forms[0].Customers_day5.checked||document.forms[0].Customers_day6.checked||document.forms[0].Customers_day7.checked))
	{
		alert("Please select a day!");
		return false;
	}
	var param;
	param=document.forms[0].Customers_backupRepeat.value +"*"+document.forms[0].Customers_cbot1.value+":"+document.forms[0].Customers_cbot2.value+document.forms[0].Customers_cbot3.value;
	param+="*"+conv(document.forms[0].Customers_day1.checked)+conv(document.forms[0].Customers_day2.checked)+conv(document.forms[0].Customers_day3.checked)+conv(document.forms[0].Customers_day4.checked)+conv(document.forms[0].Customers_day5.checked)+conv(document.forms[0].Customers_day6.checked)+conv(document.forms[0].Customers_day7.checked)
	PopupPage("download.aspx?options="+param,495,660);
	return false;

}
function checkall2()
{
	
	
	
	document.forms[0].customers_reg_end_day1.checked=true;
	document.forms[0].customers_reg_end_day2.checked=true;
	document.forms[0].customers_reg_end_day3.checked=true;
	document.forms[0].customers_reg_end_day4.checked=true;
	document.forms[0].customers_reg_end_day5.checked=true;
	document.forms[0].customers_reg_end_day6.checked=true;
	document.forms[0].customers_reg_end_day7.checked=true;
	
	return false;
	
}
function uncheckall2()
{
	document.forms[0].customers_reg_end_day1.checked=false;
	document.forms[0].customers_reg_end_day2.checked=false;
	document.forms[0].customers_reg_end_day3.checked=false;
	document.forms[0].customers_reg_end_day4.checked=false;
	document.forms[0].customers_reg_end_day5.checked=false;
	document.forms[0].customers_reg_end_day6.checked=false;
	document.forms[0].customers_reg_end_day7.checked=false;
	
	return false;

}


function downloadkit2()
{
	if(!(document.forms[0].customers_reg_end_day1.checked||document.forms[0].customers_reg_end_day2.checked||document.forms[0].customers_reg_end_day3.checked||document.forms[0].customers_reg_end_day4.checked||document.forms[0].customers_reg_end_day5.checked||document.forms[0].customers_reg_end_day6.checked||document.forms[0].customers_reg_end_day7.checked))
	{
		alert("Please select a day!");
		return false;
	}
	var param;
	param=document.forms[0].customers_reg_end_backupRepeat.value +"*"+document.forms[0].customers_reg_end_cbot1.value+":"+document.forms[0].customers_reg_end_cbot2.value+document.forms[0].customers_reg_end_cbot3.value;
	param+="*"+conv(document.forms[0].customers_reg_end_day1.checked)+conv(document.forms[0].customers_reg_end_day2.checked)+conv(document.forms[0].customers_reg_end_day3.checked)+conv(document.forms[0].customers_reg_end_day4.checked)+conv(document.forms[0].customers_reg_end_day5.checked)+conv(document.forms[0].customers_reg_end_day6.checked)+conv(document.forms[0].customers_reg_end_day7.checked)
	PopupPage("download.aspx?options="+param,495,660);
	return false;

}

function conv(param)
{
	if(param) return "1"
	return "0"

}
function doclose()
{
	setTimeout('window.close()',10000)
	return true;

}