﻿// JScript File
		//07mar 16 var strYTIP = "sep05.htm";

		//07mar 16
		var strYTIP = "ytip_TOC.htm";
		
		var strBibliographies = "bibliographies.htm";
		var strMembershipFaqs = "faqs.htm";
		var strDefault = "default.htm";
		var strSignup = "signup.aspx";
		var strSearch = "search.aspx";
		//09jan 04
		var strSearchSchool = "search_school.aspx";
		
		var strIndex = "index.htm";
		var strIndexBenefits = "index.htm#benefits";
		var strIndexTypes = "index.htm#types";
		var strMission = "mission.htm";
		var strBoardDirectors = "boarddirectors.htm";
		var strManagement = "management.htm";
		var strAdvisory = "advisory.htm";
		var strEditorialBoard = "editorialboard.htm";
		var strPublicationsIndex = "index.htm";
		var strJournal = "journal.htm";
		var strArticles = "articles.htm";
		var strStudies = "studies.htm";
		var strGuidelines = "guidelines.htm";
		//07feb 07 var strSummaries = "summaries.htm";
		//07feb 07
		var strSummaries = "summaries.htm";
		var strCollaborate = "collaborate.htm";
		var strParticipate = "participate.htm";
		var strConferences = "conferences.htm";
		var strContinuingEd = "continuing_ed.htm";
		var strTraining = "training_auto.aspx";
		var strOpportunities = "opportunities.htm";
		var strStandards = "standards.htm";
		var strDefs = "defs.htm";
		var strFeedback = "feedback.htm";
		var strAffiliate = "affiliate.htm";
		//08jan 15 var strSupport = "support.htm";
		//08jan 15
		var strSupport = "https://secure.groundspring.org/dn/index.php?aid=22204";
		var strContactUs = "contactus.aspx";
		//06sep 25 end
		//06nov 08
		var strProfile="profile.aspx";
		//07feb 07
		var strResearchNews = "summaries.htm";
		//08jun 17
		var strSearch_vx2 = "search_vx2.aspx";
		//09jun 08
		var strJournals = "journals_vx2.htm";
		
		
		var varProfileNumber = "";
		//06nov 08
		var varAutoID = "";
		//06nov 15
		var varUserStatus = "NoStatus";
		//06dec 17
		var varActiveMember = "";  // possible values: "", Y for yes, N for no
 		var varLogStatus = "";     // possible values: "", "I" for logged in, "O" for logged out, "F" for failed login
        //06dec 31
        var varDiscountStatus = "";  //possible values are: "", Y for yes,  N for no
        var varCountryID = "";     // possible values are: "", 1, 2, ....
        var varAmount="";          // possible values are: "", 60.00, 90.00, etc        
        		//07aug 26
        var varReturnPage = "";

        //06nov 02
        // for Links
        var strHome_Log = "";
        //06dec 14
        var strPrivacy = "privacy.htm";
        var strRefund = "refund.htm";
        var strLegal = "legal.htm";
        var strLogin = "login.aspx";
        //07mar 16 var strYTIP = "ytip.htm";
        var strSugerman = "sugerman.htm";
        var strShah = "shah.htm";
        var strHails = "hails.htm";
        //06dec 15
        var strPayment = "payment.aspx";
        var strLogout = "logout.aspx";
        var strSignup = "signup.aspx";
        var strRestOfURL = "";
        //07sep 12
        var strMemberHomePage = "MemberHomePage";
        //09dec 03
        var strSchoolLogout = "school_logout.aspx";
        		
function getURLParameters_FlagParam()
{
	varProfileNumber = "";
	
	var sURL = window.document.URL.toString();
	if (sURL.indexOf("?") > 0)
	{
		var arrParams = sURL.split("?");
			
		var arrURLParams = arrParams[1].split("&");
		
		var arrParamNames = new Array(arrURLParams.length);
		var arrParamValues = new Array(arrURLParams.length);
		
		var i = 0;
		for (i=0;i<arrURLParams.length;i++)
		{
			var sParam =  arrURLParams[i].split("=");
			arrParamNames[i] = sParam[0];
			if (sParam[1] != "")
				//06sep 21 				arrParamValues[i] = unescape(sParam[1]);
				//arrParamValues[i] = decodeURI(sParam[1]);
				arrParamValues[i] = sParam[1];
			else
				arrParamValues[i] = ""; //"No Value";
		}
		
		for (i=0;i<arrURLParams.length;i++)
		{
			//alert(arrParamNames[i]+" = "+ arrParamValues[i]);
			//if (arrParamNames[i] == "AutoID") {
			if (arrParamNames[i] == "ProfileNumber") {
				return arrParamValues[i];
			}
		}
	}
	else
	{
		//alert("No parameters.");
		return ("");
	}
}

//06nov 15 start
function getURLParameter_UserStatus()
{
	varUserStatus = "";
	
	var sURL = window.document.URL.toString();
	if (sURL.indexOf("?") > 0)
	{
		var arrParams = sURL.split("?");
			
		var arrURLParams = arrParams[1].split("&");
		
		var arrParamNames = new Array(arrURLParams.length);
		var arrParamValues = new Array(arrURLParams.length);
		
		var i = 0;
		for (i=0;i<arrURLParams.length;i++)
		{
			var sParam =  arrURLParams[i].split("=");
			arrParamNames[i] = sParam[0];
			if (sParam[1] != "")
				//06sep 21 				arrParamValues[i] = unescape(sParam[1]);
				//arrParamValues[i] = decodeURI(sParam[1]);
				arrParamValues[i] = sParam[1];
			else
				arrParamValues[i] = ""; //"No Value";
		}
		
		for (i=0;i<arrURLParams.length;i++)
		{
			//alert(arrParamNames[i]+" = "+ arrParamValues[i]);
			//if (arrParamNames[i] == "AutoID") {
			if (arrParamNames[i] == "UStatus") {
				return arrParamValues[i];
			}
		}
	}
	else
	{
		//alert("No parameters.");
		return ("");
	}
}
//06nov 15 end

//07aug 26 start
function getURLParameters_ReturnPage()
{
	varReturnPage = "";
	
	var sURL = window.document.URL.toString();
	if (sURL.indexOf("?") > 0)
	{
		var arrParams = sURL.split("?");
			
		var arrURLParams = arrParams[1].split("&");
		
		var arrParamNames = new Array(arrURLParams.length);
		var arrParamValues = new Array(arrURLParams.length);
		
		var i = 0;
		for (i=0;i<arrURLParams.length;i++)
		{
			var sParam =  arrURLParams[i].split("=");
			arrParamNames[i] = sParam[0];
			if (sParam[1] != "")
				//06sep 21 				arrParamValues[i] = unescape(sParam[1]);
				//arrParamValues[i] = decodeURI(sParam[1]);
				arrParamValues[i] = sParam[1];
			else
				arrParamValues[i] = ""; //"No Value";
		}
		
		for (i=0;i<arrURLParams.length;i++)
		{
			//alert(arrParamNames[i]+" = "+ arrParamValues[i]);
			//if (arrParamNames[i] == "AutoID") {
			if (arrParamNames[i] == "Return") {
				return arrParamValues[i];
			}
		}
	}
	else
	{
		//alert("No parameters.");
		return ("");
	}
}
//07aug 26 end

