﻿function ExtranetPrivacyPolicy()
{
	PopupWindow("Page.asp?PageID=962");
}

function ForgotPassword(sFormName, nPageID)
{
	var oForm = eval("document." + sFormName);
	
	if (oForm.Username.value == "")
	{
		alert(oBL_General_Ext_Lang.ValidationMsg_ForgotPassword);
	}
	else
	{
		sSiteNodeID = GetQueryParameter("SiteNodeID");
		if (sSiteNodeID != "")
		{
			sSiteNodeID = "&SiteNodeID=" + sSiteNodeID;
		}
		location.href = "Page.asp?PageID=" + nPageID.toString() + sSiteNodeID + "&Username=" + oForm.Username.value + "&BL_ContactEmail=" + sBL_ContactEmail + "&BL_URL=" + sBL_URL;
	}
}

function Login(oForm)
{
	if (oForm.Username.value == '' || oForm.Password.value == '')
	{
		alert(oBL_General_Ext_Lang.ValidationMsg_Login);
		return false;
	}
	else
	{
		return true;
	}
}

function Logout()
{
	if (confirm(oBL_General_Ext_Lang.Alert_Logout))
	{
		location.href = "Page.asp?PageID=1021&BL_WebsiteID=" + sBL_WebsiteID;
	}
}

function NavAccountPage() {
	location.href = "Page.asp?PageID=1020&BL_WebsiteID=" + sBL_WebsiteID;
}

function NavRegistrationForm(shellID) {
	location.href = "Page.asp?PageID=282&BL_WebsiteID=" + sBL_WebsiteID;
}

function StrongPasswords()
{
	alert(oBL_General_Ext_Lang.Alert_StrongPwd);
}