/*
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 rentalcost(code1,code2) {
	var okToContinue = "Yes";
    var url=null;
    xmlhttp=null;
   
    document.getElementById("page1").style.height = '440px';
    document.getElementById("page2").style.height = '440px';
    document.getElementById("page3").style.height = '500px';
    document.getElementById("page4").style.height = '675px';
    document.getElementById("page5").style.height = '750px';
    document.getElementById("page6").style.height = '750px';   
    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=rentalcost";
    
    /* 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 html3 = "<table><tr><td width='100%' valign='top'>" +
		  
		  		"<table width='725px' class='outside'><tr><td>" +
				    "<table width='100%' height='100%' class='inside'>" +
		   			"<tr><td valign='top' align='left'>" +	
					
					"<table class='data'>" +
					"<tr class='head'><td colspan='10' style='text-align:center;'>" +
					"<font size='5'>Gross Rent as a Percent of 1999 Household Income</font><br>" +
					"<font size='2'>"+code1+": "+code2+"</font><br><br></td></tr>" +
					
					"<tr class='head'>" +
					"<td style='width:175px;text-align:left;vertical-align:bottom;'>Percentage of Income</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>Specified<br>Renter Occ.<br>Houseing</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>Less than<br>$10,000</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>$10,000 to<br>$19,999</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>$20,000 to<br>$34,999</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>$35,000 to<br>$49,999</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>$50,000 to<br>$74,999</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>$75,000 to<br>$99,999</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>$100,000<br>or More</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +
					
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>All Renter Households</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntAllHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncLT10k")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc10to20k")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc20to35k")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc35to40k")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc50to75k")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc75to100k")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncGT100k")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +
					
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent Less than 20% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntLT20PctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntLT20pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntLT20pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntLT20pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntLT20pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntLT20pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntLT20pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntLT20pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +
					
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent 20% to 24.9% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntt20to25pctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRnt20to25pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRnt20to25pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRnt20to25pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRnt20to25pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRnt20to25pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRnt20to25pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRnt20to25pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +			
										
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent 25% to 29.9% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRnt25to30pctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRnt25to30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRnt25to30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRnt25to30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRnt25to30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRnt25to30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRnt25to30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRnt25to30pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +											
										
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent Less Than 30% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntLT30PctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntLT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntLT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntLT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntLT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntLT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntLT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntLT30pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +								
						
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent 30% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntGT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntGT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntGT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntGT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntGT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntGT30pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntGT30pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +								
						
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent 30% to 34.9% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRnt30to35pctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRnt30to35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRnt30to35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRnt30to35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRnt30to35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRnt30to35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRnt30to35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRnt30to35pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +		
					
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent Less Than 35% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntLT35PctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntLT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntLT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntLT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntLT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntLT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntLT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntLT35pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +						
					
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent 35% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntGT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntGT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntGT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntGT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntGT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntGT35pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntGT35pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +						
					
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent 50% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntGT50PctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +							
					"</tr><tr class='body'>" +
					
					"<td style='width:175px;text-align:left;'>Percent Not Computed</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69PctNotComputHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kPctNotComput")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntPctNC")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntPctNC")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntPctNC")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntPctNC")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntPctNC")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntPctNC")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +													
									
					"</tr><tr class='head'>" +
					"<td style='height:35px;width:175px;text-align:left;vertical-align:bottom;'>Percent of Households Paying</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +							
					"</tr><tr class='body'>" +									
								
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent Less Than 30% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntLT30PctHHInc")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntLT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhIncLT10k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntLT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc10to20k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntLT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc20to35k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntLT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc35to40k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntLT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc50to75k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntLT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc75to100k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntLT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhIncGT100k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +									
								
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent 30% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntGT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhIncLT10k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntGT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc10to20k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntGT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc20to35k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntGT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc35to40k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntGT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc50to75k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntGT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc75to100k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntGT30pct")) / Math.round(data[0].getAttribute("H73ROHUHhIncGT100k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +										
								
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent Less Than 35% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntLT35PctHHInc")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntLT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhIncLT10k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntLT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc10to20k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntLT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc20to35k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntLT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc35to40k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntLT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc50to75k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntLT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc75to100k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntLT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhIncGT100k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +										
									
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent 35% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntGT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhIncLT10k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntGT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc10to20k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntGT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc20to35k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntGT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc35to40k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntGT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc50to75k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntGT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhInc75to100k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntGT35pct")) / Math.round(data[0].getAttribute("H73ROHUHhIncGT100k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +											
									
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Rent 50% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntGT50PctHHInc")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +	
					
					"</tr><tr class='body'>" +
					"<td style='width:175px;text-align:left;'>Percent Not Computed</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69PctNotComputHHInc")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhIncLT10kPctNotComput")) / Math.round(data[0].getAttribute("H73ROHUHhIncLT10k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntPctNC")) / Math.round(data[0].getAttribute("H73ROHUHhInc10to20k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntPctNC")) / Math.round(data[0].getAttribute("H73ROHUHhInc20to35k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntPctNC")) / Math.round(data[0].getAttribute("H73ROHUHhInc35to40k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntPctNC")) / Math.round(data[0].getAttribute("H73ROHUHhInc50to75k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntPctNC")) / Math.round(data[0].getAttribute("H73ROHUHhInc75to100k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntPctNC")) / Math.round(data[0].getAttribute("H73ROHUHhIncGT100k")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +																
													
					"</tr></table><br>" +							
					
					"<font size='1' color='red'>Source: Census 2000, SF3, Tables H73 and H69</font><br>" +
					
					"</td></tr>" +
					"</table>" +
					"</td></tr></table>" +	
					
				"</td></tr></table>";			

		  var html5 = "<table><tr><td width='100%' valign='top'>" +
		  
		  		"<table width='725px' class='outside'><tr><td>" +
				    "<table width='100%' height='100%' class='inside'>" +
		   			"<tr><td valign='top' align='left'>" +	
					
					"<table class='data'>" +
					"<tr class='head'><td colspan='10' style='text-align:center;'>" +
					"<font size='5'>Gross Rent as a Percent of Household Income by Median Family Income</font><br>" +
					"<font size='2'>"+code1+": "+code2+"</font><br><br></td></tr>" +
					
					"<tr class='head'>" +
					"<td style='width:200px;text-align:left;vertical-align:bottom;'>Percentage of Income</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>Specified<br>Renter Occ.<br>Houseing</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>Under 30% of Median Family Income</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>Under 50% of Median Family Income</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>Under 60% of Median Family Income</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>Under 80% of Median Family Income</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>Under 100% of Median Family Income</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>Under 120% of Median Family Income</td>" +
					"<td style='text-align:right;vertical-align:bottom;'>Over 120% of Median Family Income</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +
					
					"</tr><tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Estimated Income Threshold</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamInc30Pct")),"$","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamInc50Pct")),"$","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamInc60Pct")),"$","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamInc80Pct")),"$","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamInc")),"$","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamInc120Pct")),"$","") + "</td>" +
					"<td style='text-align:right;'>&nbsp;</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +					
					
					
					"</tr><tr class='body'>" +
					"<td style='width:200px;text-align:left;'>All Renter Households</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntAllHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT30PctAll")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT50PctAll")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT60PctAll")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT80PctAll")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT100PctAll")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT120PctAll")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncGT120PctAll")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +
					
					"</tr><tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent Less than 20% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntLT20PctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT30PctLT20Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT50PctLT20Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT60PctLT20Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT80PctLT20Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT100PctLT20Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT120PctLT20Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncGT120PctLT20Pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +
					
					"</tr><tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent 20% to 24.9% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntt20to25pctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT30Pct-20to25Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT50Pct-20to25Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT60Pct-20to25Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT80Pct-20to25Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT100Pct-20to25Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT120Pct-20to25Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncGT120Pct-20to25Pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +			
										
					"</tr><tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent 25% to 29.9% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRnt25to30pctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT30Pct-25to30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT50Pct-25to30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT60Pct-25to30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT80Pct-25to30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT100Pct-25to30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT120Pct-25to30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncGT120Pct-25to30Pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +											
										
					"</tr><tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent Less Than 30% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntLT30PctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT30PctLT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT50PctLT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT60PctLT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT80PctLT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT100PctLT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT120PctLT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncGT120PctLT30Pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +								
						
					"</tr><tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent 30% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT30PctGT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT50PctGT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT60PctGT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT80PctGT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT100PctGT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT120PctGT30Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncGT120PctGT30Pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +								
						
					"</tr><tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent 30% to 34.9% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRnt30to35pctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT30Pct-30to35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT50Pct-30to35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT60Pct-30to35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT80Pct-30to35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT100Pct-30to35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT120Pct-30to35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncGT120Pct-30to35Pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +		
					
					"</tr><tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent Less Than 35% of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntLT35PctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT30PctLT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT50PctLT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT60PctLT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT80PctLT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT100PctLT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT120PctLT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncGT120PctLT35Pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +						
					
					"</tr><tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent 35% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT30PctGT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT50PctGT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT60PctGT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT80PctGT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT100PctGT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT120PctGT35Pct")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncGT120PctGT35Pct")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +						
					
					"</tr><tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Percent Not Computed</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69PctNotComputHHInc")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT30PctPNC")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT50PctPNC")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT60PctPNC")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT80PctPNC")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT100PctPNC")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncLT120PctPNC")),"","") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("P77MedFamIncGT120PctPNC")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td>" +													
									
					"</tr><tr class='head'><td colspan='10' style='text-align:center;'>" +
					"<font size='3'><br><br><br>By Percent of 1999 Median Family Income</font><br>" +
					"<font size='2'>"+code1+": "+code2+"</font></td></tr>" +														
								
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;height:35px;vertical-align:bottom;'>Gross Rent as a Percent of HH Income</td>" +
					"<td colspan='8' style='text-align:center;vertical-align:bottom;'>(Percent of Renter Houshold within Income Group)</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +									
								
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent 30% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT30PctGT30Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT30PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT50PctGT30Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT50PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT60PctGT30Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT60PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT80PctGT30Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT80PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT100PctGT30Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT100PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT120PctGT30Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT120PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncGT120PctGT30Pct")) / Math.round(data[0].getAttribute("P77MedFamIncGT120PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																		
									
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent 35% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT30PctGT35Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT30PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT50PctGT35Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT50PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT60PctGT35Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT60PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT80PctGT35Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT80PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT100PctGT35Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT100PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT120PctGT35Pct")) / Math.round(data[0].getAttribute("P77MedFamIncLT120PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncGT120PctGT35Pct")) / Math.round(data[0].getAttribute("P77MedFamIncGT120PctAll")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +											
									
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;height:35px;vertical-align:bottom;'>Gross Rent as a Percent of HH Income</td>" +
					"<td colspan='8' style='text-align:center;vertical-align:bottom;'>(Percent of Renter Houshold within Rental Overpayment Group)</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																	
								
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent 30% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) / Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT30PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT50PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT60PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT80PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT100PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT120PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncGT120PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																			
									
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent 35% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")) / Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT30PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT50PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT60PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT80PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT100PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT120PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncGT120PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +		
					
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;height:35px;vertical-align:bottom;'>Gross Rent as a Percent of HH Income</td>" +
					"<td colspan='8' style='text-align:center;vertical-align:bottom;'>(Percent of Total Renter Housholds for Area)</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +												
								
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Renter Households</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntAllHHInc")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT30PctAll")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT50PctAll")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT60PctAll")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT80PctAll")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT100PctAll")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT120PctAll")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncGT120PctAll")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +									
								
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent 30% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntGT30PctHHInc")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT30PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT50PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT60PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT80PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT100PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT120PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncGT120PctGT30Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																		
									
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Rent 35% or More of HH Income</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("H69GRntGT35PctHHInc")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT30PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT50PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT60PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT80PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT100PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncLT120PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(Math.round(data[0].getAttribute("P77MedFamIncGT120PctGT35Pct")) / Math.round(data[0].getAttribute("H69GRntAllHHInc")) * 1000) / 10,"","%") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																
													
					"</table><br>" +							
					
					"<font size='1' color='red'>Source: Census 2000, SF3, Tables H73, "+
					"recalculated using the Median Family Income Table P77</font><br>" +
					
					"</td></tr>" +
					"</table>" +
					"</td></tr></table>" +	
					
				"</td></tr></table>";					

		  var html6 = "<table><tr><td width='100%' valign='top'>" +
		  
		  		"<table width='725px' class='outside'><tr><td>" +
				    "<table width='100%' height='100%' class='inside'>" +
		   			"<tr><td valign='top' align='left'>" +	
					
					"<table cellspacing='0' cellpadding='0'>" +
					"<tr><td width='280' valign='top'>" +
					
					"<table class='data' style='width:280px;'>" +
					"<tr class='head'><td colspan='3' style='text-align:center;'>" +
					"<font size='5'>Rental Housing Costs</font>" +
					"<br /><br />" +
					"<font size='3'>Renter Occupied Housing Units By Gross Rent</font><br>" +
					"<font size='2'>"+code1+": "+code2+"</font><br><br></td></tr>" +
					
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Specified Renter Occ Housing Units</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H69GRntAllHHInc")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +							
					
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Renter Occ. Housing Units w/ Cash Rent</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62RntrOccHUwRent")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +						
					
					"<tr class='head'>" +
					"<td style='width:200px;text-align:left;height:35px;vertical-align:bottom;'>Gross Rent</td>" +
					"<td style='text-align:right;height:35px;vertical-align:bottom;'>Units</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +
					
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Less than $100</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRentLT100")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +		
							
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$100 to $149</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent100to149")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																				
													
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$150 to $199</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent150to199")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +														
										
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$200 to $249</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent200to249")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																				
													
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$250 to $299</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent250to299")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +											
										
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$300 to $349</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent300to349")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																				
													
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$350 to $399</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent350to399")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +	
					
									"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$400 to $449</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent400to449")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																				
													
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$450 to $499</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent450to499")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +		
					
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$500 to $549</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent500to549")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																				
													
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$550 to $599</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent550to599")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +		
					
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$600 to $649</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent600to649")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																				
													
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$650 to $699</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent650to699")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +		
															
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$700 to $749</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent700to749")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																				
													
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$750 to $799</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent750to799")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +	
						
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$800 to $899</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent800to899")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																				
													
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$900 to $999</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent900to999")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +	
					
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$1000 to $1249</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent1000to1249")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +																				
													
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$1250 to $1999</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent1250to1999")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +		
					
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>$2000 or More</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUGRent2000GT")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +											
							
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Renter Occ. Housing Units w/ No Cash Rent</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H62ROHUNoGRent")),"","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +		
					
					"<tr class='body'>" +
					"<td style='width:200px;text-align:left;'>Median Gross Rent</td>" +
					"<td style='text-align:right;'>" + chkValue(Math.round(data[0].getAttribute("H63MedianGrossRnt")),"$","") + "</td>" +
					"<td style='width:25px;'>&nbsp;</td></tr>" +								
													
					"</table><br>" +							

					"</td><td width='445' align='center' valign='top'>" +
					
					"<br>" +
					"<font size='3'><b>Gross Rent Distribution</b></font>" +
					
					"<div id='graphpage6' style='position:relative;width:350px;padding:0px;'>" +
				    "<div id='graph4' style='position:absolute;top:25px;left:75px;padding:0px;'></div>" +
					"</div>" +
					
					"</td></tr></table><br /><br /><br /><br />" +
					
					"<font size='1' color='red'>Source: Census 2000, SF3, Tables H62</font><br>" +
					
					"</td></tr>" +
					"</table>" +
					"</td></tr></table>" +	
					
				"</td></tr></table>";					
				
	var html1 =	"<table><tr><td>" +				
				
		  			"<table width='725px' height='425px' class='outside'><tr><td>" +
				    	"<table width='100%' height='100%' class='inside'>" +
		   			"<tr><td valign='top' align='left'>" +	
					"<center><font size='4'><b>Gross Rent Overpayment at 30% of 1999 Household Income</b></font><br>" +
					"<font size='2'>"+code1+": "+code2+"</font></center>" +						
				
				    "<div id='graphpage1' style='position:relative;width:650px;height:375px;padding:0px;'>" +
				    "<div id='graph1' style='position:absolute;left:75px;padding:0px;'></div>" +
					"</div>" +
					
					"</td></tr>" +
					"</table>" +
					"</td></tr></table>" +	
									
				"</td></tr></table>";
				
	var html2 =	"<table><tr><td>" +				
				
		  			"<table width='725px' height='425px' class='outside'><tr><td>" +
				    	"<table width='100%' height='100%' class='inside'>" +
		   			"<tr><td valign='top' align='left'>" +	
					"<center><font size='4'><b>Gross Rent Overpayment at 35% of 1999 Household Income</b></font><br>" +
					"<font size='2'>"+code1+": "+code2+"</font></center>" +						
				
				    "<div id='graphpage2' style='position:relative;width:650px;height:375px;padding:0px;'>" +
				    "<div id='graph2' style='position:absolute;left:75px;padding:0px;'></div>" +
					"</div>"
					
					"</td></tr>" +
					"</table>" +
					"</td></tr></table>" +	
									
				"</td></tr></table>";				
					
	var html4 =	"<table><tr><td>" +				
				
		  			"<table width='725px' height='650px' class='outside'><tr><td>" +
				    	"<table width='100%' height='100%' class='inside'>" +
		   			"<tr><td valign='top' align='left'>" +	
					"<center><font size='4'><b>Gross Rent Overpayment by Percent of 1999 Median Family Income</b></font><br>" +
					"<font size='2'>"+code1+": "+code2+"</font></center>" +						
				
				    "<div id='graphpage3' style='position:relative;width:650px;height:600px;padding:0px;'>" +
				    "<div id='graph3' style='position:absolute;left:75px;padding:0px;'></div>" +
					"</div>" +
					
					"</td></tr>" +
					"</table>" +
					"</td></tr></table>" +	
									
				"</td></tr></table>";					

					
var b1 = new bar_chart(7,"<font size='1'>Less than $10,000</font>|<font size='1'>$10,000 to $19,999</font>|<font size='1'>$20,000 to $34,999</font>|<font size='1'>$35,000 to $49,999</font>|<font size='1'>$50,000 to $74,999</font>|<font size='1'>$75,000 to $99,999</font>|<font size='1'>$100,000 or More</font>");
var b2 = new bar_chart(7,"<font size='1'>Less than $10,000</font>|<font size='1'>$10,000 to $19,999</font>|<font size='1'>$20,000 to $34,999</font>|<font size='1'>$35,000 to $49,999</font>|<font size='1'>$50,000 to $74,999</font>|<font size='1'>$75,000 to $99,999</font>|<font size='1'>$100,000 or More</font>");
var b3 = new bar_chart(7,"<font size='1'>Under 30% of Median Family Income</font>|<font size='1'>Under 50% of Median Family Income</font>|<font size='1'>Under 60% of Median Family Income</font>|<font size='1'>Under 80% of Median Family Income</font>|<font size='1'>Under 100% of Median Family Income</font>|<font size='1'>Under 120% of Median Family Income</font>|<font size='1'>Over 120% of Median Family Income</font>");
var b4 = new bar_chart(21,"<font size='1'>Less than $100</font>|<font size='1'>$100 to $149</font>|<font size='1'>$150 to $199</font>|<font size='1'>$200 to $249</font>|<font size='1'>$250 to $299</font>|<font size='1'>$300 to $349</font>|<font size='1'>$350 to $399</font>|<font size='1'>$400 to $449</font>|<font size='1'>$450 to $499</font>|<font size='1'>$500 to $549</font>|<font size='1'>$550 to $599</font>|<font size='1'>$600 to $649</font>|<font size='1'>$650 to $699</font>|<font size='1'>$700 to $749</font>|<font size='1'>$750 to $799</font>|<font size='1'>$800 to $899</font>|<font size='1'>$900 to $999</font>|<font size='1'>$1000 to $1249</font>|<font size='1'>$1250 to $1499</font>|<font size='1'>$1500 to $1999</font>|<font size='1'>$2000 or More</font>");


b1.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhIncLT10kPctNotComput")),0);
b1.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntGT30pct")),0);
b1.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntLT30pct")),0);

b1.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntPctNC")),1);
b1.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntGT30pct")),1);
b1.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntLT30pct")),1);

b1.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntPctNC")),2);
b1.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntGT30pct")),2);
b1.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntLT30pct")),2);

b1.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntPctNC")),3);
b1.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntGT30pct")),3);
b1.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntLT30pct")),3);

b1.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntPctNC")),4);
b1.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntGT30pct")),4);
b1.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntLT30pct")),4);

b1.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntPctNC")),5);
b1.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntGT30pct")),5);
b1.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntLT30pct")),5);

b1.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntPctNC")),6);
b1.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntGT30pct")),6);
b1.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntLT30pct")),6);



b2.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhIncLT10kPctNotComput")),0);
b2.add("Rent 35% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntGT35pct")),0);
b2.add("Rent Less Than 35% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhIncLT10kRntLT35pct")),0);

b2.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntPctNC")),1);
b2.add("Rent 35% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntGT35pct")),1);
b2.add("Rent Less Than 35% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc10to20kRntLT35pct")),1);

b2.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntPctNC")),2);
b2.add("Rent 35% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntGT35pct")),2);
b2.add("Rent Less Than 35% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc20to35kRntLT35pct")),2);

b2.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntPctNC")),3);
b2.add("Rent 35% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntGT35pct")),3);
b2.add("Rent Less Than 35% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc35to40kRntLT35pct")),3);

b2.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntPctNC")),4);
b2.add("Rent 35% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntGT35pct")),4);
b2.add("Rent Less Than 35% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc50to75kRntLT35pct")),4);

b2.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntPctNC")),5);
b2.add("Rent 35% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntGT35pct")),5);
b2.add("Rent Less Than 35% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhInc75to100kRntLT35pct")),5);
                                                             													 
b2.add("Percent Not Computed",Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntPctNC")),6);
b2.add("Rent 35% or More of HH Income",Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntGT35pct")),6);
b2.add("Rent Less Than 35% of HH Income",Math.round(data[0].getAttribute("H73ROHUHhIncGT100kRntLT35pct")),6);



b3.add("Percent Not Computed",Math.round(data[0].getAttribute("P77MedFamIncLT30PctPNC")),0);
b3.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT30PctGT30Pct")),0);
b3.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT30PctLT30Pct")),0);

b3.add("Percent Not Computed",Math.round(data[0].getAttribute("P77MedFamIncLT50PctPNC")),1);
b3.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT50PctGT30Pct")),1);
b3.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT50PctLT30Pct")),1);

b3.add("Percent Not Computed",Math.round(data[0].getAttribute("P77MedFamIncLT60PctPNC")),2);
b3.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT60PctGT30Pct")),2);
b3.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT60PctLT30Pct")),2);

b3.add("Percent Not Computed",Math.round(data[0].getAttribute("P77MedFamIncLT80PctPNC")),3);
b3.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT80PctGT30Pct")),3);
b3.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT80PctLT30Pct")),3);

b3.add("Percent Not Computed",Math.round(data[0].getAttribute("P77MedFamIncLT100PctPNC")),4);
b3.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT100PctGT30Pct")),4);
b3.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT100PctLT30Pct")),4);

b3.add("Percent Not Computed",Math.round(data[0].getAttribute("P77MedFamIncLT120PctPNC")),5);
b3.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT120PctGT30Pct")),5);
b3.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("P77MedFamIncLT120PctLT30Pct")),5);
                                                             													 
b3.add("Percent Not Computed",Math.round(data[0].getAttribute("P77MedFamIncGT120PctPNC")),6);
b3.add("Rent 30% or More of HH Income",Math.round(data[0].getAttribute("P77MedFamIncGT120PctGT30Pct")),6);
b3.add("Rent Less Than 30% of HH Income",Math.round(data[0].getAttribute("P77MedFamIncGT120PctLT30Pct")),6);
  
  
  
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRentLT100")),0);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent100to149")),1);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent150to199")),2);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent200to249")),3);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent250to299")),4);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent300to349")),5);   
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent350to399")),6);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent400to449")),7);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent450to499")),8);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent500to549")),9);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent550to599")),10);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent600to649")),11);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent650to699")),12);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent700to749")),13);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent750to799")),14);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent800to899")),15);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent900to999")),16);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent1000to1249")),17);   
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent1250to1499")),18);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent1500to1999")),19);
b4.add("",Math.round(data[0].getAttribute("H62ROHUGRent2000GT")),20);
   
  
		  document.getElementById("page1").innerHTML = html1;	  
		  	  b1.build("graph1","Renter Households",600,8,25); 
			  
		  document.getElementById("page2").innerHTML = html2;	
		  	  b2.build("graph2","Renter Households",600,8,25);			  
			  			  
		  document.getElementById("page3").innerHTML = html3;  
		  
		  document.getElementById("page4").innerHTML = html4;	  
		  	  b3.build("graph3","Renter Households",600,8,45); 
			  
		  document.getElementById("page5").innerHTML = html5; 			  
			  
		  document.getElementById("page6").innerHTML = html6;	  
		  	  b4.build("graph4","<br><br>Renter Occupied Housing Units",280,5,15,"",100); 			  
}			  
		  document.getElementById("pwait").innerHTML = ""; 
               }
            }
        };
        xmlhttp.send(null); 
    }
}