//06dec 17 start
function getURLParameters()
{
    varAutoID = getURLParameters_AutoID();
    varActiveMember = getURLParameters_ActiveMember();
    //alert(" getURLParameters: varActiveMember=" + varActiveMember);
    varLogStatus = getURLParameters_LogStatus();
    varUserStatus = getURLParameter_UserStatus();
    varProfileNumber = getURLParameters_FlagParam();
    //06dec 31
    varDiscountStatus = getURLParameters_DiscountStatus();
    varCountryID = getURLParameters_CountryID();
    varAmount = getURLParameters_Amount();
    
    //07aug 26
    //alert(" in getURLParameters before varReturnPage");
    varReturnPage = getURLParameters_ReturnPage();
    //alert(" in getURLParameters after varReturnPage");
    
}

function getAllURLs()
{
	getURL('Yoga Therapy in Practice');
	getURL('Bibliographies');
	getURL('Home');
	getURL('MembershipFaqs');
	getURL('Signup');
	getURL('Search');
	getURL('Index');
	getURL('IndexBenefits');
	getURL('IndexTypes');
	getURL('Mission');
	getURL('BoardDirectors');
	getURL('Management');
	getURL('Advisory');
	getURL('EditorialBoard');
	getURL('PublicationsIndex');
	getURL('Journal');
	getURL('Articles');
	getURL('Studies');
	getURL('Guidelines');
	getURL('Summaries');
	getURL('Collaborate');
	getURL('Conferences');
	getURL('Participate');
	getURL('ContinuingEd');
	getURL('Training');
	getURL('Opportunities');
	getURL('Standards');
	getURL('Defs');
	getURL('Feedback');
	getURL('Affiliate');
	getURL('Support');
	getURL('ContactUs');
	//06dec 17
	getURL('Signup');
	getURL('Payment');
	getURL('Login');
	getURL('Logout');
	getURL('Profile');
	
	//07sep 12
	getURL('MemberHomePage');
	
	getURL('RestOfURL');
	//07jan 01
	getURL('Sugerman');
	getURL('Hails');
	getURL('Privacy');
	getURL('Legal');
	getURL('Shah');
	getURL('Refund');
	//07feb 07
	getURL('ResearchNews');
	//09jan 04
	getURL('Search_School');


}
//06ded 17 end

//06nov 08 start
function getURLParameters_AutoID()
{
	varAutoID = "";
	
	var sURL = window.document.URL.toString();
	if (sURL.indexOf("?") > 0)
	{
		var arrParams = sURL.split("?");
			
		var arrURLParams = arrParams[1].split("&");
		
		var arrParamNames = new Array(arrURLParams.length);
		var arrParamValues = new Array(arrURLParams.length);
		
		var i = 0;
		for (i=0;i<arrURLParams.length;i++)
		{
			var sParam =  arrURLParams[i].split("=");
			arrParamNames[i] = sParam[0];
			if (sParam[1] != "")
				//06sep 21 				arrParamValues[i] = unescape(sParam[1]);
				//arrParamValues[i] = decodeURI(sParam[1]);
				arrParamValues[i] = sParam[1];
			else
				arrParamValues[i] = ""; //"No Value";
		}
		
		for (i=0;i<arrURLParams.length;i++)
		{
			//alert(arrParamNames[i]+" = "+ arrParamValues[i]);
			//if (arrParamNames[i] == "AutoID") {
			if (arrParamNames[i] == "AutoID") {
				return arrParamValues[i];
			}
		}
	}
	else
	{
		//alert("No parameters.");
		return ("");
	}
}
//06nov 08 end

//06dec 17 start
function getURLParameters_ActiveMember()
{
    // in URL use &AM= or ?AM=
	varActiveMember = "";
	
	var sURL = window.document.URL.toString();
	if (sURL.indexOf("?") > 0)
	{
		var arrParams = sURL.split("?");
			
		var arrURLParams = arrParams[1].split("&");
		
		var arrParamNames = new Array(arrURLParams.length);
		var arrParamValues = new Array(arrURLParams.length);
		
		var i = 0;
		for (i=0;i<arrURLParams.length;i++)
		{
			var sParam =  arrURLParams[i].split("=");
			arrParamNames[i] = sParam[0];
			if (sParam[1] != "")
				//06sep 21 				arrParamValues[i] = unescape(sParam[1]);
				//arrParamValues[i] = decodeURI(sParam[1]);
				arrParamValues[i] = sParam[1];
			else
				arrParamValues[i] = ""; //"No Value";
		}
		
		for (i=0;i<arrURLParams.length;i++)
		{
		    //alert(" arrParamNames=" + arrParamNames[i] + " i=" + i);
			//alert(arrParamNames[i]+" = "+ arrParamValues[i]);
			//if (arrParamNames[i] == "AutoID") {
			if (arrParamNames[i] == "AM") {
				return arrParamValues[i];
			}
		}
	}
	else
	{
		//alert("No parameters.");
		return ("");
	}
}

function getURLParameters_LogStatus()
{
    // in URL use &LS= or ?LS=
	varLogStatus = "";
	
	var sURL = window.document.URL.toString();
	if (sURL.indexOf("?") > 0)
	{
		var arrParams = sURL.split("?");
			
		var arrURLParams = arrParams[1].split("&");
		
		var arrParamNames = new Array(arrURLParams.length);
		var arrParamValues = new Array(arrURLParams.length);
		
		var i = 0;
		for (i=0;i<arrURLParams.length;i++)
		{
			var sParam =  arrURLParams[i].split("=");
			arrParamNames[i] = sParam[0];
			if (sParam[1] != "")
				//06sep 21 				arrParamValues[i] = unescape(sParam[1]);
				//arrParamValues[i] = decodeURI(sParam[1]);
				arrParamValues[i] = sParam[1];
			else
				arrParamValues[i] = ""; //"No Value";
		}
		
		for (i=0;i<arrURLParams.length;i++)
		{
			//alert(arrParamNames[i]+" = "+ arrParamValues[i]);
			//if (arrParamNames[i] == "AutoID") {
			if (arrParamNames[i] == "LS") {
				return arrParamValues[i];
			}
		}
	}
	else
	{
		//alert("No parameters.");
		return ("");
	}
}

//06dec 17 end

//06dec 31 start
function getURLParameters_DiscountStatus()
{
    // in URL use &Ds= or ?Ds=
	varDiscountStatus = "";
	
	var sURL = window.document.URL.toString();
	if (sURL.indexOf("?") > 0)
	{
		var arrParams = sURL.split("?");
			
		var arrURLParams = arrParams[1].split("&");
		
		var arrParamNames = new Array(arrURLParams.length);
		var arrParamValues = new Array(arrURLParams.length);
		
		var i = 0;
		for (i=0;i<arrURLParams.length;i++)
		{
			var sParam =  arrURLParams[i].split("=");
			arrParamNames[i] = sParam[0];
			if (sParam[1] != "")
				//06sep 21 				arrParamValues[i] = unescape(sParam[1]);
				//arrParamValues[i] = decodeURI(sParam[1]);
				arrParamValues[i] = sParam[1];
			else
				arrParamValues[i] = ""; //"No Value";
		}
		
		for (i=0;i<arrURLParams.length;i++)
		{
			//alert(arrParamNames[i]+" = "+ arrParamValues[i]);
			//if (arrParamNames[i] == "AutoID") {
			if (arrParamNames[i] == "Ds") {
				return arrParamValues[i];
			}
		}
	}
	else
	{
		//alert("No parameters.");
		return ("");
	}
}

