// JavaScript Document
var cplt1="A report designed to track the progress of a citizen complaint by providing findings "+
"by the Department and the status of the complaint. Information is retrieved using the Complaint Number "+
"assigned when reported by phone to the Complaint Line or submitted using an on-line form.<br>"+
"<br>*<font size='1'> All citizen complaints reported to Environmental Services for the past three years "+
"concerning establishments under the jurisdiction "+
"of the Maricopa County Health Code.</font>"; 
 
var cplt2="A summarized list based on the category/type/subtype of complaint, city and/or date received. "+
"Individual Complaint Reports can be displayed by clicking on the Complaint ID "+ 
"included on each row in the list. Where applicable, inspection data may also be viewed by clicking <u>See Inspection.</u><br>"+
"<br>*<font size='1'> All citizen complaints reported "+
"to Environmental Services for the past year concerning establishments under the jurisdiction "+
"of the Maricopa County Health Code.  Limited to one year due to volume of complaints.</font>";

var cplt3="A summarized list of any complaints made for a permit issued to a business operation regulated by the Department. "+
"Individual Complaint Reports can be displayed by clicking on the Complaint ID included on each "+
"row in the list. Where applicable, inspection data may also be viewed by clicking <u>See Inspection.</u><br>"+
"<br>*<font size='1'>All citizen's complaints reported "+
"to Environmental Services for the past three years concerning establishments under the jurisdiction "+
"of the Maricopa County Health Code.</font>"; 
 
var cplt4="A summarized list based on a business and/or the city in which the business is located. "+
"Individual Complaint Reports can be displayed by clicking on the Complaint ID "+ 
"included on each row in the list. Where applicable, inspection data may also be viewed by clicking </u>See Inspection.</u><br>"+ 
"<br>*<font size='1'>All citizen's complaints reported "+
"to Environmental Services for the past three years concerning establishments under the jurisdiction "+
"of the Maricopa County Health Code.</font>";

var food1="This report includes inspections for all establishments that conduct business related "+
"to the production, storage or sale of food items within Maricopa "+
"County and under the jurisdiction of the Maricopa County Health Code. "+
"Inspections can be queried by Business Name and/or the City where the establishment is located.";
 
var cattype="This report includes inspections for the past three years "+
"for permitted facilities under the jurisdiction "+
"of the Maricopa County Health Code.  "+
"Inspections can be queried by Permit Category, Type, Subtype, City, and/or Zip Code. "+
"Permit holders or citizens may then further drill down on the "+
"Permit Number of a particular Establishment to view a list of all inspections performed for the permit including "+
"inspections conducted in response to a citizen complaint.  This report further provides "+
"the ability to export the data in xml format."

var swim1="This report includes inspections for public and semi-public swimming pools and spas. "+
"Public pools and spas are open to the general public and semi-public "+
"pools are only accessible for a select group of people like "+
"the residents of an apartment complex or members of an HOA.  Inspections can be queried "+
"by Business Name and/or the City where the establishment is located.";

var perm="This report includes inspections for the past three years "+
"for permitted facilities under the jurisdiction "+
"of the Maricopa County Health Code.  "+
"Inspections can be queried by Permit Number. Permit holders or citizens may type in the "+
"Permit Number of an Establishment to view a list of all inspections performed for the permit including "+
"inspections conducted in response to a citizen complaint.";

var air1="This report contains Air Quality permit applications received from businesses "+
"which are non-major sources of air pollution From Monday through Sunday during the previous week.  "+
"Major source air pollution thresholds are defined in Title V of the Clean Air Act.";

var air2="This report includes all Air Quality Permits issued to non-major sources during the "+
"previous month. Information given includes the permit number and date of issuance, the business "+
"name and address, the type of facility and the sources of air pollution.";

var air3="This report includes proposed Air Quality Permits to major Title V sources that are "+
"available for public comment. Information includes the permit number and date of issuance, business "+
"name and address, type of facility and sources of air pollution. The business name provides a link to a "+
"related list of permitted non-major sources that operate in the same zipcode area as the proposed permit "+
"and includes a summary of the most recent emissions reported for the source.";

var intro="1. Available reports are listed to the left.<br><br>"+
"2. Click on a Report Title to display a description of the report here.<br><br>"+
"3. Click the '<b>GO</b>' button to the right of a Report Title to proceed on to Search Criteria and View Results.<br><br>";

function rchange(mycontent){
//if IE 4+
if (document.all){
	document.all.repdesc.innerHTML=mycontent;
	}
//else if NS 4
	else if (document.layers){
			document.repdesc2.document.repdesc3.
			document.write(mycontent);
			document.repdesc2.document.repdesc3.
			document.close();
	}
//else if NS 6 (supports new DOM)
	else if (document.getElementById){
		rng = document.createRange();
		el = document.getElementById("repdesc");
		rng.setStartBefore(el);
		htmlFrag = rng.createContextualFragment(mycontent);
		while (el.hasChildNodes())
		el.removeChild(el.lastChild);
		el.appendChild(htmlFrag);
	}
}
