	thisMonth = 0;
	meetDayThisMonth = 0;
	deadline = 0;
	checkbackdaybegin = 0;
	checkbackdayend = 0;
	checkbackmonthend = 0;

function myClick3(num,from_page) {
	para = "<p style='font-size: 10pt; margin-top: 1; margin-bottom: 1; margin-left: 6'>";
	heading1 = "";
	heading2 = "";
	heading3 = "";
	heading4 = "";

	//don't want any formatting in the meetings page
	if (from_page == "meeting"){
		para = "";	
		heading1 = "<font size='2' color='#000000'><b>ADMINISTRATION</b></font><br>";
		heading2 = "<font size='2' color='#000000'><b>MORE INFORMATION</b></font><br>";
		heading3 = "<font size='2' color='#000000'><b>MEETING PURPOSE</b></font><br>";
		heading4 = "<font size='2' color='#000000'><b>BOARD MEMBERS</b></font><br>";
	}
	
	if (num == 1){
		heading = "Planning Commission";
		member = para + heading4 + "Comprised of 5 members, appointed by Board of Supervisors.<br><br>Dennis Hollarn<br>Karen Bugaj<br>Charles Peters<br>Louis Sherwood<br>Gary Faulhaber";		
		about = para + heading3 + "Makes recommendations to the Board of Supervisors concerning the following:<ul style=\"margin:0 0 0 20; list-style-type:disc; list-style-position:outside;\"><li>Prepare a comprehensive plan.<li>Prepare a Zoning Ordinance or amendment.<li>Prepare a subdivision & land development ordinance and review applications that are subject to it<li>Review conditional  use request.<li>Any other study as directed by the Board of Supervisors.";
		info = para + heading1 + "<a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/dean.htm\">Dean Pepicello</a> - Zoning / Planning Supervisor<br><a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/zoning.shtml\">Rick Hall</a> - Zoning / Planning Administrator<br><br>Visit our <a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/zoning.shtml\">Zoning &amp Planning Administration</a> page.";
	}
	else if (num == 2){
		heading = "Erie Water Authority";
		member = para + heading4 + "Bryan Fife";
		about = para + heading3 + "The Erie Water Authority operates with its own Board of Directors and employees whose function is to administer the Sanitary Sewer Collection System within Harborcreek Township. Their major responsibilities include long and short range planning, establishing policy, setting rates, and exercising general oversight of all sanitary sewer matters.";
		info = para + heading1 + "";
	}
	else if (num == 3){
		heading = "Parks Commission";
		member = para + heading4 + "The Parks & Recreation Board is comprised of 7 voting members, all of whom serve as volunteers, appointed by the Board of Supervisors. Board members serve 5-year terms.<br><br>Richard Kelley<br>C. Frank Battaglia<br>Claudette K. Terrill<br>Richard Holmes<br>Sheila Sterrett<br>Patrick Cagnoli<br>Thomas Palisin";
		about = para + heading3 + "Monthly meeting are held to recommend policy to the Board of Supervisors on matters pertaining to acquisition, development, management, maintennace, and use of parks and recreation facilities, with the goal to enhance the quality of life for the residents of the township";
		info = para + heading1 + "<a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/joe.htm\">Joseph D. Peck</a> - Parks Supervisor<br><a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/parks.htm\">Connie Cruz</a> - Parks Coordinator<br><br>Visit our <a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/parks.htm\">Parks</a> page.";
	}
	else if (num == 4){
		heading = "Water Authority";
		member = para + heading4 + "Harry Mooradian<br>David J. Maille<br>Dr. Robert Mulvin<br>Frank Gerlach";
		about = para + heading3 + "The Water Authority assists in planning and implementation of public water service extensions and serves as advisory capacity. They also provide residents with a forum to discuss area needs and future projects.";
		info = para + heading1 + "<a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/dean.htm\">Dean Pepicello</a><br><br>Visit our <a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/water.htm\">Water Department</a> page.";
	}
	else if (num == 5){
		heading = "Zoning Hearing Board";
		member = para + heading4 + "Comprised of three members and one alternate member, each appointed by the Board of Supervisors to serve a three year term. Current members are:<br><br>Virginia McGarvey<br>Brian Marshall<br>Roger Gregorich<br>W. Richard Fry - Alternate<br>";
		about = para + heading3 + "Hearings are conducted monthly, as needed, to consider applications received for variances or special exceptions to the Zoning Ordinance and deciding whether there is a legitimate reason for granting relief to a specific provision or provisions of the Ordinance when requested. The Board may grant a variance provided that all of the findings as listed within the PMPC, Section 910.2 are found to be relevant in the given case.";
		info = para + heading1 + "<a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/dean.htm\">Dean Pepicello</a> - Zoning / Planning Supervisor<br><a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/zoning.shtml\">Rick Hall</a> - Zoning / Planning Administrator<br><br>Visit our <a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/zoning.shtml\">Zoning &amp Planning Administration</a> page.";
		why = "No appeals have been filed, therefore, the next scheduled meeting date will not be necessary.";
		toBEdetermined = "We are in the time period between the last scheduled meeting, " + thisMonth + "/" + meetDayThisMonth + "/" + new Date().getFullYear() +", and the week following the deadline for application for the next scheduled meeting, " + thisMonth + "/" + deadline + "/" + new Date().getFullYear() +". Check back here between " + thisMonth + "/" + deadline + "/" + new Date().getFullYear() +" - " + checkbackmonthend + "/" + checkbackdayend + "/" + new Date().getFullYear() + " for meeting status.";
	}
	else if (num == 6){
		heading = "Agricultural Security Committee";
		member = para + heading4 + "Dean S. Pepicello<br>Robert Finnell<br>David Snow<br>John Moorhead";
		about = para + heading3 + "No info Listed";
		info = para + heading1 + "";
	}
	else if (num == 7){
		heading = "Board of Auditors";
		member = para + heading4 + "Curtis Smith<br>Robert Beaumont<br>Lynda Meyer";
		about = para + heading3 + "No info Listed";
		info = para + heading1 + "";
	}
	else if (num == 8){
		heading = "East Erie Suburban Recreation & Conservation Authority";
		member = para + heading4 + "Michael N. Barko<br>Connie Cruz<br>Stephen Hanks";
		about = para + heading3 + "No info Listed";
		info = para + heading1 + "";
	}
	else if (num == 9){
		heading = "Emergency Management Coordinator";
		member = para + heading4 + "Brian Benovic";
		about = para + heading3 + "No info Listed";
		info = para + heading1 + "";
	}
	else if (num == 10){
		heading = "Appeals Board for the UCC";
		member = para + heading4 + "Adam Trott<br>Kevin Yurkovic";
		about = para + heading3 + "No info Listed";
		info = para + heading1 + "";
	}
	else if (num == 11){
		heading = "Sewer Authority";
		member = para + heading4 + "The Sewer Authority board members are non-compensated volunteers appointed by the Board of Supervisors to five-year terms. Current board members are:<br><br>Kenneth Sidun<br>Jerry Cass<br>John Blose<br>Dennis Bort<br>Arthur Delano";
		about = para + heading3 + "Monthly meetings are held to conduct the Authority's business as well as to plan future capital improvements, system upgrades, receive public input and to ensure that all federal (U.S. EPA) and state (PA. DEP) clean water regulations are met.";
		info = para + heading1 + "Brian McNamara - Manager<br>Ann Brkic - Office Secretary<br>Michael Juliano - Maintenance Chief<br>Dominick Benson - Maintenance Technician<br><br>Email: htsa@verizon.net<br>Office Hours: Mon-Fri, 8am to noon & 1pm to 5pm<br>Phone: (814) 899-9191<br><br>" + heading2 + "The Sewer Authority was formed in 1970 to construct, oversee and operate the public sewer system within the township.  As an operating authority its O&M Budget is self-funded by user fees and receives no funding from the township government. It is comprised of 12 sewage pump stations and over 65 miles of collector sewers. It is a 24hr/7day/365days a year continuous operation. Sewage treatment is provided by the City of Erie Regional Wastewater facility.<br><br>As of January 1, 2007 there are 3,717 customers of whom 171 are commercial or industrial.  Since its inception, it has tripled in the number of customers and facilities it services.";
	}	
	else if (num == 12){
		heading = "Solicitors";
		member = para + heading4 + "Robert C. Ward<br>Raymond Pagliari<br>Evan E. Adair<br>Richard Perhacs";
		about = para + heading3 + "No info Listed";
		info = para + heading1 + "";
	}
	else if (num == 13){
		heading = "Vacancy Board";
		member = para + heading4 + "Mark Corey";
		about = para + heading3 + "No info Listed";
		info = para + heading1 + "";
	}
	else if (num == 14){
		heading = "Supervisors Meeting";		
		member = para + heading4 + "<a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/tim.htm\">Timothy May</a><br><a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/joe.htm\">Joseph Peck</a><br><a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/dean.htm\">Dean Pepicello</a>";
		about = para + heading3 + "Supervisors are charged with the general governance of the township and the execution of legislative, executive, and administrative powers in order to ensure sound fiscal management and to secure the health, safety, and welfare of the citizens of the township.";
		info = para + heading1 + "Visit our <a class=\"site\" target=\"_blank\" href=\"http://www.harborcreektownship.org/administration.htm\">Township Administration</a> page.";
	}
	
	
	if (from_page == "meeting"){			

		var isIE = (navigator.appName == "Microsoft Internet Explorer") ? true: false;
		var isKo = (navigator.appName == "Konqueror") ? true: false;
		var isOp = (navigator.appName == "Opera") ? true: false;
		var tableWdt = 0;
		
		var w = document.getElementById(this.winname);		
		
		if (w.style.visibility != "visible") {
			if (this.posLeft == -1 && this.posTop == -1) { this.getXY(); }
			var clX = this.posLeft;
			var clY = this.posTop;
			
			//determine which window is being called to adjust the postion on the page
			if (this.winname.indexOf("members")!=-1) {
				if (isIE || isKo) {
					w.style.posLeft = clX-8; //DONE				
					w.style.posTop = clY-93; //DONE
					w.style.height = 142 + "px"; //DONE
					w.style.width = 275 + "px"; //DONE
					tableWdt = 259 + "px";
				} else {
					w.style.left = clX-8;
					w.style.top = clY-93;
					w.style.height = 143 + "px";
					w.style.width = 276 + "px";
					tableWdt = 260 + "px";
				}
			}
			if (this.winname.indexOf("about")!=-1) {
				if (isIE || isKo) {
					w.style.posLeft = clX-8; //DONE				
					w.style.posTop = clY-108; //DONE
					w.style.height = 142 + "px"; //DONE
					w.style.width = 275 + "px"; //DONE
					tableWdt = 259 + "px";
				} else {
					w.style.left = clX-8;
					w.style.top = clY-108;
					w.style.height = 143 + "px";
					w.style.width = 276 + "px";
					tableWdt = 260 + "px";
				}
			}
			else if (this.winname.indexOf("info")!=-1) {
				if (isIE || isKo) {
					w.style.posLeft = clX-8; //DONE				
					w.style.posTop = clY-123; //DONE
					w.style.height = 142 + "px"; //DONE
					w.style.width = 275 + "px"; //DONE
					tableWdt = 259 + "px";
				} else {
					w.style.left = clX-8;
					w.style.top = clY-123;
					w.style.height = 143 + "px";
					w.style.width = 276 + "px";
					tableWdt = 260 + "px";
				}
			}
			else if (this.winname.indexOf("why")!=-1) {
				if (isIE || isKo) {
					w.style.posLeft = clX-8; //DONE				
					w.style.posTop = clY-44; //DONE
					w.style.height = 142 + "px"; //DONE
					w.style.width = 275 + "px"; //DONE
					tableWdt = 259 + "px";
				} else {
					w.style.left = clX-8;
					w.style.top = clY-44;
					w.style.height = 143 + "px";
					w.style.width = 276 + "px";
					tableWdt = 260 + "px";
				}
			}
			w.style.zIndex = 99;
			w.style.visibility = "visible";			
			
			this.win_visible = true;
		} else {			
			this.win_compress();		
		}
		
		var tmp_link = "javascript: "+this.winname+".win_compress();";		
		var tmp_class1 = "AVAILABILITY_CLOSE_LINK";
		var tmp_class3 = "AVAILABILITY_CLOSE_BOLD";
		var ret = "";		
		
		ret += "<table width="+tableWdt+" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
			ret += "<tr><td style=\"border-bottom: 1px solid #000000\" bgcolor=\"#FFFFFF\" align='right' valign='top'><p style=\"text-align: right; margin-left: 4px; margin-right: 4px; margin-bottom: 0px; margin-top: 0px; line-height: 10pt; font-size: 10pt; color: #000000; font-family: Arial, Goudy Old Style, Verdana\"><a href=\"" + tmp_link + "\" class=\"" + tmp_class1 + "\">CLOSE WINDOW<a href=\"" + tmp_link + "\" class=" + tmp_class3 + ">" + "&nbsp;X" + "</a></p></td></tr>";
		ret += "</table>";

		ret += "<table height=100% width="+tableWdt+" border=0 cellspacing=0 cellpadding=0>";
			ret += "<tr>";
				ret += "<td valign=top bgcolor=#FFFFFF>";
					ret += "<p style=\"text-align: justify; margin-left: 4px; margin-right: 4px; margin-bottom: 10px; margin-top: 4px; line-height: 9pt; font-size: 8pt; color: #000000; font-family: Arial, Goudy Old Style, Verdana\">";
						if (this.winname.indexOf("members")!=-1) {ret += member;}	
						else if (this.winname.indexOf("about")!=-1) {ret += about;}		
						else if (this.winname.indexOf("info")!=-1) {ret += info;}
						else if (this.winname.indexOf("why")!=-1) {
							if (whatmessageTAG == 1) {ret += toBEdetermined;}
							else{ret += why;}
						}												
					ret += "</p>";
				ret += "</td>";
			ret += "</tr>";
		ret += "</table>";	
		
		w.innerHTML = ret;
		w.style.color = "#000000";
		w.style.visibility = "visible";	
		this.win_visibility = w.style.visibility;
		this.onWinExpand();

		return;		
	}
	
	if (document.getElementById)
	{
		x = document.getElementById("mem_");
		x.innerHTML = '';
		x.innerHTML = member;
		//x.style.height = 150 + "px";

		x2 = document.getElementById("memtext_");
		x2.innerHTML = '';
		x2.innerHTML = para + "<font color='red'>MEMBER(s)</font>";

		y = document.getElementById("info_");
		y.innerHTML = '';
		y.innerHTML = about;
		//y.style.height = 150 + "px";

		y2 = document.getElementById("infotext_");
		y2.innerHTML = '';
		y2.innerHTML = para + "<br><font color='red'>INFORMATION</font>";

		z = document.getElementById("heading_");
		z.innerHTML = '';
		z.innerHTML = heading;
	}
	else if (document.all)
	{
		x = document.all["mem_"];
		x.innerHTML = member;
		//x.style.height = 150 + "px";

		x2 = document.all["memtext_"];
		x2.innerHTML = para + "<font color='red'>MEMBER(s)</font>";			

		y = document.all["info_"];
		y.innerHTML = about;
		//y.style.height = 150 + "px";

		y2 = document.all["infotext_"];
		y2.innerHTML = para + "<font color='red'>INFORMATION</font>";

		z = document.all["heading_"];
		z.innerHTML = heading;	
	}	
}

