/*
This code was created by the New Hampshire Housing and Finance Authority. 
Use of any part of this code is prohibited without written permission.
http://www.nhhfa.org
Created: 12/2006
By: Sean Vickers
*/
function rcByCnty(code1,code2) {
	var okToContinue = "Yes";
    var url=null;
    xmlhttp=null;
	
    document.getElementById("page1").style.height = '475px';
    document.getElementById("page2").style.height = '400px';
    document.getElementById("page3").style.height = '1px';
    document.getElementById("page4").style.height = '1px';
    document.getElementById("page5").style.height = '1px';
    document.getElementById("page6").style.height = '1px';   
    document.getElementById("page7").style.height = '1px'; 

    document.getElementById("pwait").innerHTML = "<img src='images/wait.gif' alt='' width='150' border='0'>";
   
    url = "http://www.nhhfa.org/oppweb/xml.asp?code1=" + code1 + "&code2=" + code2 + "&code3=rcByCnty";
    
    /* Check for running connections */
    if (xmlhttp != null && xmlhttp.readyState != 0 && xmlhttp.readyState != 4){
       xmlhttp.abort();
    }

    // code for Mozilla, etc.
    if (window.XMLHttpRequest) { 
    	try { xmlhttp=new XMLHttpRequest(); }
    	catch(e) { xmlhttp=null; }
    }
 
    // code for IE
    else if (window.ActiveXObject) {
    	try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
    	catch(e) {
    	   try { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
    	   catch(e) { xmlhttp=null; }
    	}
    }

    if (xmlhttp) {
        xmlhttp.open("GET",url,true);
        xmlhttp.setRequestHeader('content-type', 'text/xml'); 
        xmlhttp.onreadystatechange=function () {

	    var xml=null;
	    var html=null;
	    var data=null;

	    // if xmlhttp shows "loaded"
	    if (xmlhttp.readyState==4) {
  
	       // if "OK"
               if (xmlhttp.status==200) {

try {			   
	          xml  = xmlhttp.responseXML;
              data = xml.documentElement.getElementsByTagName("CODE2");
} catch(e) {
	alert("There Is No Data Available For This Area!");
	okToContinue = "No";
}
if(data.length == 0) {
	alert("There Is No Data Available For This Area!");
	okToContinue = "No";
}
			  
if(okToContinue == "Yes") {
				  
					var g1 = new column_graph(1);                 

					g1.add("Belknap County",Math.round((Math.round(data[0].getAttribute("belknap2011"))-Math.round(data[0].getAttribute("belknap2001")))/Math.round(data[0].getAttribute("belknap2001"))*10000)/100,0);	
					g1.add("Carroll County",Math.round((Math.round(data[0].getAttribute("carroll2011"))-Math.round(data[0].getAttribute("carroll2001")))/Math.round(data[0].getAttribute("carroll2001"))*10000)/100,0);	
					g1.add("Cheshire County",Math.round((Math.round(data[0].getAttribute("cheshire2011"))-Math.round(data[0].getAttribute("cheshire2001")))/Math.round(data[0].getAttribute("cheshire2001"))*10000)/100,0);
					g1.add("Coos County",Math.round((Math.round(data[0].getAttribute("coos2011"))-Math.round(data[0].getAttribute("coos2001")))/Math.round(data[0].getAttribute("coos2001"))*10000)/100,0);				  
					g1.add("Grafton County",Math.round((Math.round(data[0].getAttribute("grafton2011"))-Math.round(data[0].getAttribute("grafton2001")))/Math.round(data[0].getAttribute("grafton2001"))*10000)/100,0);
					g1.add("Hillsborough County",Math.round((Math.round(data[0].getAttribute("hillsborough2011"))-Math.round(data[0].getAttribute("hillsborough2001")))/Math.round(data[0].getAttribute("hillsborough2001"))*10000)/100,0);				  
					g1.add("Merrimack County",Math.round((Math.round(data[0].getAttribute("merrimack2011"))-Math.round(data[0].getAttribute("merrimack2001")))/Math.round(data[0].getAttribute("merrimack2001"))*10000)/100,0);
					g1.add("Rockingham County",Math.round((Math.round(data[0].getAttribute("rockingham2011"))-Math.round(data[0].getAttribute("rockingham2001")))/Math.round(data[0].getAttribute("rockingham2001"))*10000)/100,0);
					g1.add("Strafford County",Math.round((Math.round(data[0].getAttribute("strafford2011"))-Math.round(data[0].getAttribute("strafford2001")))/Math.round(data[0].getAttribute("strafford2001"))*10000)/100,0);
					g1.add("Sullivan County",Math.round((Math.round(data[0].getAttribute("sullivan2011"))-Math.round(data[0].getAttribute("sullivan2001")))/Math.round(data[0].getAttribute("sullivan2001"))*10000)/100,0);
					g1.add("New Hampshire",Math.round((Math.round(data[0].getAttribute("nh2011"))-Math.round(data[0].getAttribute("nh2001")))/Math.round(data[0].getAttribute("nh2001"))*10000)/100,0);

					var html1 = "<table><tr><td width='100%' height='450px' valign='top'>" +
					
								"<table width='960px' height='100%' class='outside'><tr><td>" +
								 "<table width='100%' height='100%' class='inside'>" +
									"<tr><td valign='top' align='left'>" +	
								    "<center><font size='4'><b>Change in Median Monthly Gross Rent for Two Bedroom Units, 2001 to 2011</b></font><br>" +
									"<font size='1'>"+code1+": "+code2+"</font><br><br></center>" +	
						
									"<div id='graphpage1' style='position:relative;height:385px;width:950px;padding:0px;'>" +
								    "<div id='graph1' style='position:absolute;left:0px;padding:0px;'></div>" +
				 					"</div>" +										
			
								"</td></tr>" +
								"</table>" +
								"</td></tr></table>" +
								
								"</td></tr></table>";							
					
					var html2 = "<table><tr><td width='100%' height='375px' valign='top'>" +
					
								"<table width='960px' height='100%' class='outside'><tr><td>" +
								 "<table width='100%' height='100%' class='inside'>" +
									"<tr><td valign='top' align='left'>" +	
								    "<center><font size='4'><b>Change in Median Monthly Gross Rent for Two Bedroom Units, 2001 to 2011</b></font><br>" +
									"<font size='2'>"+code1+": "+code2+"</font><br><br></center>" +	
								
									"<table class='data'>" +
									
									"<tr class='head1'>" +
									
									"<td colspan='2' style='vertical-align:bottom;'>&nbsp;</td>" +
									"<td colspan='2' style='border:solid 1px black;vertical-align:bottom;text-align:center;'>2011</td>" +
									"<td colspan='2' style='border:solid 1px black;vertical-align:bottom;text-align:center;'>2010</td>" +
									"<td colspan='2' style='border:solid 1px black;vertical-align:bottom;text-align:center;'>2009</td>" +
		 							"<td colspan='2' style='border:solid 1px black;vertical-align:bottom;text-align:center;'>2008</td>" +
									"<td colspan='2' style='border:solid 1px black;vertical-align:bottom;text-align:center;'>2007</td>" +
									"<td colspan='2' style='border:solid 1px black;vertical-align:bottom;text-align:center;'>2006</td>" +
									"<td colspan='2' style='border:solid 1px black;vertical-align:bottom;text-align:center;'>2005</td>" +
									"<td colspan='2' style='border:solid 1px black;vertical-align:bottom;text-align:center;'>2004</td>" +
									"<td colspan='2' style='border:solid 1px black;vertical-align:bottom;text-align:center;'>2003</td>" +
		 							"<td colspan='2' style='border:solid 1px black;vertical-align:bottom;text-align:center;'>2002</td>" +
									"<td colspan='2' style='border:solid 1px black;vertical-align:bottom;text-align:center;'>2001</td>" +
																
									"<td style='width:5px;'>&nbsp;</td></tr>" + 
									
									"<tr class='head'>" +
									"<td style='font-size:9px;text-align:left;vertical-align:bottom;'>County</td>" +
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change 2001 to 2011</td>" +					
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Median Rent</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change from Prior Year</td>" +
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Median Rent</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change from Prior Year</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Median Rent</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change from Prior Year</td>" +
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Median Rent</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change from Prior Year</td>" +	
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Median Rent</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change from Prior Year</td>" +
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Median Rent</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change from Prior Year</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Median Rent</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change from Prior Year</td>" +
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Median Rent</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change from Prior Year</td>" +	
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Median Rent</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change from Prior Year</td>" +
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Median Rent</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change from Prior Year</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Median Rent</td>" +				
									"<td style='font-size:9px;text-align:right;vertical-align:bottom;'>Change from Prior Year</td>" +
									"<td style='font-size:9px;width:5px;'>&nbsp;</td></tr>" +									
									
									"<tr class='body'>" +
									"<td style='font-size:9px;width:75px;text-align:left;'>Belknap</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2011"))-Math.round(data[0].getAttribute("belknap2000")))/Math.round(data[0].getAttribute("belknap2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("belknap2011")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2011"))-Math.round(data[0].getAttribute("belknap2010")))/Math.round(data[0].getAttribute("belknap2010"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("belknap2010")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2010"))-Math.round(data[0].getAttribute("belknap2009")))/Math.round(data[0].getAttribute("belknap2009"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("belknap2009")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2009"))-Math.round(data[0].getAttribute("belknap2008")))/Math.round(data[0].getAttribute("belknap2008"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("belknap2008")),"$","") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2008"))-Math.round(data[0].getAttribute("belknap2007")))/Math.round(data[0].getAttribute("belknap2007"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("belknap2007")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2007"))-Math.round(data[0].getAttribute("belknap2006")))/Math.round(data[0].getAttribute("belknap2006"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("belknap2006")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2006"))-Math.round(data[0].getAttribute("belknap2005")))/Math.round(data[0].getAttribute("belknap2005"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("belknap2005")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2005"))-Math.round(data[0].getAttribute("belknap2004")))/Math.round(data[0].getAttribute("belknap2004"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("belknap2004")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2004"))-Math.round(data[0].getAttribute("belknap2003")))/Math.round(data[0].getAttribute("belknap2003"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("belknap2003")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2003"))-Math.round(data[0].getAttribute("belknap2002")))/Math.round(data[0].getAttribute("belknap2002"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("belknap2002")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2002"))-Math.round(data[0].getAttribute("belknap2001")))/Math.round(data[0].getAttribute("belknap2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("belknap2001")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("belknap2001"))-Math.round(data[0].getAttribute("belknap2000")))/Math.round(data[0].getAttribute("belknap2000"))*1000)/10,"","%") + "</td>" +										


									"<td style='font-size:9px;width:5px;'>&nbsp;</td></tr>" +

									"<tr class='body'>" +
									"<td style='font-size:9px;width:75px;text-align:left;'>Carroll</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2011"))-Math.round(data[0].getAttribute("carroll2001")))/Math.round(data[0].getAttribute("carroll2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("carroll2011")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2011"))-Math.round(data[0].getAttribute("carroll2010")))/Math.round(data[0].getAttribute("carroll2010"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("carroll2010")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2010"))-Math.round(data[0].getAttribute("carroll2009")))/Math.round(data[0].getAttribute("carroll2009"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("carroll2009")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2009"))-Math.round(data[0].getAttribute("carroll2008")))/Math.round(data[0].getAttribute("carroll2008"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("carroll2008")),"$","") + "</td>" +	
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2008"))-Math.round(data[0].getAttribute("carroll2007")))/Math.round(data[0].getAttribute("carroll2007"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("carroll2007")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2007"))-Math.round(data[0].getAttribute("carroll2006")))/Math.round(data[0].getAttribute("carroll2006"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("carroll2006")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2006"))-Math.round(data[0].getAttribute("carroll2005")))/Math.round(data[0].getAttribute("carroll2005"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("carroll2005")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2005"))-Math.round(data[0].getAttribute("carroll2004")))/Math.round(data[0].getAttribute("carroll2004"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("carroll2004")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2004"))-Math.round(data[0].getAttribute("carroll2003")))/Math.round(data[0].getAttribute("carroll2003"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("carroll2003")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2003"))-Math.round(data[0].getAttribute("carroll2002")))/Math.round(data[0].getAttribute("carroll2002"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("carroll2002")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2002"))-Math.round(data[0].getAttribute("carroll2001")))/Math.round(data[0].getAttribute("carroll2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("carroll2001")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("carroll2001"))-Math.round(data[0].getAttribute("carroll2000")))/Math.round(data[0].getAttribute("carroll2000"))*1000)/10,"","%") + "</td>" +										


								
									"<td style='font-size:9px;width:5px;'>&nbsp;</td></tr>" +

									"<tr class='body'>" +
									"<td style='font-size:9px;width:75px;text-align:left;'>Cheshire</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2011"))-Math.round(data[0].getAttribute("cheshire2001")))/Math.round(data[0].getAttribute("cheshire2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("cheshire2011")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2011"))-Math.round(data[0].getAttribute("cheshire2010")))/Math.round(data[0].getAttribute("cheshire2010"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("cheshire2010")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2010"))-Math.round(data[0].getAttribute("cheshire2009")))/Math.round(data[0].getAttribute("cheshire2009"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("cheshire2009")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2009"))-Math.round(data[0].getAttribute("cheshire2008")))/Math.round(data[0].getAttribute("cheshire2008"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("cheshire2008")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2008"))-Math.round(data[0].getAttribute("cheshire2007")))/Math.round(data[0].getAttribute("cheshire2007"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("cheshire2007")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2007"))-Math.round(data[0].getAttribute("cheshire2006")))/Math.round(data[0].getAttribute("cheshire2006"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("cheshire2006")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2006"))-Math.round(data[0].getAttribute("cheshire2005")))/Math.round(data[0].getAttribute("cheshire2005"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("cheshire2005")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2005"))-Math.round(data[0].getAttribute("cheshire2004")))/Math.round(data[0].getAttribute("cheshire2004"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("cheshire2004")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2004"))-Math.round(data[0].getAttribute("cheshire2003")))/Math.round(data[0].getAttribute("cheshire2003"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("cheshire2003")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2003"))-Math.round(data[0].getAttribute("cheshire2002")))/Math.round(data[0].getAttribute("cheshire2002"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("cheshire2002")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2002"))-Math.round(data[0].getAttribute("cheshire2001")))/Math.round(data[0].getAttribute("cheshire2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("cheshire2001")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("cheshire2001"))-Math.round(data[0].getAttribute("cheshire2000")))/Math.round(data[0].getAttribute("cheshire2000"))*1000)/10,"","%") + "</td>" +										


									
									"<td style='font-size:9px;width:5px;'>&nbsp;</td></tr>" +									
									
									"<tr class='body'>" +
									"<td style='font-size:9px;width:75px;text-align:left;'>Coos</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2011"))-Math.round(data[0].getAttribute("coos2001")))/Math.round(data[0].getAttribute("coos2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("coos2011")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2011"))-Math.round(data[0].getAttribute("coos2010")))/Math.round(data[0].getAttribute("coos2010"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("coos2010")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2010"))-Math.round(data[0].getAttribute("coos2009")))/Math.round(data[0].getAttribute("coos2009"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("coos2009")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2009"))-Math.round(data[0].getAttribute("coos2008")))/Math.round(data[0].getAttribute("coos2008"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("coos2008")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2008"))-Math.round(data[0].getAttribute("coos2007")))/Math.round(data[0].getAttribute("coos2007"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("coos2007")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2007"))-Math.round(data[0].getAttribute("coos2006")))/Math.round(data[0].getAttribute("coos2006"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("coos2006")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2006"))-Math.round(data[0].getAttribute("coos2005")))/Math.round(data[0].getAttribute("coos2005"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("coos2005")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2005"))-Math.round(data[0].getAttribute("coos2004")))/Math.round(data[0].getAttribute("coos2004"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("coos2004")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2004"))-Math.round(data[0].getAttribute("coos2003")))/Math.round(data[0].getAttribute("coos2003"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("coos2003")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2003"))-Math.round(data[0].getAttribute("coos2002")))/Math.round(data[0].getAttribute("coos2002"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("coos2002")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2002"))-Math.round(data[0].getAttribute("coos2001")))/Math.round(data[0].getAttribute("coos2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("coos2001")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("coos2001"))-Math.round(data[0].getAttribute("coos2000")))/Math.round(data[0].getAttribute("coos2000"))*1000)/10,"","%") + "</td>" +										

									
									"<td style='font-size:9px;width:5px;'>&nbsp;</td></tr>" +
									
									"<tr class='body'>" +
									"<td style='font-size:9px;width:75px;text-align:left;'>Grafton</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2011"))-Math.round(data[0].getAttribute("grafton2001")))/Math.round(data[0].getAttribute("grafton2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("grafton2011")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2011"))-Math.round(data[0].getAttribute("grafton2010")))/Math.round(data[0].getAttribute("grafton2010"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("grafton2010")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2010"))-Math.round(data[0].getAttribute("grafton2009")))/Math.round(data[0].getAttribute("grafton2009"))*1000)/10,"","%") + "</td>" +

									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("grafton2009")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2009"))-Math.round(data[0].getAttribute("grafton2008")))/Math.round(data[0].getAttribute("grafton2008"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("grafton2008")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2008"))-Math.round(data[0].getAttribute("grafton2007")))/Math.round(data[0].getAttribute("grafton2007"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("grafton2007")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2007"))-Math.round(data[0].getAttribute("grafton2006")))/Math.round(data[0].getAttribute("grafton2006"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("grafton2006")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2006"))-Math.round(data[0].getAttribute("grafton2005")))/Math.round(data[0].getAttribute("grafton2005"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("grafton2005")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2005"))-Math.round(data[0].getAttribute("grafton2004")))/Math.round(data[0].getAttribute("grafton2004"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("grafton2004")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2004"))-Math.round(data[0].getAttribute("grafton2003")))/Math.round(data[0].getAttribute("grafton2003"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("grafton2003")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2003"))-Math.round(data[0].getAttribute("grafton2002")))/Math.round(data[0].getAttribute("grafton2002"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("grafton2002")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2002"))-Math.round(data[0].getAttribute("grafton2001")))/Math.round(data[0].getAttribute("grafton2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("grafton2001")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("grafton2001"))-Math.round(data[0].getAttribute("grafton2000")))/Math.round(data[0].getAttribute("grafton2000"))*1000)/10,"","%") + "</td>" +										


										
									"<td style='font-size:9px;width:5px;'>&nbsp;</td></tr>" +

									"<tr class='body'>" +
									"<td style='font-size:9px;width:75px;text-align:left;'>Hillsborough</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2011"))-Math.round(data[0].getAttribute("hillsborough2001")))/Math.round(data[0].getAttribute("hillsborough2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("hillsborough2011")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2011"))-Math.round(data[0].getAttribute("hillsborough2010")))/Math.round(data[0].getAttribute("hillsborough2010"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("hillsborough2010")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2010"))-Math.round(data[0].getAttribute("hillsborough2009")))/Math.round(data[0].getAttribute("hillsborough2009"))*1000)/10,"","%") + "</td>" +

									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("hillsborough2009")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2009"))-Math.round(data[0].getAttribute("hillsborough2008")))/Math.round(data[0].getAttribute("hillsborough2008"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("hillsborough2008")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2008"))-Math.round(data[0].getAttribute("hillsborough2007")))/Math.round(data[0].getAttribute("hillsborough2007"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("hillsborough2007")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2007"))-Math.round(data[0].getAttribute("hillsborough2006")))/Math.round(data[0].getAttribute("hillsborough2006"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("hillsborough2006")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2006"))-Math.round(data[0].getAttribute("hillsborough2005")))/Math.round(data[0].getAttribute("hillsborough2005"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("hillsborough2005")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2005"))-Math.round(data[0].getAttribute("hillsborough2004")))/Math.round(data[0].getAttribute("hillsborough2004"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("hillsborough2004")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2004"))-Math.round(data[0].getAttribute("hillsborough2003")))/Math.round(data[0].getAttribute("hillsborough2003"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("hillsborough2003")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2003"))-Math.round(data[0].getAttribute("hillsborough2002")))/Math.round(data[0].getAttribute("hillsborough2002"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("hillsborough2002")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2002"))-Math.round(data[0].getAttribute("hillsborough2001")))/Math.round(data[0].getAttribute("hillsborough2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("hillsborough2001")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("hillsborough2001"))-Math.round(data[0].getAttribute("hillsborough2000")))/Math.round(data[0].getAttribute("hillsborough2000"))*1000)/10,"","%") + "</td>" +										


										
									"<td style='font-size:9px;width:5px;'>&nbsp;</td></tr>" +									
									
									"<tr class='body'>" +
									"<td style='font-size:9px;width:75px;text-align:left;'>Merrimack</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2011"))-Math.round(data[0].getAttribute("merrimack2001")))/Math.round(data[0].getAttribute("merrimack2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("merrimack2011")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2011"))-Math.round(data[0].getAttribute("merrimack2010")))/Math.round(data[0].getAttribute("merrimack2010"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("merrimack2010")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2010"))-Math.round(data[0].getAttribute("merrimack2009")))/Math.round(data[0].getAttribute("merrimack2009"))*1000)/10,"","%") + "</td>" +

									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("merrimack2009")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2009"))-Math.round(data[0].getAttribute("merrimack2008")))/Math.round(data[0].getAttribute("merrimack2008"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("merrimack2008")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2008"))-Math.round(data[0].getAttribute("merrimack2007")))/Math.round(data[0].getAttribute("merrimack2007"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("merrimack2007")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2007"))-Math.round(data[0].getAttribute("merrimack2006")))/Math.round(data[0].getAttribute("merrimack2006"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("merrimack2006")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2006"))-Math.round(data[0].getAttribute("merrimack2005")))/Math.round(data[0].getAttribute("merrimack2005"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("merrimack2005")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2005"))-Math.round(data[0].getAttribute("merrimack2004")))/Math.round(data[0].getAttribute("merrimack2004"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("merrimack2004")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2004"))-Math.round(data[0].getAttribute("merrimack2003")))/Math.round(data[0].getAttribute("merrimack2003"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("merrimack2003")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2003"))-Math.round(data[0].getAttribute("merrimack2002")))/Math.round(data[0].getAttribute("merrimack2002"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("merrimack2002")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2002"))-Math.round(data[0].getAttribute("merrimack2001")))/Math.round(data[0].getAttribute("merrimack2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("merrimack2001")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("merrimack2001"))-Math.round(data[0].getAttribute("merrimack2000")))/Math.round(data[0].getAttribute("merrimack2000"))*1000)/10,"","%") + "</td>" +										


									
									"<td style='font-size:9px;width:5px;'>&nbsp;</td></tr>" +									
									
									"<tr class='body'>" +
									"<td style='font-size:9px;width:75px;text-align:left;'>Rockingham</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2011"))-Math.round(data[0].getAttribute("rockingham2001")))/Math.round(data[0].getAttribute("rockingham2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("rockingham2011")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2011"))-Math.round(data[0].getAttribute("rockingham2010")))/Math.round(data[0].getAttribute("rockingham2010"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("rockingham2010")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2010"))-Math.round(data[0].getAttribute("rockingham2009")))/Math.round(data[0].getAttribute("rockingham2009"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("rockingham2009")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2009"))-Math.round(data[0].getAttribute("rockingham2008")))/Math.round(data[0].getAttribute("rockingham2008"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("rockingham2008")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2008"))-Math.round(data[0].getAttribute("rockingham2007")))/Math.round(data[0].getAttribute("rockingham2007"))*1000)/10,"","%") + "</td>" +				
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("rockingham2007")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2007"))-Math.round(data[0].getAttribute("rockingham2006")))/Math.round(data[0].getAttribute("rockingham2006"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("rockingham2006")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2006"))-Math.round(data[0].getAttribute("rockingham2005")))/Math.round(data[0].getAttribute("rockingham2005"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("rockingham2005")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2005"))-Math.round(data[0].getAttribute("rockingham2004")))/Math.round(data[0].getAttribute("rockingham2004"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("rockingham2004")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2004"))-Math.round(data[0].getAttribute("rockingham2003")))/Math.round(data[0].getAttribute("rockingham2003"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("rockingham2003")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2003"))-Math.round(data[0].getAttribute("rockingham2002")))/Math.round(data[0].getAttribute("rockingham2002"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("rockingham2002")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2002"))-Math.round(data[0].getAttribute("rockingham2001")))/Math.round(data[0].getAttribute("rockingham2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("rockingham2001")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("rockingham2001"))-Math.round(data[0].getAttribute("rockingham2000")))/Math.round(data[0].getAttribute("rockingham2000"))*1000)/10,"","%") + "</td>" +										


									
									"<td style='font-size:9px;width:5px;'>&nbsp;</td></tr>" +

									"<tr class='body'>" +
									"<td style='font-size:9px;width:75px;text-align:left;'>Strafford</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2011"))-Math.round(data[0].getAttribute("strafford2001")))/Math.round(data[0].getAttribute("strafford2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("strafford2011")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2011"))-Math.round(data[0].getAttribute("strafford2010")))/Math.round(data[0].getAttribute("strafford2010"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("strafford2010")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2010"))-Math.round(data[0].getAttribute("strafford2009")))/Math.round(data[0].getAttribute("strafford2009"))*1000)/10,"","%") + "</td>" +

									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("strafford2009")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2009"))-Math.round(data[0].getAttribute("strafford2008")))/Math.round(data[0].getAttribute("strafford2008"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("strafford2008")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2008"))-Math.round(data[0].getAttribute("strafford2007")))/Math.round(data[0].getAttribute("strafford2007"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("strafford2007")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2007"))-Math.round(data[0].getAttribute("strafford2006")))/Math.round(data[0].getAttribute("strafford2006"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("strafford2006")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2006"))-Math.round(data[0].getAttribute("strafford2005")))/Math.round(data[0].getAttribute("strafford2005"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("strafford2005")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2005"))-Math.round(data[0].getAttribute("strafford2004")))/Math.round(data[0].getAttribute("strafford2004"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("strafford2004")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2004"))-Math.round(data[0].getAttribute("strafford2003")))/Math.round(data[0].getAttribute("strafford2003"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("strafford2003")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2003"))-Math.round(data[0].getAttribute("strafford2002")))/Math.round(data[0].getAttribute("strafford2002"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("strafford2002")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2002"))-Math.round(data[0].getAttribute("strafford2001")))/Math.round(data[0].getAttribute("strafford2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("strafford2001")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("strafford2001"))-Math.round(data[0].getAttribute("strafford2000")))/Math.round(data[0].getAttribute("strafford2000"))*1000)/10,"","%") + "</td>" +										


										
									"<td style='font-size:9px;width:5px;'>&nbsp;</td></tr>" +									
									
									"<tr class='body'>" +
									"<td style='font-size:9px;width:75px;text-align:left;'>Sullivan</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2011"))-Math.round(data[0].getAttribute("sullivan2001")))/Math.round(data[0].getAttribute("sullivan2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("sullivan2011")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2011"))-Math.round(data[0].getAttribute("sullivan2010")))/Math.round(data[0].getAttribute("sullivan2010"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("sullivan2010")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2010"))-Math.round(data[0].getAttribute("sullivan2009")))/Math.round(data[0].getAttribute("sullivan2009"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("sullivan2009")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2009"))-Math.round(data[0].getAttribute("sullivan2008")))/Math.round(data[0].getAttribute("sullivan2008"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("sullivan2008")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2008"))-Math.round(data[0].getAttribute("sullivan2007")))/Math.round(data[0].getAttribute("sullivan2007"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("sullivan2007")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2007"))-Math.round(data[0].getAttribute("sullivan2006")))/Math.round(data[0].getAttribute("sullivan2006"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("sullivan2006")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2006"))-Math.round(data[0].getAttribute("sullivan2005")))/Math.round(data[0].getAttribute("sullivan2005"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("sullivan2005")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2005"))-Math.round(data[0].getAttribute("sullivan2004")))/Math.round(data[0].getAttribute("sullivan2004"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("sullivan2004")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2004"))-Math.round(data[0].getAttribute("sullivan2003")))/Math.round(data[0].getAttribute("sullivan2003"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("sullivan2003")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2003"))-Math.round(data[0].getAttribute("sullivan2002")))/Math.round(data[0].getAttribute("sullivan2002"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("sullivan2002")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2002"))-Math.round(data[0].getAttribute("sullivan2001")))/Math.round(data[0].getAttribute("sullivan2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("sullivan2001")),"$","") + "</td>" +
									"<td style='font-size:9px;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("sullivan2001"))-Math.round(data[0].getAttribute("sullivan2000")))/Math.round(data[0].getAttribute("sullivan2000"))*1000)/10,"","%") + "</td>" +										


										
									"<td style='font-size:9px;width:5px;'>&nbsp;</td></tr>" +									
							
							
									"<tr class='body'>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:75px;text-align:left;'>NH State</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2011"))-Math.round(data[0].getAttribute("nh2001")))/Math.round(data[0].getAttribute("nh2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("nh2011")),"$","") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2011"))-Math.round(data[0].getAttribute("nh2010")))/Math.round(data[0].getAttribute("nh2010"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("nh2010")),"$","") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2010"))-Math.round(data[0].getAttribute("nh2009")))/Math.round(data[0].getAttribute("nh2009"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("nh2009")),"$","") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2009"))-Math.round(data[0].getAttribute("nh2008")))/Math.round(data[0].getAttribute("nh2008"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("nh2008")),"$","") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2008"))-Math.round(data[0].getAttribute("nh2007")))/Math.round(data[0].getAttribute("nh2007"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("nh2007")),"$","") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2007"))-Math.round(data[0].getAttribute("nh2006")))/Math.round(data[0].getAttribute("nh2006"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("nh2006")),"$","") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2006"))-Math.round(data[0].getAttribute("nh2005")))/Math.round(data[0].getAttribute("nh2005"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("nh2005")),"$","") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2005"))-Math.round(data[0].getAttribute("nh2004")))/Math.round(data[0].getAttribute("nh2004"))*1000)/10,"","%") + "</td>" +									
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("nh2004")),"$","") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2004"))-Math.round(data[0].getAttribute("nh2003")))/Math.round(data[0].getAttribute("nh2003"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("nh2003")),"$","") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2003"))-Math.round(data[0].getAttribute("nh2002")))/Math.round(data[0].getAttribute("nh2002"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("nh2002")),"$","") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2002"))-Math.round(data[0].getAttribute("nh2001")))/Math.round(data[0].getAttribute("nh2001"))*1000)/10,"","%") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("nh2001")),"$","") + "</td>" +
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:50px;text-align:right;'>" + chkValue(Math.round((Math.round(data[0].getAttribute("nh2001"))-Math.round(data[0].getAttribute("nh2000")))/Math.round(data[0].getAttribute("nh2000"))*1000)/10,"","%") + "</td>" +										


									
									"<td style='font-size:9px;height:35px;vertical-align:bottom;width:5px;'>&nbsp;</td></tr>" +									
							
							
									"</table><br><br><br>" +							

								"</td></tr>" +
								"</table>" +
								"</td></tr></table>" +
								
								"</td></tr></table>";

					
					document.getElementById("page1").innerHTML = html1;	 
					    g1.build("graph1","",300,50,"","%");	 
					
					document.getElementById("page2").innerHTML = html2;
							  		  
}		  
		  document.getElementById("pwait").innerHTML = ""; 
               }
            }
        };
        xmlhttp.send(null); 
    }
}






