function showLink(strTargetHREF, strTargetDOC, strMonthName) {
//This function turns a link on or off
//strTargetHREF - that HTML element to the function will rewrite
//strTargetDOC - the DOC, or whatever, that will popup in the window onClick
//strMonthName
//blnIsLink - a boolean to tell the function to run or not
	//This will skip any filename with 'empty' in it.
	if (strTargetDOC.indexOf('empty') < 0) {
		objLink = eval('document.all.' + strTargetHREF);
		//alert(strTargetHREF);
		objLink.innerHTML = '<a href=\"#' + strTargetHREF + '\" onClick=\"openNewBrowser(\'' + strTargetDOC + '\')\">' + strMonthName + '</a>';
		//alert(objLink.innerHTML);
	} else {
		//do nothing
	}
	
}

var aryMonthNames = new Array(10);

aryMonthNames[0] = 'September';
aryMonthNames[1] = 'October';
aryMonthNames[2] = 'November';
aryMonthNames[3] = 'December';
aryMonthNames[4] = 'January';
aryMonthNames[5] = 'February';
aryMonthNames[6] = 'March';
aryMonthNames[7] = 'April';
aryMonthNames[8] = 'May';
aryMonthNames[9] = 'June';

function showSchoolNewletterLinkList() {
	
	var strDirPath = 'Postings/School_NL/';
	var strHREFTargetName = 'Newsletters';

	strDisplay = 'showSchoolNewletterLinkList: \n';
	for (var intLoopCounter = 0; intLoopCounter < 10; intLoopCounter++) {

		strDisplay = strDisplay + '\nintLoopCounter =' + intLoopCounter;

		strLinkName = aryMonthNames[intLoopCounter] + strHREFTargetName;

		strTargetFileName = aryTarget_SNL[intLoopCounter].replace(' ', '%20')
		strTargetFileName = strTargetFileName.toLowerCase();

		showLink(strLinkName, strDirPath + strTargetFileName, aryMonthNames[intLoopCounter])
		
		//strDisplay = strDisplay + '\nstrDirPath =' + strDirPath;
		strDisplay = strDisplay + '\nstrTargetFileName =' + strTargetFileName;
		strDisplay = strDisplay + '\naryMonthNames[intLoopCounter] =' + aryMonthNames[intLoopCounter];
		strDisplay = strDisplay + '\nstrLinkName =' + strLinkName;

	}
	//remove the backslashes from the line below to see live debuging info
	//alert(strDisplay);

}

function showCouncilCalendarLinkList() {
	
	var strDirPath = 'Postings/Council_calenders/';
	var strHREFTargetName = 'Calendar';

	strDisplay = 'showCouncilCalendarLinkList: \n';
	for (var intLoopCounter = 0; intLoopCounter < 10; intLoopCounter++) {

		strDisplay = strDisplay + '\nintLoopCounter =' + intLoopCounter;

		strLinkName = aryMonthNames[intLoopCounter] + strHREFTargetName;

		strTargetFileName = aryTarget_CC[intLoopCounter].replace(' ', '%20')
		strTargetFileName = strTargetFileName.toLowerCase();

		showLink(strLinkName, strDirPath + strTargetFileName, aryMonthNames[intLoopCounter])
		
		strDisplay = strDisplay + '\nstrTargetFileName =' + strTargetFileName;
		strDisplay = strDisplay + '\naryMonthNames[intLoopCounter] =' + aryMonthNames[intLoopCounter];
		strDisplay = strDisplay + '\nstrLinkName =' + strLinkName;

	}
	//remove the backslashes from the line below to see live debuging info
	//alert(strDisplay);

}

function showCouncilLinkList() {
	var strDirPath = 'Postings/Council _NL/';
	var strHREFTargetName = 'CouncilNews';

	strDisplay = 'showLinkList 1: \n';
	for (var intLoopCounter = 0; intLoopCounter < 10; intLoopCounter++) {

		strDisplay = strDisplay + '\nintLoopCounter =' + intLoopCounter;

		strLinkName = aryMonthNames[intLoopCounter] + strHREFTargetName;

		strTargetFileName = aryTarget_CNL[intLoopCounter].replace(' ', '%20')

		showLink(strLinkName, strDirPath + strTargetFileName, aryMonthNames[intLoopCounter])
		strTargetFileName = strTargetFileName.toLowerCase();
		
		strDisplay = strDisplay + '\nstrTargetFileName =' + strTargetFileName;
		strDisplay = strDisplay + '\naryMonthNames[intLoopCounter] =' + aryMonthNames[intLoopCounter];
		strDisplay = strDisplay + '\nstrLinkName =' + strLinkName;

	}
	//remove the backslashes from the line below to see live debuging info
	//alert(strDisplay);
	
	var strDirPath = 'Postings/Council_minutes/';
	var strHREFTargetName = 'CouncilMinutes';
	
	strDisplay = 'showLinkList 2: \n';
	for (var intLoopCounter = 0; intLoopCounter < 10; intLoopCounter++) {

		strDisplay = strDisplay + '\nintLoopCounter =' + intLoopCounter;

		strLinkName = aryMonthNames[intLoopCounter] + strHREFTargetName;

		// clean spaces up to eliminate an IE bug
		strTargetFileName = aryTarget_CM[intLoopCounter].replace(' ', '%20')
		strTargetFileName = strTargetFileName.toLowerCase();

		showLink(strLinkName, strDirPath + strTargetFileName, aryMonthNames[intLoopCounter])
		
		strDisplay = strDisplay + '\nstrTargetFileName =' + strTargetFileName;
		strDisplay = strDisplay + '\naryMonthNames[intLoopCounter] =' + aryMonthNames[intLoopCounter];
		strDisplay = strDisplay + '\nstrLinkName =' + strLinkName;

	}
	//remove the backslashes from the line below to see live debuging info
	//alert(strDisplay);

	var strDirPath = 'Postings/Council_agendas/';
	var strHREFTargetName = 'Agenda';
	
	strDisplay = 'showLinkList 3: \n';
	for (var intLoopCounter = 0; intLoopCounter < 10; intLoopCounter++) {

		strDisplay = strDisplay + '\nintLoopCounter =' + intLoopCounter;

		strLinkName = aryMonthNames[intLoopCounter] + strHREFTargetName;

		// clean spaces up to eliminate an IE bug
		strTargetFileName = aryTarget_CA[intLoopCounter].replace(' ', '%20')
		strTargetFileName = strTargetFileName.toLowerCase();

		showLink(strLinkName, strDirPath + strTargetFileName, aryMonthNames[intLoopCounter])
		
		strDisplay = strDisplay + '\nstrTargetFileName =' + strTargetFileName;
		strDisplay = strDisplay + '\naryMonthNames[intLoopCounter] =' + aryMonthNames[intLoopCounter];
		strDisplay = strDisplay + '\nstrLinkName =' + strLinkName;

	}
	//remove the backslashes from the line below to see live debuging info
	//alert(strDisplay);
}