function getURLParameters_CountryID()
{
    // in URL use &CI= or ?CI=
	varCountryID = "";
	
	var sURL = window.document.URL.toString();
	if (sURL.indexOf("?") > 0)
	{
		var arrParams = sURL.split("?");
			
		var arrURLParams = arrParams[1].split("&");
		
		var arrParamNames = new Array(arrURLParams.length);
		var arrParamValues = new Array(arrURLParams.length);
		
		var i = 0;
		for (i=0;i<arrURLParams.length;i++)
		{
			var sParam =  arrURLParams[i].split("=");
			arrParamNames[i] = sParam[0];
			if (sParam[1] != "")
				//06sep 21 				arrParamValues[i] = unescape(sParam[1]);
				//arrParamValues[i] = decodeURI(sParam[1]);
				arrParamValues[i] = sParam[1];
			else
				arrParamValues[i] = ""; //"No Value";
		}
		
		for (i=0;i<arrURLParams.length;i++)
		{
			//alert(arrParamNames[i]+" = "+ arrParamValues[i]);
			//if (arrParamNames[i] == "AutoID") {
			if (arrParamNames[i] == "CI") {
				return arrParamValues[i];
			}
		}
	}
	else
	{
		//alert("No parameters.");
		return ("");
	}
}

function getURLParameters_Amount()
{
    // in URL use &AT= or ?AT=
	varAmount = "";
	
	var sURL = window.document.URL.toString();
	if (sURL.indexOf("?") > 0)
	{
		var arrParams = sURL.split("?");
			
		var arrURLParams = arrParams[1].split("&");
		
		var arrParamNames = new Array(arrURLParams.length);
		var arrParamValues = new Array(arrURLParams.length);
		
		var i = 0;
		for (i=0;i<arrURLParams.length;i++)
		{
			var sParam =  arrURLParams[i].split("=");
			arrParamNames[i] = sParam[0];
			if (sParam[1] != "")
				//06sep 21 				arrParamValues[i] = unescape(sParam[1]);
				//arrParamValues[i] = decodeURI(sParam[1]);
				arrParamValues[i] = sParam[1];
			else
				arrParamValues[i] = ""; //"No Value";
		}
		
		for (i=0;i<arrURLParams.length;i++)
		{
			//alert(arrParamNames[i]+" = "+ arrParamValues[i]);
			//if (arrParamNames[i] == "AutoID") {
			if (arrParamNames[i] == "AT") {
				return arrParamValues[i];
			}
		}
	}
	else
	{
		//alert("No parameters.");
		return ("");
	}
}

//06dec 31 end

