
 //PruneIt
 // modified 9/9/04 -ar -- added second if statement to remove city names when all dates
 // for that city are expired -- see next inline comments
function hideExp(){
  cDate = new Date();
  cDate.setHours(-1);
  cDate.setYear(cDate.getFullYear().toString().substr(2));
	if (document.getElementById("eHead2") != null){
		rows = document.getElementById("eHead2").parentNode.rows;
		for(i=1;i<rows.length;i++){
			cells = rows[i].cells;
			if (cDate > (new Date(cells[0].innerHTML))){
				rows[i].style.display = "none";
				if ((i+1) == rows.length){
					//if this is the last row, back up and turn off the last row 
					//where first cell contains capital alpha character
					city_finder_1:
					for (j=1;j<rows.length;j++){
						if (rows[i-j].cells[0].innerHTML.search(/[A-Z]/) != -1){
							rows[i-j].style.display = "none";
							break city_finder_1;
						}
					}
				}
				//if first cell of next row does not start with a number, 
				//back up and hide the last row where first cell contains capital alpha character
				if (i<(rows.length-1)){
					if (rows[i+1].cells[0].innerHTML.search(/[0-9]/) == -1){
						city_finder_2:
						for(j=1;j<rows.length;j++){
							if (rows[i-j].cells[0].innerHTML.search(/[A-Z]/) != -1){
								rows[i-j].style.display = "none";
								break city_finder_2;
							}
						}
					}
				}
			}
		}
	} else if (document.getElementById("eHead") != null){
		rows = document.getElementById("eHead").parentNode.rows;
		for(i=1;i<rows.length;i++){
			cells = rows[i].cells;
			if (cDate > (new Date(cells[0].innerHTML))){
				rows[i].style.display = "none";
			}
		}
	} 
}
//End PruneIt-----------------------//


//windowpopup .js
function Start(page) {
OpenWin = this.open(page, "CtrlWindow",
"toolbar=yes,menubar=no,location=no,scrollbars=yes,resizable=yes,width=420,height=480");
}

//End of windowpopup------------//

//windowpopup .js
function openWin(page, w, h) {
OpenWin = this.open(page, "CtrlWindow",
"toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
}

//End of windowpopup------------//

//Print Page-------------------//

function printPage() {

  	var newPageVal=window.location.href;
	var checkPrintLook = newPageVal.indexOf('?');
	if (checkPrintLook == -1) 
		{
		newPageVal=newPageVal+ "?printable=1";
		}
	else
		{
		newPageVal=newPageVal + "&printable=1";
		}
	 window.open(newPageVal, 'popupwindow', 'width=800,height=600,scrollbars,resizable,toolbar'); 
}
//End of Print Page------------//
