
var LocalizationDestinationURL = "";

	function gosecure(page){
        	var host = window.location.hostname
        	window.location.href = "https://" + host +  page;
        }

        function gounsecure(page){
	        var host = window.location.hostname
	        window.location.href = "http://" + host + page;
        }



// ' --------------------------------------------------------
// ' Project PM50203 : Localization (Spanish nelnet. 
// '	FDD 1.13 Ok , Cancel option for link back to the 
// '	Nelnet.net home page
// ' --------------------------------------------------------

	function translateConfirmButtonText(pMsg) 
	{
		var result = "";
		result = pMsg.replace("Aceptar", "Aceptar (OK)");
		result = result.replace("Cancelar","Cancelar (Cancel)");
		return result;
	}
	
	function languageChangeConfirmation(pMsg){
		var result = false;
	        if (confirm(translateConfirmButtonText(pMsg.replace("##CRLF##", "\r\n"))))
			{
        		result = true;
			}
			return result;
    }


	function gosecureWithConfirmation(page, pMsg){
        	var host = window.location.hostname;
	        if (confirm(translateConfirmButtonText(pMsg.replace("##CRLF##", "\r\n"))))
			{
        		window.location.href = "https://" + host +  page;
			}
        }

	function gosecureLAFWithConfirmation(env, page, pMsg){
        	var host = "secure.nelnet.dev";
			
			if(env =="prod")
			{	
				host = "secure.nelnet.com/loanapplication/cobrandlanding.aspx";
				env = "";
				page = "";
				//alert('host:' + host);
			}
			
			if (confirm(translateConfirmButtonText(pMsg.replace("##CRLF##", "\r\n"))))
			{
        		window.location.href = "https://" + env + host +  page;
			}
        }

        function gounsecureWithConfirm(page, pMsg){
	        var host = window.location.hostname;
        	if (confirm(translateConfirmButtonText(pMsg.replace("##CRLF##", "\r\n"))))
			{
	        	window.location.href = "http://" + host + page;
			}
        }

		function goAbsoluteWithConfirm(page, pMsg){
        	if (confirm(translateConfirmButtonText(pMsg.replace("##CRLF##", "\r\n"))))
			{
	        	window.location.href = page;
			}
        }


	function gosecureWithConfirmationPopup(page, pMsg){
        	var host = window.location.hostname;
	        if (confirm(translateConfirmButtonText(pMsg.replace("##CRLF##", "\r\n"))))
			{
        		localizationOpenAWindow("https://" + host +  page);
			}
        }

        function gounsecureWithConfirmPopup(page, pMsg){
	        var host = window.location.hostname;
        	if (confirm(translateConfirmButtonText(pMsg.replace("##CRLF##", "\r\n"))))
			{
	        	localizationOpenAWindow("http://" + host + page);
			}
        }

		function goAbsoluteWithConfirmPopup(page, pMsg){
        	if (confirm(translateConfirmButtonText(pMsg.replace("##CRLF##", "\r\n"))))
			{
	        	localizationOpenAWindow(page);
			}
        }
        
		var myWindow = 0;
		function localizationOpenAWindow(pName)
		{
			myWindow = open(pName);
		}
		 


// ' --------------------------------------------------------

        function NavBorr(pLang)   {
            window.location = "default.asp?content=b&lang=" + pLang;
        }
        function Navpar(pLang)   {
            window.location = "default.asp?content=p&lang=" + pLang;
        }
        function Navcoun(pLang)   {
            window.location = "default.asp?content=c&lang=" + pLang;
        }
        function Navsch(pLang)   {
            window.location = "default.asp?content=s&lang=" + pLang;
        }
        function Navlen(pLang)   {
            window.location = "default.asp?content=l&lang=" + pLang;
        }
        function Navguar(pLang)   {
            window.location = "default.asp?content=g&lang=" + pLang;
        }
        function NavInv(pLang)   {
            window.open("http://www.nelnetinvestors.net/index.cfm");
        }

		function NavInvToNetInvestors()   {
			window.location = "http://www.nelnetinvestors.net/index.cfm";
		}

        function NavEnglish()   {
            window.location = "../default.asp?content=b&lang=en";
        }

        function NavSpanish()   {
            window.location = "../default.asp?content=b&lang=es";
        }

// ' -------------------------------------------------------- for defaultb.asp

        function NavBorrB(pLang)   {
            window.location = "defaultb.asp?content=b&lang=" + pLang;
        }
        function NavparB(pLang)   {
            window.location = "defaultb.asp?content=p&lang=" + pLang;
        }
        function NavcounB(pLang)   {
            window.location = "defaultb.asp?content=c&lang=" + pLang;
        }
        function NavschB(pLang)   {
            window.location = "defaultb.asp?content=s&lang=" + pLang;
        }
        function NavlenB(pLang)   {
            window.location = "defaultb.asp?content=l&lang=" + pLang;
        }
        function NavguarB(pLang)   {
            window.location = "defaultb.asp?content=g&lang=" + pLang;
        }
        function NavInvB(pLang)   {
             window.open("http://www.nelnetinvestors.net/index.cfm");
        }

        function NavEnglishB()   {
            window.location = "../defaultb.asp?content=b&lang=en";
        }

        function NavSpanishB()   {
            window.location = "../defaultb.asp?content=b&lang=es";
        }
