// This script uses dhtml to provide help for the labels
// on the WQ Assessment Internet simple query form
// Created March 2, 2004 by JJ

function GetHelp(IndexOfHelp) 
{
	// Open pop-up window
	wName = "QBEHelp";
	paramvals  = "Toolbar=no,Location=no,Directories=no,Status=no,Menubar=no,Scrollbars=yes,Resizable=yes,Width=540,Height=300,left=140,top=40";
	var w = window.open("", wName , paramvals);
	var d = w.document;
	
	// Output html document header to new window
	d.write('<head>');
	d.write('<link rel="stylesheet" type="text/css" href="css/QBEHelp.css">');
	d.write('<title>Washington State Water Quality Assessment [303(d)] List 2008 Help Page</title>');
	d.write('</head>');
	//d.write('<body onblur="window.close();">');
	d.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
	d.write('<tr>');
	d.write('<td width="14%"><img border="0" src="images/ecologo4.gif" WIDTH="58" HEIGHT="36"></td>');
	d.write('<td width="86%">');
	d.write('<p align="left" class="applicationTitle">Water Quality Assessments for Washington - Query Help</td>');
	d.write('</tr>');
	d.write('</table>');
	d.write('<hr noshade size="3" color="#008000">');
	d.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');

	// Get help definition requested and add to output html document
	switch(IndexOfHelp)
	   {
		 case 1:
				{
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>Water Body Name</strong></p>');
				d.write('<p>The common name of the water body.</p>');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		 case 2:
				{
		        d.write('<tr>');
		        d.write('<td width="100%"><p><strong>Parameter</strong></p>');
		        d.write('<p>Name of the parameter tested for</p>');
		        d.write('</td>');
		        d.write('</tr>');
				break;
				}
		 case 3:
				{
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>Medium</strong></p>');
				d.write('<p>Medium from which the parameter was collected</p>');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		 case 4:
				{
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>96 303(d) List?</strong></p>');
				d.write('<p>Was the segment listed in the 1996 303(d) process - Yes/No</p>');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		 case 5:
		        {
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>98 303(d) List?</strong></p>');
				d.write('<p>Was the segment listed in the 1998 303(d) process - Yes/No</p>');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		 case 6:
		        {
				d.write('<tr>');
				d.write('<table width="100%" colspan="2">');
				d.write('<tr>');
				d.write('<td width="17%" valign="top" align="left"><p><strong>Category</strong></p>');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('</tr>');
				d.write('<td width="17%" valign="top" align="left">');
				d.write('<p>Category 1</p>');
				d.write('</td>');
				d.write('<td width="83%" valign="top" align="left">');
				d.write('<p>Waters where the available data shows attainment of the water<br>');
				d.write('quality standard for the parameter for which a waterbody<br>');
				d.write('segment has been tested or studied</p>');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%">');
			    d.write('&nbsp;');
				d.write('</td>');
				d.write('<td width="83%">');
				d.write('&nbsp;');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%" valign="top" align="left">');
				d.write('<p>Category 2</p>');
				d.write('</td>');
				d.write('<td width="83%" valign="top" align="left">');
				d.write('<p>Waters where the data are not sufficient for listing a waterbody<br>');
				d.write('segment as impaired but may still raise a concern about water quality<br>');
				d.write('</p>');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%">');
			    d.write('&nbsp;');
				d.write('</td>');
				d.write('<td width="83%">');
				d.write('&nbsp;');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%" valign="top" align="left">');
				d.write('<p>Category 3</p>');
				d.write('</td>');
				d.write('<td width="83%" valign="top" align="left">');
				d.write('<p>No Data - for waters where there is no usable data about a given pollutant in a given waterbody.<br>');  
				d.write('In most cases, these waters are not written down.<br>'); 
				d.write('This category amounts to "everything else" that is not in some other category.<br>');
				d.write('</p>');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%">');
			    d.write('&nbsp;');
				d.write('</td>');
				d.write('<td width="83%">');
				d.write('&nbsp;');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%" valign="top" align="left">');
				d.write('<p>Category 4A</p>');
				d.write('</td>');
				d.write('<td width="83%" valign="top" align="left">');
				d.write('<p>Waters where the data show that a characteristic use is impaired by<br>');
				d.write('a pollutant, but a TMDL addressing that impairment has already been<br>');
				d.write('developed and approved by US EPA<br>');
				d.write('</p>');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%">');
			    d.write('&nbsp;');
				d.write('</td>');
				d.write('<td width="83%">');
				d.write('&nbsp;');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%" valign="top" align="left">');
				d.write('<p>Category 4B</p>');
				d.write('</td>');
				d.write('<td width="83%" valign="top" align="left">');
				d.write('<p>Waters where the data show that a waterbody segment is impaired by<br>');
				d.write('a pollutant, but a local, state or federal authority has approved<br>');
				d.write('a pollution contol plan<br>');
				d.write('</p>');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%">');
			    d.write('&nbsp;');
			    d.write('</td>');
			    d.write('<td width="83%">');
				d.write('&nbsp;');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%" valign="top" align="left">');
				d.write('<p>Category 4C</p>');
				d.write('</td>');
				d.write('<td width="83%" valign="top" align="left">');
				d.write('<p>Waters where some characteristic uses of a waterbody segment may<br>');
				d.write('be impaired due to aquatic habitat degradation that is not the<br>');
				d.write('result of a pollutant<br>');
				d.write('</p>');
				d.write('</td>');
				d.write('</tr>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%">');
				d.write('&nbsp;');
				d.write('</td>');
				d.write('<td width="83%">');
				d.write('&nbsp;');
				d.write('</td>');
				d.write('</tr>');
				d.write('<tr>');
				d.write('<td width="17%" valign="top" align="left">');
				d.write('<p>Category 5</p>');
				d.write('</td>');
				d.write('<td width="83%" valign="top" align="left">');
				d.write('<p>Waters from which at least one characteristic or designated use<br>');
				d.write('is impaired, as evidenced by failure to attain the applicable<br>');
				d.write('water quality standard for one or more pollutants<br>');
				d.write('</p>');
				d.write('</td>');
				d.write('</tr>');
				d.write('</table>');
				d.write('</tr>');
				break;
				}
		 case 7:
				{
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>Township</strong></p>');
				d.write('<p align="left">Township - format must be between "01" + "N" thru "41" + "N"<br>');
				d.write('(All Washington Townships are "N")');
				d.write('<p align="left">Township, Range, Section - In this system, segments of rivers,<br>');
				d.write('streams, and lakes of less than 1,500 acres are defined as the portion of<br>');
				d.write('the waterbody lying within a given section of a township and range');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		 case 8:
		        { 
		        d.write('<tr>');
	            d.write('<td width="100%"><p><strong>Listing ID</strong></p>');
	            d.write('<p>The unique identifier used to track the listing record.</p>');
	            d.write('</td>');
	            d.write('</tr>');
				break;
				}
	     case 9:
	            {
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>Range</strong></p>');
  				d.write('<p align="left">Range - format must be between "16" + "W" thru "47" + "E"<br>');
				d.write('use leading zero for best results');
				d.write('<p align="left">Township, Range, Section - In this system, segments of rivers,<br>');
				d.write('streams, and lakes of less than 1,500 acres are defined as the portion of<br>');
				d.write('the waterbody lying within a given section of a township and range');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		 case 10:
		        {
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>Section</strong></p>');
  				d.write('<p align="left">Section - format must be between "01" thru "99"<br>');
  				d.write('most typically between 01 and 36');
				d.write('<p align="left">Township, Range, Section - In this system, segments of rivers,<br>');
				d.write('streams, and lakes of less than 1,500 acres are defined as the portion of<br>');
				d.write('the waterbody lying within a given section of a township and range.  In a<br>');
				d.write('few cases, where property is legally defined in terms other than by<br>');
				d.write('section, the segments are defined by Donation Land Claims or other<br>');
				d.write('applicable legal description');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		 case 11:
		        {
			    d.write('<tr>');
			    d.write('<td width="100%"><p><strong>WRIA</strong></p>');
			    d.write('<p>(Water Resource Inventory Area) The watershed identification in which<BR>');
			    d.write('the waterbody segment is located.  Note: 99 is the default for Listings<br>');
                            d.write('that were not provided a WRIA when first entered.  These are being updated<br>');
                            d.write('as time permits.');
			    d.write('</td>');
			    d.write('</tr>');
				break;
				}
		 case 12:
		        {
			    d.write('<tr>');
			    d.write('<td width="100%"><p><strong>Basis</strong></p>');
			    d.write('<p>A narrative recap of information considered in determining category.</p>');
			    d.write('<p>When performing a search on the basis you will most likely need to use ');
			    d.write('the "%" wildcard to find matches. The % works like an * as typically found in ');
			    d.write('many applications.  The wildcard may be placed at the beginning and/or ');
			    d.write('end of your search phrase.<br>');
                            d.write('<p align="left">SEARCH EXAMPLE% Will identify all listing bases which contain ');
			    d.write('<br>a word or phrase that begins with the letters "SEARCH EXAMPLE" ');
                            d.write('<p align="left">%SEARCH EXAMPLE Will identify all listing bases which contain ');
			    d.write('<br>a word or phrase that ends with the letters "SEARCH EXAMPLE" ');
                            d.write('<p align="left">%SEARCH EXAMPLE%  Will identify all listing bases which contain ');
                            d.write('a word or phrase that contains the letters "SEARCH EXAMPLE"');
			    d.write('</td>');
			    d.write('</tr>');
				break;
				}
		 case 13:
		        {
			    d.write('<tr>');
			    d.write('<td width="100%"><p><strong>Listing Cycle</strong></p>');
			    d.write('<p>The year the Water Quality Assessment Report (the 303(d) list) is due for approval by EPA.  Using All will retrive listings for both years.');
			    d.write('</td>');
			    d.write('</tr>');
				break;
				}
 		 case 14:
		        {
			    d.write('<tr>');
			    d.write('<td class="topBar" width="100%" valign="center">');
			    d.write('<b>Why is there no map link?</b><br>');
			    d.write('</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">&nbsp;</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">');
			    d.write('<p><b><u>Scale of Data</b></u><br>');
			    d.write('</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">');
			    d.write('<p>The Watershed Assessment Tracking System (WATS) is the primary database for reporting the Water Quality Assessment. ');
			    d.write('The Interactive Mapping Tool relies on standardized Geographic Information System (GIS) map layers.  It is possible that some waters ');
			    d.write('listed in the WATS database will not appear in the Interactive Mapping Tool.  This is usually the result of differences of scale ');
			    d.write('between the data submitted and the GIS mapping layer.  Some streams and creeks are too small to appear on the map, yet they ');
			    d.write('do exist in real life.  The identification of impaired waters is not limited by map scales.  In general, the GIS layer was developed at a ');
			    d.write('scale of 1:100,000, with certain areas around King County being at a scale of 1:25,000.');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">&nbsp;</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">');
			    d.write('<p><b><u>Geographic Names</b></u><br>');
			    d.write('</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">');
			    d.write('<p>The Interactive Mapping Tool relies on standardized layers of information.  The names associated with the layer are the names ');
			    d.write('described by the Geographic Names Information System (GNIS).  While the information is technically correct, some streams in ');
			    d.write('WATS may reflect a local name that is different.  The same is true for lakes and other bodies of water.  A correct GNIS name is not ');
			    d.write('available for every stream identified in WATS.');
			    d.write('</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">&nbsp;</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">');
			    d.write('<p><b><u>Who is Right?</b></u><br>');
			    d.write('</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">');
			    d.write('<p>');
			    d.write('For the purposes of the Water Quality Assessment, whenever there is a discrepancy between information provided by the ');
			    d.write('Interactive Mapping Tool and information derived from the WATS database, the WATS information is to be considered as primary.');
			    d.write('</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">&nbsp;</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">');
			    d.write('<p><b><u>Section Numbers</b></u><br>');
			    d.write('</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">');
			    d.write('<p>The segmentation system is based on the Public Land Survey System (PLSS) of Townships, Ranges, and Sections.  In certain ');
			    d.write('areas of the state, these TRS designations are superceded by Donation Land Claim (DLC) designations.  The DLC is equivalent to ');
			    d.write('a Section.  Section numbers are general from 1 to 36 within a single Township and Range.  DLC numbers are the apparent sections ');
			    d.write('that have a number greater than 36.  Check the internet for more information on Donation Land Claims.');
			    d.write('</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">&nbsp;</td>');
			    d.write('</tr>');
			    d.write('<tr>');
			    d.write('<td width="100%">');
			    d.write('<p>Send comments or questions to <a href="mailto:303D@ecy.wa.gov?Subject=Water Quality Assessment Feedback">WQ Assessment Mail Box<br>');
			    d.write('</td>');
			    d.write('</tr>');
			    break;
			    }
	    case 15:
				{
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>04 Category</strong></p>');
				d.write('<p>Was the segment listed in the 2004 303(d) process with a category of 1, 2, 3, 4A, 4B, 4C, 5.</p>');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		 case 16:
		        {
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>08 Category</strong></p>');
				d.write('<p>Was the segment listed in the 2008 303(d) process with a category of 1, 2, 3, 4A, 4B, 4C, 5.');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		case 17:
		        {
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>LLID</strong></p>');
				d.write('<p>(Longitude / Latitude Identification System) A thirteen digit identifier intelligent identifier that defines the longitude (first seven digits) and latitude (last six digits) of the mouth of the watercourse in terms of decimal degrees.');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		case 18:
		        {
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>Grid Cell</strong></p>');
				d.write('<p>In open waters, including marine waters, lakes of more than 1,500 acres, and estuarine areas (the lower end of some large rivers), segments are defined by a rectangular grid sized at 4.5 seconds longitude and 4.5 secnds latitude (approximately 2,460 feet by 3,650 feet).  The given latitude and longitude is for the center of mass of a rectangle in the grid.');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
				
		case 19:
		        {
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>Puget Sound Action Area</strong></p>');
				d.write('<p>Seven areas that make up Puget Sound as defined by the Puget Sound Partnership. Includes marine and fresh water bodies.');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
				
	    case 20:
		        {
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>EIM Study Code</strong></p>');
				d.write('<p>This is equivalent to "user study ID" found in Ecology’s Environmental Information Management System (EIM). Listing IDs containing data assessed in the 2008 assessment cycle will usually have Study ID(s) provided with the listing. <a href="http://www.ecy.wa.gov/eim/index.htm" target="_blank">EIM website</a>');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		case 21:
		        {
				d.write('<tr>');
				d.write('<td width="100%"><p><strong>EIM Location</strong></p>');
				d.write('<p>This is equivalent to "user location ID" found in Ecology’s Environmental Information Management System (EIM). Listing IDs containing data assessed in the 2008 assessment cycle will usually have location ID(s) provided with the listing. <a href="http://www.ecy.wa.gov/eim/index.htm" target="_blank">EIM website</a>');
				d.write('</td>');
				d.write('</tr>');
				break;
				}
		case 22:
	        {
			d.write('<tr>');
			d.write('<td width="100%"><p><strong>Collection Date</strong></p>');
			d.write('<p>The date a sediment sample was collected in the field. You can enter a FROM or TO date or both. Collection date is for sediments only.');
			d.write('</td>');
			d.write('</tr>');
			break;
			}
		case 23:
	        {
			d.write('<tr>');
			d.write('<td width="100%"><p><strong>Rank</strong></p>');
			d.write('<p>The severity of a Category 2 sediment listing. A rank value of 1 is low and 4 is high. Rank is for sediments with a category of 2.');
			d.write('</td>');
			d.write('</tr>');
			break;
			}	
			
	    case 24:
                {
			    d.write('<tr>');
			    d.write('<td width="100%"><p><strong>County</strong></p>');
			    d.write('<p>is the county the water body resides in. A water body can reside in as many as 3 counties.');
			    d.write('</td>');
			    d.write('</tr>');
			    break;
			    }		    

   	default:
				{
				alert("Unknown tab index");
				break;
				}
		}	d.write('</table>');
	d.write('<table>');
	d.write('<tr>');
	d.write('<td>&nbsp;</td>');
	d.write('<tr>');
	d.write('<td width="100%" class="winClose">');
	d.write('<p onclick="self.close()";>Close Window');
	d.write('</td>');
	d.write('</tr>');
	d.write('</body>');
	d.close();
}
