function openEHC(){
   var as = associationName.toUpperCase();
   var lang = "";     

   if (as.substring(0,2) == "F_"){
       as = as.substring(2, as.length);
       lang = "&lang=F";
   }

   //--DEV: this portion only used in DEV environment before real site deactivated. In DEV, assoCodes have a '2' at the end to 
   //--     represent the version (i.e. UT2, CO2, F_SA2, etc). Strip this ver # out to get proper alumni assoCode and open 
   //--     UAT version of Health & Dental site instead.
   //-- ------------------------------------------------------------------------------------------------------------------------
   var verDEV = false;
   if (as.substring(as.length-1)=="2"){;
       as = as.substring(0,as.length-1);
       //verDEV = true;
   }
   //-- end of DEV -------------------------------------------------------------------------------------------------------------

   if (verDEV==true){
      //-- uat link....
      //-- old landing page --> var sURL = "http://www.dev.memberhealthplan.com/ga/ins_intro.jsp?assocId=" + as + lang;
      var sURL = "http://www.dev.memberhealthplan.com/ga/prov_select.jsp?assocId=" + as + lang;
      
   } else {
      //-- production link....
      //---- old landing page --> var sURL = "http://www.memberhealthplan.com/ga/ins_intro.jsp?assocId=" + as + lang;
      var sURL = "http://www.memberhealthplan.com/ga/prov_select.jsp?assocId=" + as + lang;
   }

   openWindow( sURL, 0, 0, "", true);
}


function alumni_salutation(){

   var as = associationName.toUpperCase();
   var pageLang = getPageInfo("lang");     

   //--DEV: this portion only used in DEV environment before real site deactivated. In DEV, assoCodes have a '2' at the end to 
   //--     represent the version (i.e. UT2, CO2, F_SA2, etc). Strip this ver # out to get proper alumni assoCode.
   //-- ------------------------------------------------------------------------------------------------------------------------
   if (as.substring(as.length-1)=="2"){;
       as = as.substring(0,as.length-1);
   }
   //-- end of DEV -------------------------------------------------------------------------------------------------------------

   switch (as){
	//--- English schools....
   	case "AC":
   		assoName = "Acadia University";
   		break;
   	case "AD":
   		assoName = "University of Montreal";
   		break;

   	case "ADDUS":
   		assoName = "University of Sherbrooke";
   		break;
   	case "ALGONQUINC":
   		assoName = "Algonquin College";
   		break;
   	case "BC":
   		assoName = "University of British Columbia";
   		break;
   	case "CC":
   		assoName = "Confederation College";
   		break;
   	case "CO":
   		assoName = "Concordia University";
   		break;
   	case "CU":
   		assoName = "Carleton University";
   		break;
   	case "DA":
   		assoName = "Dalhousie University";
   		break;
   	case "DC":
   		assoName = "Durham College";
   		break;
   	case "GM":
   		assoName = "Grant MacEwan University";
   		break;
   	case "HE":
   		assoName = "HEC MontrĂ©al";
   		break;
   	case "LA":
   		assoName = "Wilfrid Laurier University";
   		break;
   	case "LV":
   		assoName = "<br>University of Laval";
   		break;
   	case "MC":
   		assoName = "McMaster University";
   		break;
   	case "MG":
   		assoName = "McGill University";
   		break;
   	case "MTA":
   		assoName = "Mount Allison University";
   		break;
   	case "NB":
   		assoName = "University of New Brunswick";
   		break;
   	case "QU":
   		assoName = "Queen's University";
   		break;
   	case "RY":
   		assoName = "Ryerson University";
   		break;
   	case "SA":
   		assoName = "SAIT";
   		break;
   	case "SE":
   		assoName = "Seneca College";
   		break;
   	case "SF":
   		assoName = "St. Francis Xavier University";
   		break;
   	case "STMC":
   		assoName = "Saint Marys University";
   		break;
   	case "SFU":
   		assoName = "Simon Fraser University";
   		break;
   	case "UG":
   		assoName = "University of Guelph";
   		break;
   	case "UT":
   		assoName = "University of Toronto";
   		break;
   	case "UW":
   		assoName = "University of Waterloo";
   		break;
   	case "WE":
   		assoName = "Western University";
   		break;
   	case "WI":
   		assoName = "University of Windsor";
   		break;
   	case "UWINNIPEG":
   		assoName = "University of Winnipeg";
   		break;
   	case "UQ":
   		assoName = "UQAM";
   		break;
   	case "YK":
   		assoName = "York University";
   		break;

	//--- French schools....
   	case "F_AC":
   		assoName = "de<br>l&#39Universit&eacute Acadia";
   		break;
   	case "F_AD":
   		assoName = "de<br>l&#39Universit&eacute de Montr&eacuteal";
   		break;
   	case "F_ADDUS":
   		assoName = "de<br>l&#39Universit&eacute de Sherbrooke";
   		break;
   	case "F_ALGONQUINC":
   		assoName = "du<br>Coll&egravege Algonquin";
   		break;
   	case "F_BC":
   		assoName = "de<br>l&#39Universit&eacute de la Colombie-Britannique ";
   		break;
   	case "F_CC":
   		assoName = "de<br>Confederation College";
   		break;
   	case "F_CO":
   		assoName = "de<br>l&#39Universit&eacute Concordia";
   		break;
   	case "F_CU":
   		assoName = "de<br>l&#39Universit&eacute Carleton";
   		break;
   	case "F_DA":
   		assoName = "de<br>l&#39Universit&eacute Dalhousie";
   		break;
   	case "F_DC":
   		assoName = "du<br>Coll&egravege Durham";
   		break;
   	case "F_GM":
   		assoName = "de<br>l&#39Universit&eacute Grant MacEwan";
   		break;
   	case "F_HE":
   		assoName = "du<br>R&eacuteseau HEC Montr&eacuteal";
   		break;
   	case "F_LA":
   		assoName = "de<br>l&#39Universit&eacute Wilfrid Laurier";
   		break;
   	case "F_LV":
   		assoName = "de<br>l&#39Universit&eacute Laval";
   		break;
   	case "F_MC":
   		assoName = "de<br>l&#39Universit&eacute McMaster";
   		break;
   	case "F_MG":
   		assoName = "de<br>l&#39Universit&eacute McGill";
   		break;
   	case "F_MTA":
   		assoName = "de<br>l&#39Universit&eacute Mount Allison";
   		break;
   	case "F_NB":
   		assoName = "de<br>l&#39Universit&eacute du Nouveau-Brunswick";
   		break;
   	case "F_QU":
   		assoName = "de<br>l&#39Universit&eacute Queen's";
   		break;
   	case "F_RY":
   		assoName = "de<br>l&#39Universit&eacute Ryerson ";
   		break;
   	case "F_SA":
   		assoName = "de<br>Southern Alberta Institute of Technology (SAIT)";
   		break;
   	case "F_SE":
   		assoName = "du<br>Coll&egravege Seneca";
   		break;
   	case "F_SF":
   		assoName = "de<br>l&#39Universit&eacute St. Francis Xavier ";
   		break;
   	case "F_STMC":
   		assoName = "de<br>l&#39Universit&eacute Saint Mary's";
   		break;
   	case "F_SFU":
   		assoName = "de<br>l&#39Universit&eacute Simon Fraser";
   		break;
   	case "F_UG":
   		assoName = "de<br>l&#39Universit&eacute de Guelph";
   		break;
   	case "F_UT":
   		assoName = "de<br>l&#39Universit&eacute de Toronto";
   		break;
   	case "F_UW":
   		assoName = "de<br>l&#39Universit&eacute de Waterloo";
   		break;
   	case "F_WE":
   		assoName = "de<br>l&#39Universit&eacute de Western Ontario";
   		break;
   	case "F_WI":
   		assoName = "de<br>l&#39Universit&eacute de Windsor";
   		break;
   	case "F_YK":
   		assoName = "de<br>l&#39Universit&eacute York";
   		break;
   	case "F_UQ":
   		assoName = "de<br>l&#39Universit&eacute du Qu&eacutebec à Montr&eacuteal";
   		break;
   	case "F_UWINNIPEG":
   		assoName = "de<br>l&#39Universit&eacute de Winnipeg";
   		break;
   	default:
   		assoName = "< Undefined >";
   		break
   }

   document.write( assoName );
}