function getURL(menuID)
{
	
	//alert("in getURLa varProfileNumber=" + varProfileNumber + "," );
	if (varProfileNumber == "No Value"  ) {
		varProfileNumber = "";
	}

	if (varProfileNumber == undefined  ) {
		varProfileNumber = "";
	}

    //06nov 08 start
	if (varAutoID == "No Value"  ) {
		varAutoID = "";
	}

	if (varAutoID == undefined  ) {
		varAutoID = "";
	}
    //06nov 08 end
    
    
	//alert("in getURLa varReturnPage=" + varReturnPage + "," );
	
	if (menuID == 'Yoga Therapy in Practice') {
		//06dec 17 if (varProfileNumber != "") {
			//strYTIP = "http://localhost/IAYTNet/publications/ytip/archive.htm";
			//strYTIP = "../../publications/ytip/archive.htm";
			//07mar 16 strYTIP = "archive.htm";
        //07mar 16 start
		strYTIP = "ytip_TOC.htm";
		//09dec 20 if (varActiveMember == "Y") {
		//09dec 20
		if (varActiveMember == "YI" || varActiveMember == "YS") {
		
			strYTIP = "ytip_TOC_member.htm";
		}	
        //07mar 16 end			
			
		//06dec 17 }	
		strYTIP = strYTIP + '?ProfileNumber=' + varProfileNumber;
		//alert("2a strYTIP=" + strYTIP);	
		
		//06nov 15 start
		strYTIP = strYTIP + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strYTIP = strYTIP + '&AutoID=' + varAutoID;
		strYTIP = strYTIP + '&LS=' + varLogStatus;
		strYTIP = strYTIP + '&AM=' + varActiveMember;
		//06dec 31
		strYTIP = strYTIP + '&Ds=' + varDiscountStatus;
		strYTIP = strYTIP + '&CI=' + varCountryID;
		strYTIP = strYTIP + '&AT=' + varAmount;
		strYTIP = strYTIP + '&Return=' + varReturnPage;
		
	}
	
	
	if (menuID == 'Bibliographies') {
		//06dec 17 if (varProfileNumber != "") {
		//06dec 17
		strBibliographies = "bibliographies.htm";
		//09dec 20 
		//if (varActiveMember == "Y") {
		//09dec 20
		if (varActiveMember == "YI" || varActiveMember == "YS") {
			strBibliographies = "bibliographies_member.htm";
		}	
		strBibliographies = strBibliographies + '?ProfileNumber=' + varProfileNumber;
		//alert("3a strBibiliographies=" + strBibliographies);	
		//06nov 15 start
		strBibliographies = strBibliographies + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strBibliographies = strBibliographies + '&AutoID=' + varAutoID;
		strBibliographies = strBibliographies + '&LS=' + varLogStatus;
		strBibliographies = strBibliographies + '&AM=' + varActiveMember;
		//06dec 31
		strBibliographies = strBibliographies + '&Ds=' + varDiscountStatus;
		strBibliographies = strBibliographies + '&CI=' + varCountryID;
		strBibliographies = strBibliographies + '&AT=' + varAmount;
		strBibliographies = strBibliographies + '&Return=' + varReturnPage;
		
	}
	
	//07feb 07 start
	if (menuID == 'Summaries') {
	//alert("menuID = Summaries");
	//alert("varActiveMember=" + varActiveMember);
	
		//06dec 17 if (varProfileNumber != "") {
		//06dec 17
		strSummaries = "summaries.htm";
		//09dec 20 if (varActiveMember == "Y") {
		//09dec 20
		if (varActiveMember == "YI" || varActiveMember == "YS") {
			strSummaries = "summaries_member.htm";
		}	
		strSummaries = strSummaries + '?ProfileNumber=' + varProfileNumber;
		//alert("3a strBibiliographies=" + strBibliographies);	
		//06nov 15 start
		strSummaries = strSummaries + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strSummaries = strSummaries + '&AutoID=' + varAutoID;
		strSummaries = strSummaries + '&LS=' + varLogStatus;
		strSummaries = strSummaries + '&AM=' + varActiveMember;
		//06dec 31
		strSummaries = strSummaries + '&Ds=' + varDiscountStatus;
		strSummaries = strSummaries + '&CI=' + varCountryID;
		strSummaries = strSummaries + '&AT=' + varAmount;
		strSummaries = strSummaries + '&Return=' + varReturnPage;
		
	}
	
	if (menuID == 'ResearchNews') {
		//if (varProfileNumber != "") {
			strResearchNews = "summaries.htm";
		//}	
		strResearchNews = strResearchNews + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strResearchNews = strResearchNews + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strResearchNews = strResearchNews + '&AutoID=' + varAutoID;
		strResearchNews = strResearchNews + '&LS=' + varLogStatus
		strResearchNews = strResearchNews + '&AM=' + varActiveMember
		//06dec 31
		strResearchNews = strResearchNews + '&Ds=' + varDiscountStatus;
		strResearchNews = strResearchNews + '&CI=' + varCountryID;
		strResearchNews = strResearchNews + '&AT=' + varAmount;
		strResearchNews = strResearchNews + '&Return=' + varReturnPage;
		
	}
	
	//07feb 07 end

	if (menuID == 'MembershipFaqs') {
		//if (varProfileNumber != "") {
		//	strMembershipFaqs = "faqs.htm";
		//}	
		//strMembershipFaqs = strMembershipFaqs + '?ProfileNumber=' + varProfileNumber;
		strMembershipFaqs = strMembershipFaqs + "?ProfileNumber=" + varProfileNumber;
		//strMembershipFaqs = "http://localhost/IAYTNET/Membership/" + strMembershipFaqs + "?ProfileNumber=" + varProfileNumber;
		//for testing alert("strMembershipFaqs=" + strMembershipFaqs + " ProfileNumber=" + varProfileNumber);
		//06nov 15 start
		strMembershipFaqs = strMembershipFaqs + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strMembershipFaqs = strMembershipFaqs + '&AutoID=' + varAutoID;
		strMembershipFaqs = strMembershipFaqs + '&LS=' + varLogStatus;
		strMembershipFaqs = strMembershipFaqs + '&AM=' + varActiveMember;
		//06dec 31
		strMembershipFaqs = strMembershipFaqs + '&Ds=' + varDiscountStatus;
		strMembershipFaqs = strMembershipFaqs + '&CI=' + varCountryID;
		strMembershipFaqs = strMembershipFaqs + '&AT=' + varAmount;
		strMembershipFaqs = strMembershipFaqs + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Home') {
		//06dec 17 if (varProfileNumber != "") {
			//06oct 31 strDefault = "default.htm";
			//06oct 31
			//06dec 17 strDefault = "../../default.htm";
			strDefault = "default.htm";
		//}	
		strDefault = strDefault + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strDefault = strDefault + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strDefault = strDefault + '&AutoID=' + varAutoID;
		strDefault = strDefault + '&LS=' + varLogStatus
		strDefault = strDefault + '&AM=' + varActiveMember
		//06dec 31
		strDefault = strDefault + '&Ds=' + varDiscountStatus;
		strDefault = strDefault + '&CI=' + varCountryID;
		strDefault = strDefault + '&AT=' + varAmount;
		strDefault = strDefault + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Signup') {
		//if (varProfileNumber != "") {
			strSignup = "signup.aspx";
		//}	
		strSignup = strSignup + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strSignup = strSignup + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strSignup = strSignup + '&AutoID=' + varAutoID;
		strSignup = strSignup + '&LS=' + varLogStatus
		strSignup = strSignup + '&AM=' + varActiveMember
		//06dec 31
		strSignup = strSignup + '&Ds=' + varDiscountStatus;
		strSignup = strSignup + '&CI=' + varCountryID;
		strSignup = strSignup + '&AT=' + varAmount;
		strSignup = strSignup + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Search') {
		//if (varProfileNumber != "") {
			strSearch = "search.aspx";
		//}	
		strSearch = strSearch + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strSearch = strSearch + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strSearch = strSearch + '&AutoID=' + varAutoID;
		strSearch = strSearch + '&LS=' + varLogStatus
		strSearch = strSearch + '&AM=' + varActiveMember
		//06dec 31
		strSearch = strSearch + '&Ds=' + varDiscountStatus;
		strSearch = strSearch + '&CI=' + varCountryID;
		strSearch = strSearch + '&AT=' + varAmount;
		strSearch = strSearch + '&Return=' + varReturnPage;
	}	
        //09jan 04 start
	if (menuID == 'Search_School') {
		strSearchSchool = "search_school.aspx";
		strSearchSchool = strSearchSchool + '?ProfileNumber=' + varProfileNumber;
		strSearchSchool = strSearchSchool + '&UStatus=' + varUserStatus;
		strSearchSchool = strSearchSchool + '&AutoID=' + varAutoID;
		strSearchSchool = strSearchSchool + '&LS=' + varLogStatus
		strSearchSchool = strSearchSchool + '&AM=' + varActiveMember
		strSearchSchool = strSearchSchool + '&Ds=' + varDiscountStatus;
		strSearchSchool = strSearchSchool + '&CI=' + varCountryID;
		strSearchSchool = strSearchSchool + '&AT=' + varAmount;
		strSearchSchool = strSearchSchool + '&Return=' + varReturnPage;
        //09jan 04 end		
	}
	
	if (menuID == 'Index') {
		//if (varProfileNumber != "") {
			strIndex = "index.htm";
		//}	
		strIndex = strIndex + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strIndex = strIndex + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strIndex = strIndex + '&AutoID=' + varAutoID;
		strIndex = strIndex + '&LS=' + varLogStatus
		strIndex = strIndex + '&AM=' + varActiveMember
		//06dec 31
		strIndex = strIndex + '&Ds=' + varDiscountStatus;
		strIndex = strIndex + '&CI=' + varCountryID;
		strIndex = strIndex + '&AT=' + varAmount;
		strIndex = strIndex + '&Return=' + varReturnPage;
		
	}
	
	if (menuID == 'IndexBenefits') {
		//if (varProfileNumber != "") {
			strIndexBenefits = "index.htm#benefits";
		//}	
		strIndexBenefits = strIndexBenefits + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strIndexBenefits = strIndexBenefits + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strIndexBenefits = strIndexBenefits + '&AutoID=' + varAutoID;
		strIndexBenefits = strIndexBenefits + '&LS=' + varLogStatus
		strIndexBenefits = strIndexBenefits + '&AM=' + varActiveMember
		//06dec 31
		strIndexBenefits = strIndexBenefits + '&Ds=' + varDiscountStatus;
		strIndexBenefits = strIndexBenefits + '&CI=' + varCountryID;
		strIndexBenefits = strIndexBenefits + '&AT=' + varAmount;
		strIndexBenefits = strIndexBenefits + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'IndexTypes') {
		//if (varProfileNumber != "") {
			strIndexTypes = "index.htm#types";
		//}	
		strIndexTypes = strIndexTypes + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strIndexTypes = strIndexTypes + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strIndexTypes = strIndexTypes + '&AutoID=' + varAutoID;
		strIndexTypes = strIndexTypes + '&LS=' + varLogStatus
		strIndexTypes = strIndexTypes + '&AM=' + varActiveMember
		//06dec 31
		strIndexTypes = strIndexTypes + '&Ds=' + varDiscountStatus;
		strIndexTypes = strIndexTypes + '&CI=' + varCountryID;
		strIndexTypes = strIndexTypes + '&AT=' + varAmount;
		strIndexTypes = strIndexTypes + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Mission') {
		//if (varProfileNumber != "") {
			strMission = "mission.htm";
		//}	
		strMission = strMission + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strMission = strMission + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strMission = strMission + '&AutoID=' + varAutoID;
		strMission = strMission + '&LS=' + varLogStatus
		strMission = strMission + '&AM=' + varActiveMember
		//06dec 31
		strMission = strMission + '&Ds=' + varDiscountStatus;
		strMission = strMission + '&CI=' + varCountryID;
		strMission = strMission + '&AT=' + varAmount;
		strMission = strMission + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'BoardDirectors') {
		//if (varProfileNumber != "") {
			strBoardDirectors = "boarddirectors.htm";
		//}	
		strBoardDirectors = strBoardDirectors + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strBoardDirectors = strBoardDirectors + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strBoardDirectors = strBoardDirectors + '&AutoID=' + varAutoID;
		strBoardDirectors = strBoardDirectors + '&LS=' + varLogStatus
		strBoardDirectors = strBoardDirectors + '&AM=' + varActiveMember
		//06dec 31
		strBoardDirectors = strBoardDirectors + '&Ds=' + varDiscountStatus;
		strBoardDirectors = strBoardDirectors + '&CI=' + varCountryID;
		strBoardDirectors = strBoardDirectors + '&AT=' + varAmount;
		strBoardDirectors = strBoardDirectors + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Management') {
		//if (varProfileNumber != "") {
			strManagement = "management.htm";
		//}	
		strManagement = strManagement + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strManagement = strManagement + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strManagement = strManagement + '&AutoID=' + varAutoID;
		strManagement = strManagement + '&LS=' + varLogStatus
		strManagement = strManagement + '&AM=' + varActiveMember
		//06dec 31
		strManagement = strManagement + '&Ds=' + varDiscountStatus;
		strManagement = strManagement + '&CI=' + varCountryID;
		strManagement = strManagement + '&AT=' + varAmount;
		strManagement = strManagement + '&Return=' + varReturnPage;
		
	}
	
	if (menuID == 'Advisory') {
		//if (varProfileNumber != "") {
			strAdvisory = "advisory.htm";
		//}	
		strAdvisory = strAdvisory + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strAdvisory = strAdvisory + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//alert("in getURL: strAdvisory=" + strAdvisory);	
		//06dec 17
		strAdvisory = strAdvisory + '&AutoID=' + varAutoID;
		strAdvisory = strAdvisory + '&LS=' + varLogStatus
		strAdvisory = strAdvisory + '&AM=' + varActiveMember
		//06dec 31
		strAdvisory = strAdvisory + '&Ds=' + varDiscountStatus;
		strAdvisory = strAdvisory + '&CI=' + varCountryID;
		strAdvisory = strAdvisory + '&AT=' + varAmount;
		strAdvisory = strAdvisory + '&Return=' + varReturnPage;
		
	}
	
	if (menuID == 'EditorialBoard') {
		//if (varProfileNumber != "") {
			strEditorialBoard = "editorialboard.htm";
		//}	
		strEditorialBoard = strEditorialBoard + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strEditorialBoard = strEditorialBoard + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strEditorialBoard = strEditorialBoard + '&AutoID=' + varAutoID;
		strEditorialBoard = strEditorialBoard + '&LS=' + varLogStatus
		strEditorialBoard = strEditorialBoard + '&AM=' + varActiveMember
		//06dec 31
		strEditorialBoard = strEditorialBoard + '&Ds=' + varDiscountStatus;
		strEditorialBoard = strEditorialBoard + '&CI=' + varCountryID;
		strEditorialBoard = strEditorialBoard + '&AT=' + varAmount;
		strEditorialBoard = strEditorialBoard + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'PublicationsIndex') {
		//if (varProfileNumber != "") {
			strPublicationsIndex = "index.htm";
		//}	
		strPublicationsIndex = strPublicationsIndex + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strPublicationsIndex = strPublicationsIndex + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strPublicationsIndex = strPublicationsIndex + '&AutoID=' + varAutoID;
		strPublicationsIndex = strPublicationsIndex + '&LS=' + varLogStatus
		strPublicationsIndex = strPublicationsIndex + '&AM=' + varActiveMember
		//06dec 31
		strPublicationsIndex = strPublicationsIndex + '&Ds=' + varDiscountStatus;
		strPublicationsIndex = strPublicationsIndex + '&CI=' + varCountryID;
		strPublicationsIndex = strPublicationsIndex + '&AT=' + varAmount;
		strPublicationsIndex = strPublicationsIndex + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Journal') {
		//if (varProfileNumber != "") {
			strJournal = "journal.htm";
		//}	
		strJournal = strJournal + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strJournal = strJournal + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strJournal = strJournal + '&AutoID=' + varAutoID;
		strJournal = strJournal + '&LS=' + varLogStatus
		strJournal = strJournal + '&AM=' + varActiveMember
		//06dec 31
		strJournal = strJournal + '&Ds=' + varDiscountStatus;
		strJournal = strJournal + '&CI=' + varCountryID;
		strJournal = strJournal + '&AT=' + varAmount;
		strJournal = strJournal + '&Return=' + varReturnPage;
		
	}

	//09jun 10 if (menuID == 'Articles') {
		strArticles = "articles.htm";
		//09dec 20 if (varActiveMember == "Y") {
		//09dec 20
		if (varActiveMember == "YI" || varActiveMember == "YS") {
			strArticles = "articles_members.htm";
		}	
		strArticles = strArticles + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strArticles = strArticles + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strArticles = strArticles + '&AutoID=' + varAutoID;
		strArticles = strArticles + '&LS=' + varLogStatus
		strArticles = strArticles + '&AM=' + varActiveMember
		//06dec 31
		strArticles = strArticles + '&Ds=' + varDiscountStatus;
		strArticles = strArticles + '&CI=' + varCountryID;
		strArticles = strArticles + '&AT=' + varAmount;
		strArticles = strArticles + '&Return=' + varReturnPage;
		
	//}

	if (menuID == 'Studies') {
		strStudies = "studies.htm";
		//09dec 20 
		//if (varActiveMember == "Y") {
		//09dec 20
		if (varActiveMember == "YI" || varActiveMember == "YS") {
			strStudies = "studies_member.htm";
		}	
		strStudies = strStudies + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strStudies = strStudies + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strStudies = strStudies + '&AutoID=' + varAutoID;
		strStudies = strStudies + '&LS=' + varLogStatus
		strStudies = strStudies + '&AM=' + varActiveMember
		//06dec 31
		strStudies = strStudies + '&Ds=' + varDiscountStatus;
		strStudies = strStudies + '&CI=' + varCountryID;
		strStudies = strStudies + '&AT=' + varAmount;
		strStudies = strStudies + '&Return=' + varReturnPage;
		
	}

	//09jun 10 if (menuID == 'Guidelines') {
		//if (varProfileNumber != "") {
			strGuidelines = "guidelines.htm";
		//}	
		strGuidelines = strGuidelines + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strGuidelines = strGuidelines + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strGuidelines = strGuidelines + '&AutoID=' + varAutoID;
		strGuidelines = strGuidelines + '&LS=' + varLogStatus
		strGuidelines = strGuidelines + '&AM=' + varActiveMember
		//06dec 31
		strGuidelines = strGuidelines + '&Ds=' + varDiscountStatus;
		strGuidelines = strGuidelines + '&CI=' + varCountryID;
		strGuidelines = strGuidelines + '&AT=' + varAmount;
		strGuidelines = strGuidelines + '&Return=' + varReturnPage;
		
	//09jun 10 }

	if (menuID == 'Conferences') {
		//if (varProfileNumber != "") {
			strConferences = "conferences.htm";
		//}	
		strConferences = strConferences + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strConferences = strConferences + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strConferences = strConferences + '&AutoID=' + varAutoID;
		strConferences = strConferences + '&LS=' + varLogStatus
		strConferences = strConferences + '&AM=' + varActiveMember
		//06dec 31
		strConferences = strConferences + '&Ds=' + varDiscountStatus;
		strConferences = strConferences + '&CI=' + varCountryID;
		strConferences = strConferences + '&AT=' + varAmount;
		strConferences = strConferences + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Participate') {
		//if (varProfileNumber != "") {
			strParticipate = "participate.htm";
		//}	
		strParticipate = strParticipate + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strParticipate = strParticipate + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strParticipate = strParticipate + '&AutoID=' + varAutoID;
		strParticipate = strParticipate + '&LS=' + varLogStatus
		strParticipate = strParticipate + '&AM=' + varActiveMember
		//06dec 31
		strParticipate = strParticipate + '&Ds=' + varDiscountStatus;
		strParticipate = strParticipate + '&CI=' + varCountryID;
		strParticipate = strParticipate + '&AT=' + varAmount;
		strParticipate = strParticipate + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'ContinuingEd') {
		//if (varProfileNumber != "") {
			strContinuingEd = "continuing_ed.htm";
		//}	
		strContinuingEd = strContinuingEd + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strContinuingEd = strContinuingEd + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strContinuingEd = strContinuingEd + '&AutoID=' + varAutoID;
		strContinuingEd = strContinuingEd + '&LS=' + varLogStatus
		strContinuingEd = strContinuingEd + '&AM=' + varActiveMember
		//06dec 31
		strContinuingEd = strContinuingEd + '&Ds=' + varDiscountStatus;
		strContinuingEd = strContinuingEd + '&CI=' + varCountryID;
		strContinuingEd = strContinuingEd + '&AT=' + varAmount;
		strContinuingEd = strContinuingEd + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Training') {
		//if (varProfileNumber != "") {
			strTraining = "training_auto.aspx";
		//}	
		strTraining = strTraining + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strTraining = strTraining + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strTraining = strTraining + '&AutoID=' + varAutoID;
		strTraining = strTraining + '&LS=' + varLogStatus
		strTraining = strTraining + '&AM=' + varActiveMember
		//06dec 31
		strTraining = strTraining + '&Ds=' + varDiscountStatus;
		strTraining = strTraining + '&CI=' + varCountryID;
		strTraining = strTraining + '&AT=' + varAmount;
		strTraining = strTraining + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Opportunities') {
		//if (varProfileNumber != "") {
			strOpportunities = "opportunities.htm";
		//}	
		strOpportunities = strOpportunities + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strOpportunities = strOpportunities + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strOpportunities = strOpportunities + '&AutoID=' + varAutoID;
		strOpportunities = strOpportunities + '&LS=' + varLogStatus
		strOpportunities = strOpportunities + '&AM=' + varActiveMember
		//06dec 31
		strOpportunities = strOpportunities + '&Ds=' + varDiscountStatus;
		strOpportunities = strOpportunities + '&CI=' + varCountryID;
		strOpportunities = strOpportunities + '&AT=' + varAmount;
		strOpportunities = strOpportunities + '&Return=' + varReturnPage;
		
	}
	
	if (menuID == 'Standards') {
		//if (varProfileNumber != "") {
			strStandards = "standards.htm";
		//}	
		strStandards = strStandards + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strStandards = strStandards + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strStandards = strStandards + '&AutoID=' + varAutoID;
		strStandards = strStandards + '&LS=' + varLogStatus
		strStandards = strStandards + '&AM=' + varActiveMember
		//06dec 31
		strStandards = strStandards + '&Ds=' + varDiscountStatus;
		strStandards = strStandards + '&CI=' + varCountryID;
		strStandards = strStandards + '&AT=' + varAmount;
		strStandards = strStandards + '&Return=' + varReturnPage;
		
	}
	
	if (menuID == 'Defs') {
		//if (varProfileNumber != "") {
			strDefs = "defs.htm";
		//}	
		strDefs = strDefs + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strDefs = strDefs + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strDefs = strDefs + '&AutoID=' + varAutoID;
		strDefs = strDefs + '&LS=' + varLogStatus
		strDefs = strDefs + '&AM=' + varActiveMember
		//06dec 31
		strDefs = strDefs + '&Ds=' + varDiscountStatus;
		strDefs = strDefs + '&CI=' + varCountryID;
		strDefs = strDefs + '&AT=' + varAmount;
		strDefs = strDefs + '&Return=' + varReturnPage;
		
	}
	
	if (menuID == 'Feedback') {
		//if (varProfileNumber != "") {
			strFeedback = "feedback.htm";
		//}	
		strFeedback = strFeedback + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strFeedback = strFeedback + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strFeedback = strFeedback + '&AutoID=' + varAutoID;
		strFeedback = strFeedback + '&LS=' + varLogStatus
		strFeedback = strFeedback + '&AM=' + varActiveMember
		//06dec 31
		strFeedback = strFeedback + '&Ds=' + varDiscountStatus;
		strFeedback = strFeedback + '&CI=' + varCountryID;
		strFeedback = strFeedback + '&AT=' + varAmount;
		strFeedback = strFeedback + '&Return=' + varReturnPage;
		
	}
	
	if (menuID == 'Affiliate') {
		//if (varProfileNumber != "") {
			strAffiliate = "affiliate.htm";
		//}	
		strAffiliate = strAffiliate + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strAffiliate = strAffiliate + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strAffiliate = strAffiliate + '&AutoID=' + varAutoID;
		strAffiliate = strAffiliate + '&LS=' + varLogStatus
		strAffiliate = strAffiliate + '&AM=' + varActiveMember
		//06dec 31
		strAffiliate = strAffiliate + '&Ds=' + varDiscountStatus;
		strAffiliate = strAffiliate + '&CI=' + varCountryID;
		strAffiliate = strAffiliate + '&AT=' + varAmount;
		strAffiliate = strAffiliate + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Support') {
		//if (varProfileNumber != "") {
			strSupport = "https://secure.groundspring.org/dn/index.php?aid=22204"; //08jan 15"support.htm";
		//}	
		//08jan 15 strSupport = strSupport + '?ProfileNumber=' + varProfileNumber;
		//08jan 15
		strSupport = strSupport + '&ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strSupport = strSupport + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strSupport = strSupport + '&AutoID=' + varAutoID;
		strSupport = strSupport + '&LS=' + varLogStatus
		strSupport = strSupport + '&AM=' + varActiveMember
		//06dec 31
		strSupport = strSupport + '&Ds=' + varDiscountStatus;
		strSupport = strSupport + '&CI=' + varCountryID;
		strSupport = strSupport + '&AT=' + varAmount;
		strSupport = strSupport + '&Return=' + varReturnPage;
		
		//alert("strSupport=" + strSupport);
		
	}

	if (menuID == 'ContactUs') {
		//if (varProfileNumber != "") {
			strContactUs = "contactus.aspx";
		//}	
		strContactUs = strContactUs + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strContactUs = strContactUs + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strContactUs = strContactUs + '&AutoID=' + varAutoID;
		strContactUs = strContactUs + '&LS=' + varLogStatus
		strContactUs = strContactUs + '&AM=' + varActiveMember
		//06dec 31
		strContactUs = strContactUs + '&Ds=' + varDiscountStatus;
		strContactUs = strContactUs + '&CI=' + varCountryID;
		strContactUs = strContactUs + '&AT=' + varAmount;
		strContactUs = strContactUs + '&Return=' + varReturnPage;
		
	}
    //06nov 08 start
	if (menuID == 'Profile') {
		//06dec 17 if (varProfileNumber != "") {
        if (varLogStatus == "Y") {
			strProfile = "profile.aspx";
		} else {
		    strProfile = "login.aspx";
		}
		//}	
		strProfile = strProfile + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strProfile = strProfile + '&UStatus=' + varUserStatus;

		//06nov 15 end
		
		//06dec 17
		strProfile = strProfile + '&AutoID=' + varAutoID;
		strProfile = strProfile + '&LS=' + varLogStatus
		strProfile = strProfile + '&AM=' + varActiveMember
		//06dec 31
		strProfile = strProfile + '&Ds=' + varDiscountStatus;
		strProfile = strProfile + '&CI=' + varCountryID;
		strProfile = strProfile + '&AT=' + varAmount;
		strProfile = strProfile + '&Return=' + varReturnPage;
		
	}
    //06nov 08 end
    
    //06dec 14
	if (menuID == 'Login') {
		strLogin = "login.aspx";
		strLogin = strLogin + '?ProfileNumber=' + varProfileNumber;
		strLogin = strLogin + '&UStatus=' + varUserStatus;
		//06dec 17
		strLogin = strLogin + '&AutoID=' + varAutoID;
		strLogin = strLogin + '&LS=' + varLogStatus
		strLogin = strLogin + '&AM=' + varActiveMember
		//06dec 31
		strLogin = strLogin + '&Ds=' + varDiscountStatus;
		strLogin = strLogin + '&CI=' + varCountryID;
		strLogin = strLogin + '&AT=' + varAmount;
		strLogin = strLogin + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Privacy') {
		//if (varProfileNumber != "") {
			strPrivacy = "privacy.htm";
		//}	
		strPrivacy = strPrivacy + '?ProfileNumber=' + varProfileNumber;
		strPrivacy = strPrivacy + '&UStatus=' + varUserStatus;
		//06dec 17
		strPrivacy = strPrivacy + '&AutoID=' + varAutoID;
		strPrivacy = strPrivacy + '&LS=' + varLogStatus
		strPrivacy = strPrivacy + '&AM=' + varActiveMember
		//06dec 31
		strPrivacy = strPrivacy + '&Ds=' + varDiscountStatus;
		strPrivacy = strPrivacy + '&CI=' + varCountryID;
		strPrivacy = strPrivacy + '&AT=' + varAmount;
		strPrivacy = strPrivacy + '&Return=' + varReturnPage;

	}
    
	if (menuID == 'Refund') {
		//if (varProfileNumber != "") {
			strRefund = "refund.htm";
		//}	
		strRefund = strRefund + '?ProfileNumber=' + varProfileNumber;
		strRefund = strRefund + '&UStatus=' + varUserStatus;
		//06dec 17
		strRefund = strRefund + '&AutoID=' + varAutoID;
		strRefund = strRefund + '&LS=' + varLogStatus
		strRefund = strRefund + '&AM=' + varActiveMember
		//06dec 31
		strRefund = strRefund + '&Ds=' + varDiscountStatus;
		strRefund = strRefund + '&CI=' + varCountryID;
		strRefund = strRefund + '&AT=' + varAmount;
        strRefund = strRefund + '&Return=' + varReturnPage;

	}

	if (menuID == 'YTIP') {
		//if (varProfileNumber != "") {
		//07mar 16 strYTIP = "ytip.htm";
        //07mar 16 start
		strYTIP = "ytip_TOC.htm";
		//09dec 20 if (varActiveMember == "Y") {
		//09dec 20
		if (varActiveMember == "YI" || varActiveMember == "YS") {
			strBibliographies = "ytip_TOC_member.htm";
		}	
        //07mar 16 end			
		//}	
		strYTIP = strYTIP + '?ProfileNumber=' + varProfileNumber;
		strYTIP = strYTIP + '&UStatus=' + varUserStatus;
		//06dec 17
		strYTIP = strYTIP + '&AutoID=' + varAutoID;
		strYTIP = strYTIP + '&LS=' + varLogStatus
		strYTIP = strYTIP + '&AM=' + varActiveMember
		//06dec 31
		strYTIP = strYTIP + '&Ds=' + varDiscountStatus;
		strYTIP = strYTIP + '&CI=' + varCountryID;
		strYTIP = strYTIP + '&AT=' + varAmount;
		strYTIP = strYTIP + '&Return=' + varReturnPage;

	}

	if (menuID == 'Legal') {
		//if (varProfileNumber != "") {
			strLegal = "legal.htm";
		//}	
		strLegal = strLegal + '?ProfileNumber=' + varProfileNumber;
		strLegal = strLegal + '&UStatus=' + varUserStatus;
		//06dec 17
		strLegal = strLegal + '&AutoID=' + varAutoID;
		strLegal = strLegal + '&LS=' + varLogStatus
		strLegal = strLegal + '&AM=' + varActiveMember
		//06dec 31
		strLegal = strLegal + '&Ds=' + varDiscountStatus;
		strLegal = strLegal + '&CI=' + varCountryID;
		strLegal = strLegal + '&AT=' + varAmount;
		strLegal = strLegal + '&Return=' + varReturnPage;
		
	}
	
	if (menuID == 'Sugerman') {
		//if (varProfileNumber != "") {
			strSugerman = "sugerman.htm";
		//}	
		strSugerman = strSugerman + '?ProfileNumber=' + varProfileNumber;
		strSugerman = strSugerman + '&UStatus=' + varUserStatus;
		//06dec 17
		strSugerman = strSugerman + '&AutoID=' + varAutoID;
		strSugerman = strSugerman + '&LS=' + varLogStatus
		strSugerman = strSugerman + '&AM=' + varActiveMember
		//06dec 31
		strSugerman = strSugerman + '&Ds=' + varDiscountStatus;
		strSugerman = strSugerman + '&CI=' + varCountryID;
		strSugerman = strSugerman + '&AT=' + varAmount;
		strSugerman = strSugerman + '&Return=' + varReturnPage;

	}
	
	if (menuID == 'Shah') {
		//if (varProfileNumber != "") {
			strShah = "shah.htm";
		//}	
		strShah = strShah + '?ProfileNumber=' + varProfileNumber;
		strShah = strShah + '&UStatus=' + varUserStatus;
		//06dec 17
		strShah = strShah + '&AutoID=' + varAutoID;
		strShah = strShah + '&LS=' + varLogStatus
		strShah = strShah + '&AM=' + varActiveMember
		//06dec 31
		strShah = strShah + '&Ds=' + varDiscountStatus;
		strShah = strShah + '&CI=' + varCountryID;
		strShah = strShah + '&AT=' + varAmount;
		strShah = strShah + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Hails') {
		//if (varProfileNumber != "") {
			strHails = "hails.htm";
		//}	
		strHails = strHails + '?ProfileNumber=' + varProfileNumber;
		strHails = strHails + '&UStatus=' + varUserStatus;
		//06dec 17
		strHails = strHails + '&AutoID=' + varAutoID;
		strHails = strHails + '&LS=' + varLogStatus
		strHails = strHails + '&AM=' + varActiveMember
		//06dec 31
		strHails = strHails + '&Ds=' + varDiscountStatus;
		strHails = strHails + '&CI=' + varCountryID;
		strHails = strHails + '&AT=' + varAmount;
		strHails = strHails + '&Return=' + varReturnPage;
		
	}

//06dec 15
	if (menuID == 'Payment') {
		//if (varProfileNumber != "") {
			strPayment = "payment.aspx";
		//}	
		strPayment = strPayment + '?AutoID=' + varAutoID;
		strPayment = strPayment + '&UStatus=' + varUserStatus;
		strPayment = strPayment + '&ProfileNumber=' + varProfileNumber;	
		//06dec 17
		strPayment = strPayment + '&LS=' + varLogStatus
		strPayment = strPayment + '&AM=' + varActiveMember
		//06dec 31
		strPayment = strPayment + '&Ds=' + varDiscountStatus;
		//for testing		alert("in getURL strPayment=" + strPayment)
		strPayment = strPayment + '&CI=' + varCountryID;
		strPayment = strPayment + '&AT=' + varAmount;
		strPayment = strPayment + '&Return=' + varReturnPage;
		
	}

	if (menuID == 'Logout') {
		strLogout = "logout.aspx";
		//07nov 28 start of disabled
		/*	
		strLogout = strLogout + '?AutoID=' + varAutoID;
		strLogout = strLogout + '&UStatus=' + varUserStatus;
		strLogout = strLogout + '&ProfileNumber=' + varProfileNumber;	
		//06dec 17
		strLogout = strLogout + '&LS=' + varLogStatus
		strLogout = strLogout + '&AM=' + varActiveMember
		//06dec 31
		strLogout = strLogout + '&Ds=' + varDiscountStatus;
		strLogout = strLogout + '&CI=' + varCountryID;
		strLogout = strLogout + '&AT=' + varAmount;
		strLogout = strLogout + '&Return=' + varReturnPage;
		end of disabled */
        //07nov 28 start
		strLogout = strLogout + '?AutoID=';
		strLogout = strLogout + '&UStatus=';
		strLogout = strLogout + '&ProfileNumber=';	
		//06dec 17
		strLogout = strLogout + '&LS=';
		strLogout = strLogout + '&AM=';
		//06dec 31
		strLogout = strLogout + '&Ds=';
		strLogout = strLogout + '&CI=';
		strLogout = strLogout + '&AT=';
		strLogout = strLogout + '&Return=' + varReturnPage;
        //07nov 28 end
	}

	if (menuID == 'Signup') {
		strSignup = "signup.aspx";
			
		strSignup = strSignup + '?AutoID=' + varAutoID;
		strSignup = strSignup + '&UStatus=' + varUserStatus;
		strSignup = strSignup + '&ProfileNumber=' + varProfileNumber;	
		//06dec 17
		strSignup = strSignup + '&LS=' + varLogStatus
		strSignup = strSignup + '&AM=' + varActiveMember
		//06dec 31
		strSignup = strSignup + '&Ds=' + varDiscountStatus;
		strSignup = strSignup + '&CI=' + varCountryID;
		strSignup = strSignup + '&AT=' + varAmount;
		strSignup = strSignup + '&Return=' + varReturnPage;

	}
	
//07sep 12 start
	if (menuID == 'MemberHomePage') {
		strMemberHomePage = "MemberHomePage.aspx";
			
		strMemberHomePage = strMemberHomePage + '?AutoID=' + varAutoID;
		strMemberHomePage = strMemberHomePage + '&UStatus=' + varUserStatus;
		strMemberHomePage = strMemberHomePage + '&ProfileNumber=' + varProfileNumber;	
		//06dec 17
		strMemberHomePage = strMemberHomePage + '&LS=' + varLogStatus
		strMemberHomePage = strMemberHomePage + '&AM=' + varActiveMember
		//06dec 31
		strMemberHomePage = strMemberHomePage + '&Ds=' + varDiscountStatus;
		strMemberHomePage = strMemberHomePage + '&CI=' + varCountryID;
		strMemberHomePage = strMemberHomePage + '&AT=' + varAmount;
		strMemberHomePage = strMemberHomePage + '&Return=' + varReturnPage;

	}
//07sep 12 end

	if (menuID == 'RestOfURL') {
		strRestOfURL = "";
			
		strRestOfURL = strRestOfURL + '?AutoID=' + varAutoID;
		strRestOfURL = strRestOfURL + '&UStatus=' + varUserStatus;
		strRestOfURL = strRestOfURL + '&ProfileNumber=' + varProfileNumber;	
		//06dec 17
		strRestOfURL = strRestOfURL + '&LS=' + varLogStatus
		strRestOfURL = strRestOfURL + '&AM=' + varActiveMember
		//06dec 31
		strRestOfURL = strRestOfURL + '&Ds=' + varDiscountStatus;
		strRestOfURL = strRestOfURL + '&CI=' + varCountryID;
		strRestOfURL = strRestOfURL + '&AT=' + varAmount;
		strRestOfURL = strRestOfURL + '&Return=' + varReturnPage;
		

	}
    //alert("strRestOfURL=" + strRestOfURL);
    
	//07jun 13 start
	if (menuID == 'Collaborate') {
		//if (varProfileNumber != "") {
			strCollaborate = "collaborate.htm";
		//}	
		strCollaborate = strCollaborate + '?ProfileNumber=' + varProfileNumber;
		//06nov 15 start
		strCollaborate = strCollaborate + '&UStatus=' + varUserStatus;
		//06nov 15 end
		//06dec 17
		strCollaborate = strCollaborate + '&AutoID=' + varAutoID;
		strCollaborate = strCollaborate + '&LS=' + varLogStatus
		strCollaborate = strCollaborate + '&AM=' + varActiveMember
		//06dec 31
		strCollaborate = strCollaborate + '&Ds=' + varDiscountStatus;
		strCollaborate = strCollaborate + '&CI=' + varCountryID;
		strCollaborate = strCollaborate + '&AT=' + varAmount;
		strCollaborate = strCollaborate + '&Return=' + varReturnPage;
		
		
	}
	//07jun 13 end
    //09jun 08 start
		strJournals = "journals_vx2.htm";
		strJournals = strJournals + '?ProfileNumber=' + varProfileNumber;
		strJournals = strJournals + '&UStatus=' + varUserStatus;
		strJournals = strJournals + '&AutoID=' + varAutoID;
		strJournals = strJournals + '&LS=' + varLogStatus
		strJournals = strJournals + '&AM=' + varActiveMember
		strJournals = strJournals + '&Ds=' + varDiscountStatus;
		strJournals = strJournals + '&CI=' + varCountryID;
		strJournals = strJournals + '&AT=' + varAmount;
		strJournals = strJournals + '&Return=' + varReturnPage;
    //09jun 08 end
}

function getLink(menuID)
{
	
	if (varProfileNumber == "No Value"  ) {
		varProfileNumber = "";
	}

	if (varProfileNumber == undefined  ) {
		varProfileNumber = "";
	}

	//alert("in getURLa varProfileNumber=" + varProfileNumber + "," );
	

	if (menuID == 'Home_Log') {
		if (varProfileNumber != "") {
			strHome_Log = "logout.aspx";
		} else {
			strHome_Log = "login.aspx";
		}	
	}
}