
<!-- Original:  Nicolas -->
<!-- Adds New or Updated image which will disappear on the date given -->
<!-- Web Site:  http://www.javascript-page.com -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Insert the following line of code between beginning & ending script tags where the image is to appear on the web page with mm/dd/yyyy as date when the 'New' symbol is to disappear: -->
<!--  checknew("11/24/2001")  -->
<!-- Begin
function checknew(date) {
var pic = "/env/images/new2.gif";
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write("<img src='" + pic + "' border='0' alt='New' width='32' height='16'>");
}

<!--  checkupd("11/24/2001")  -->
function checkupd(date) {
var pic = "/env/images/updated.gif";
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write("<img src='" + pic + "' border='0' alt='Updated' width='44' height='12'>");
}

<!--  checkActivate("<a href=''>Test</a>","mm/dd/yyyy hh:mm:ss")   -->
function checkActivate(text,date)
{
	var activateDate = new Date(date);
	var currentDate = new Date();
	
	if(currentDate >= activateDate)
	{
		document.write(text);
	}
}

// End -->

function expand(dd)
{
  var divs = dd.getElementsByTagName("div");

  if(divs[0]!=null)
  {
  	divs[0].style.display = 'inline';
  }
}
function collapse(dd)
{
	var divs = dd.getElementsByTagName("div");
	if(divs[0]!=null)
	{
		divs[0].style.display = 'none';
	}
}

// End -->

<!--- used fof popup window - used in water_quality_reports.cfm --->


function NewWindow(mypage, myname, w, h, scroll) {
			 var winl = (screen.width - w) / 2;
			 var wint = (screen.height - h) / 2;
			 winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable, toolbar=yes' 
			 win = window.open(mypage, myname, winprops)
			 if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
		}

function NewWindowNoTools(mypage, myname, w, h, scroll) {
			 var winl = (screen.width - w) / 2;
			 var wint = (screen.height - h) / 2;
			 winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable, toolbar=no' 
			 win = window.open(mypage, myname, winprops)
			 if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
		}