function alumni_openMsgFromSchool(){
   var as = associationName.toUpperCase();
   var pageLang = getPageInfo("lang");     
    
    //--DEV: this portion only used in DEV environment before real site deactivated. In DEV, assoCodes have a '2' at the end to 
    //--     represent the version (i.e. UT2, CO2, F_SA2, etc). Strip this ver # out to get proper alumni assoCode.
    //-- ------------------------------------------------------------------------------------------------------------------------
    if (as.substring(as.length-1)=="2"){;
        as = as.substring(0,as.length-1);
    }
    //-- end of DEV -------------------------------------------------------------------------------------------------------------

    if (pageLang=="F"){
    	//- The asso code stored on the image filename and the format used for the URL are different (co-f; co--f; f_co, etc)
    	//- remove the "F_" from the assoname so it will match the format used by the image file.
    	if (as.substring(0,2) == "F_"){
    	    as = as.substring(2, as.length);
    	}
    	var fileName = "<IMG SRC='../LookupFiles/alumni.letter.<asso>--f/$File/alumni_letter_<asso>-f.gif' ALT='Message from your school' BORDER=0>";
//	var fileName = "../LookupFiles/alumni.letter.<asso>--f/$File/alumni_letter_<asso>-f.gif";
    } else {
    	
        //var fileName = "../LookupFiles/alumni.letter.<asso>/$File/alumni_letter_<asso>.gif";
        var fileName = "<IMG SRC='../LookupFiles/alumni.letter.<asso>/$File/alumni_letter_<asso>.gif' ALT='Message from your school' BORDER=0>";
    }
	
    // Replace the <asso> placeholder with the proper AssociationID....
    fileName = fileName.replace(/<asso>/g, as);
    document.write( fileName );
}