function jswin(name,txt) {
	// PROPERTY PUBLIC
	this.winname = name; // about name(id).
	this.winText = txt;
	this.win_visibility = "hidden";	
	this.posLeft = -1;
	this.posTop = -1;	
	
	// PROPERTY PRIVATE	
	this.win_visible = false;			
	
	// METHOD PUBLIC	
	this.displaywin = displaywin;
	this.myClick3 = myClick3;		
	this.win_compress = new Function('document.getElementById(this.winname).style.visibility = "hidden"; this.win_visible = false;');

	// METHOD PRIVATE		
	//this.graphic_setup = graphic_setup;	
	this.getXY = new Function("var obj = document.getElementById(this.winname); for(var sumTop = 0, sumLeft = 0; obj != document.body; sumTop += obj.offsetTop,sumLeft += obj.offsetLeft, obj = obj.offsetParent); this.posLeft = sumLeft; this.posTop = sumTop;");	
	
	// EVENTS
	this.onWinCreate = new Function("");
	this.onWinExpand = new Function("");
	this.onWinCompress = new Function("");	
}

function displaywin() {	
	// Find out the zoning meeting deadline info.
	
	if (this.winname.indexOf("members")!=-1) {linktitle = "Board Members";}
	else if (this.winname.indexOf("about")!=-1) {linktitle = "Meeting Purpose";}		
	else if (this.winname.indexOf("info")!=-1) {linktitle = "Administration";}	
	else if (this.winname.indexOf("why")!=-1) {
		thisMonth = new Date().getMonth() + 1;
		nextMonth = new Date().getMonth() + 2;
		theYear = new Date().getFullYear();		
		todayIS = new Date().getDate();
		
		// find the last day of this month
		days_in_month = days_in_month(theYear, thisMonth);
		
		// find the meeting day for this month
		meetDayThisMonth = NthXdayOfYM(3, 2, theYear, thisMonth);
		
		// change the year if the next month is January
		if(nextMonth == 1){theYear = new Date().getFullYear() + 1};
				
		// deadline is 24 days before (- 24)the next meeting ...that that always falls on a Saturday so ...we just back up one more day (- 1)to Friday
		meetDayNextMonth = NthXdayOfYM(3, 2, theYear, nextMonth);		
		daytosubtractthismonth = 24 - (meetDayNextMonth); // how many more days in this month do i need to subtract from 24 after subtracting the days next month from 24.		
		deadline = days_in_month - daytosubtractthismonth;
		checkbackdaybegin = deadline + 3; // will give the date of the 2nd Monday after the Friday deadline
		checkbackmonthend = thisMonth; //assume it will be this month, we will check in the for loop below
		
		//find the end of the month and start counting from 1 (...the next month)
		checkbackdayend = checkbackdaybegin;
		for (i = 1; i <= 3; i++) {
			if(checkbackdayend == days_in_month){
				checkbackdayend = 1; 
				checkbackmonthend = nextMonth;
			}
			else{checkbackdayend = checkbackdayend + 1;}			
		}
		
		//alert(checkbackdayend + " " + meetDayThisMonth + " " + deadline + " " + todayIS);
		if (todayIS > meetDayThisMonth && todayIS <= (checkbackdaybegin + 4)) {linktitle = "Not yet determined"; whatmessageTAG = 1;}
		else {linktitle = "No meeting required"; whatmessageTAG = 2;}
	}	

	document.write('<div id=' + this.winname + ' style=\"visibility: hidden; position: absolute; overflow: auto\"></div>');
	
	// if this is the "no meeting required" or "Not yet determined" link then leave out the image 
	if (this.winname.indexOf("why")!=-1){
	   document.write('<a style=\'vertical-align: top; margin-left: 4px; font-size: 8pt; color: #000066; font-family: Arial, Goudy Old Style, Verdana\' href=\"javascript:' + this.winname + '.myClick3(' + this.winText + ',\'meeting\')\" class=\"site\">' + linktitle + '<br></a>');		
	}
	else{	
	   document.write('<img style=\"margin-left:4px; margin-top:0px\" src=\"images/bullet_red2.gif\"><a href=\"javascript:' + this.winname + '.myClick3(' + this.winText + ',\'meeting\')\" class=\"noscroll\">' + linktitle + '<br></a>');		
	}
	
	this.onWinCreate();
}

function NthXdayOfYM(N, X, Y, M) { 
	var D
  	// X = Sun=0..Sat=6 Sun=7
  	// M = Month -> 1..12
  	// N = 0 for last of prev mth.,1,2,3
  	// Y = Year
  	
 	 with (D = new Date(Y, M-1, 1))
    		{ 
    			setDate(7*N - 6 + (7+X-getDay())%7 ) 
    		}
  	
  	dayofmonth = D.getDate();  	
  	return dayofmonth;  	
}

//how many days in given month/year
function days_in_month (year, month) {
     return 32 - new Date(year, month, 32).getDate();
}