// these variables calculate the current and next year values and convert them to strings and pulls the 2 digit year for filename.
	
	var currYear = ad[0].getFullYear(); 
	var nextYear = ad[0].getFullYear()+1;
	var cyString = currYear + ' ';	
	var nyString = nextYear + ' '; 
	var fcy = cyString.charAt(2) + cyString.charAt(3);	 
	var fny = nyString.charAt(2) + nyString.charAt(3);	 

// This array provides the Month name for the calendar headers.		

	var MM = new Array();
		MM[0]= "January";
		MM[1]= "February";
		MM[2]= "March";
		MM[3]= "April";
		MM[4]= "May";
		MM[5]= "June";
		MM[6]= "July";
		MM[7]= "August";
		MM[8]= "September";
		MM[9]= "October";
		MM[10]= "November";
		MM[11]= "December";
		MM[12]= "January";
		MM[13]= "February";
		MM[14]= "March";
		

/* 	This function calculates the appropriate date for each week based on the inc and val variables. 
	The inc variable represents the positon of the original ad array establishing dates
	The val varialble represents the increment of 7 days added to alter the week of the month.	
*/
	
	function marker(inc, val){
		wk = ad[inc].getDate()+ val;	
		name = MM[inc];
		month = ad[inc].getMonth()+1;
	}
	
function filename(){
		
		if (wk <10) {
		      wk="0"+ wk;}
		      									
		if (month < 10){
		       month="0"+month;} 
		      else {
		      month = month+' ';}
		
		return (month.charAt(0)+month.charAt(1) + wk +'.htm');
	}