function open_TermLifePDFApp(obj){
//-- There are 6 different versions of the Term Life PDF app that are available, categorized by Group/Individual and the Anniversary
//-- month.  Based on the school, determine the correct 

    var baseURL = "../LookupFiles/DownloadableFilealumni.tl.app_<GROUP_TYPE>_<ANN_MONTH><LANG_LKUP_ID>/$File/alumni_tl_app_<GROUP_TYPE>_<ANN_MONTH><LANG_FILE_ID>.pdf";
    var lang_lkupID = "";
    var lang_fileID = "";
    
    var pdfTitle ="PDF Application: Term Life";
    var pdfTitleLang = "";
    
    var as = associationName.toUpperCase();
    var pageLang = getPageInfo("lang");     
   
    
    //--DEV: this portion only used in DEV environment before real site deactivated. In DEV, assoCodes have a '2' at the end to 
    //--     represent the version (i.e. UT2, CO2, F_SA2, etc). Strip this ver # out to get proper alumni assoCode.
    //-- ------------------------------------------------------------------------------------------------------------------------
    if (as.substring(as.length-1)=="2"){;
        as = as.substring(0,as.length-1);
    }
    //-- end of DEV -------------------------------------------------------------------------------------------------------------



    //-- Strip out the "F_" if this is a french association, as we only need the main association code when determing which PDF
    //-- application to open.
    //-- ------------------------------------------------------------------------------------------------------------------------
    if (as.substring(0,2)=="F_"){;
        as = as.substring(2);
    }
    check_as = "[" + as + "]";
    
    //-- The following is a list of schools broken down by Insurance Type (Group/Individual) and Anniversary Month. Use this to 
    //-- determine the proper PDF to load for the current school...
    //-- ------------------------------------------------------------------------------------------------------------------------
    var list_grp_dec = "[ALGONQUINC]:[CU]:[DA]:[DC]:[RY]:[SFU]:[YK]";
    var list_grp_mar = "[MG]";
    var list_grp_oct = "[AC]:[BC]:[CC]:[CO]:[GM]:[MTA]:[SF]:[SA]:[UWINNIPEG]:[HE]:[UQ]:[AD]:[ADDUS]:[LV]";
    var list_indv_dec = "[LA]:[NB]:[UG]:[UT]:[UW]:[WE]:[WI]";
    var list_indv_mar = "[SE]:[STMC]";
    var list_indv_oct = "[MC]:[QU]";

    var insType = "";
    var annMonth = "";

    //- Check for MARCH Anniversary.....    
    if (list_grp_mar.indexOf(check_as)>-1){
        insType="grp";
        annMonth = "mar";
    } else if (list_indv_mar.indexOf(check_as)>-1){
        insType="indv"
        annMonth = "mar";
    }

    
    //- If not found, check for OCTOBER Anniversary.....    
    if (insType==""){
    	if (list_grp_oct.indexOf(check_as)>-1){
            insType="grp";
            annMonth = "oct";
        } else if (list_indv_oct.indexOf(check_as)>-1){
            insType="indv"
            annMonth = "oct";
        }
    }


    //- Finally, if no found check for DECEMBER Anniversary.....    
    if (insType==""){
    	if (list_grp_dec.indexOf(check_as)>-1){
            insType="grp";
            annMonth = "dec";
    	} else if (list_indv_dec.indexOf(check_as)>-1){
            insType="indv"
            annMonth = "dec";
    	}
    }

    if (insType==""){
        alert( "Unable to load PDF application. Inform System Administrator of problem.");
        return;
        
    }


    //-- Using the parameters we evaluated from above, build the URL for the proper PDF file.
    //-- ------------------------------------------------------------------------------------------------------------------------
    if (pageLang=="F"){
    	lang_lkupID = "--f";
    	lang_fileID = "-f";
    	pdfTitleLang = " (French)"
    }
    
    pdfURL = baseURL.replace(/<GROUP_TYPE>/g, insType);
    pdfURL = pdfURL.replace(/<ANN_MONTH>/g, annMonth);
    pdfURL = pdfURL.replace(/<LANG_LKUP_ID>/g, lang_lkupID);
    pdfURL = pdfURL.replace(/<LANG_FILE_ID>/g, lang_fileID);

    //-- Finally, the PDF must be flagged in Omniture as a Download Link. Build the final pieces needed here and call the 
    //-- Omniture flag function which will updated the Download Link report and open the PDF in a seperate window.
    //-- ------------------------------------------------------------------------------------------------------------------------
    if (insType=="grp"){
    	pdfTitle = pdfTitle + " - GROUP";
    } else {
    	pdfTitle = pdfTitle + " - INDIVIDUAL";
    }
    pdfTitle = pdfTitle + " - " + annMonth.toUpperCase() + pdfTitleLang;
    
    omniture_openDownloadLink(obj, pdfTitle, pdfURL,640,600)
}