function myVoid() { ; }

// Load array for LTC Costs
function ltcCosts(stName, nhcsp, nhcp, hhchha, hhch, alc, ads){
        this.stName = stName
        this.nhcsp = nhcsp
        this.nhcp = nhcp
        this.hhchha = hhchha
        this.hhch = hhch
        this.alc = alc
        this.ads = ads
}
ltcCostEntry = new Array(52)
ltcCostEntry[0] = new ltcCosts("Alabama","$161","$167","$18","$16","$2,425","$34")
ltcCostEntry[1] = new ltcCosts("Alaska","$566","$577","$25","$21","$4,645","$80")
ltcCostEntry[2] = new ltcCosts("Arizona","$171","$214","$21","$19","$2,947","$79")
ltcCostEntry[3] = new ltcCosts("Arkansas","$129","$152","$16","$15","$2,289","$53")
ltcCostEntry[4] = new ltcCosts("California","$201","$249","$22","$20","$3,132","$74")
ltcCostEntry[5] = new ltcCosts("Colorado","$180","$200","$24","$19","$3,121","$66")
ltcCostEntry[6] = new ltcCosts("Connecticut","$335","$362","$27","$19","$4,286","$73")
ltcCostEntry[7] = new ltcCosts("DC","$269","$295","$19","$18","$4,414","$100")
ltcCostEntry[8] = new ltcCosts("Delaware","$221","$239","$21","$19","$4,053","$65")
ltcCostEntry[9] = new ltcCosts("Florida","$191","$218","$17","$16","$2,748","$54")
ltcCostEntry[10] = new ltcCosts("Georgia","$159","$171","$17","$17","$2,732","$57")
ltcCostEntry[11] = new ltcCosts("Hawaii","$299","$306","$23","$21","$3,566","$59")
ltcCostEntry[12] = new ltcCosts("Idaho","$180","$192","$18","$17","$2,847","$91")
ltcCostEntry[13] = new ltcCosts("Illinois","$159","$202","$20","$19","$3,444","$58")
ltcCostEntry[14] = new ltcCosts("Indiana","$157","$195","$22","$19","$2,573","$77")
ltcCostEntry[15] = new ltcCosts("Iowa","$132","$156","$23","$20","$2,424","$51")
ltcCostEntry[16] = new ltcCosts("Kansas","$136","$147","$18","$17","$2,736","$77")
ltcCostEntry[17] = new ltcCosts("Kentucky","$168","$184","$20","$19","$2,831","$67")
ltcCostEntry[18] = new ltcCosts("Louisiana","$127","$132","$16","$14","$2,318","$48")
ltcCostEntry[19] = new ltcCosts("Maine","$231","$255","$21","$20","$4,571","$90")
ltcCostEntry[20] = new ltcCosts("Maryland","$218","$248","$19","$18","$3,659","$76")
ltcCostEntry[21] = new ltcCosts("Massachusetts","$286","$302","$25","$22","$4,192","$56")
ltcCostEntry[22] = new ltcCosts("Michigan","$195","$203","$19","$18","$2,943","$70")
ltcCostEntry[23] = new ltcCosts("Minnesota","$127","$149","$28","$22","$2,524","$64")
ltcCostEntry[24] = new ltcCosts("Mississippi","$176","$184","$16","$16","$2,541","$49")
ltcCostEntry[25] = new ltcCosts("Missouri","$131","$147","$18","$18","$2,628","$67")
ltcCostEntry[26] = new ltcCosts("Montana","$163","$174","$19","$17","$2,790","$83")
ltcCostEntry[27] = new ltcCosts("Nebraska","$144","$158","$22","$17","$2,407","$62")
ltcCostEntry[28] = new ltcCosts("Nevada","$189","$213","$19","$18","$2,611","$79")
ltcCostEntry[29] = new ltcCosts("New Hampshire","$247","$266","$26","$22","$3,732","$60")
ltcCostEntry[30] = new ltcCosts("New Jersey","$259","$287","$21","$18","$4,009","$81")
ltcCostEntry[31] = new ltcCosts("New Mexico","$158","$189","$18","$16","$2,772","$61")
ltcCostEntry[32] = new ltcCosts("New York","$306","$314","$21","$18","$3,362","$79")
ltcCostEntry[33] = new ltcCosts("North Carolina","$173","$192","$17","$16","$2,988","$46")
ltcCostEntry[34] = new ltcCosts("North Dakota","$132","$150","$20","$20","$1,980","$73")
ltcCostEntry[35] = new ltcCosts("Ohio","$186","$203","$19","$18","$2,987","$51")
ltcCostEntry[36] = new ltcCosts("Oklahoma","$125","$153","$18","$16","$2,346","$47")
ltcCostEntry[37] = new ltcCosts("Oregon","$205","$231","$20","$18","$2,827","$91")
ltcCostEntry[38] = new ltcCosts("Pennsylvania","$228","$243","$20","$18","$2,846","$57")
ltcCostEntry[39] = new ltcCosts("Rhode Island","$225","$246","$24","$20","$3,319","$60")
ltcCostEntry[40] = new ltcCosts("South Carolina","$164","$183","$17","$16","$2,726","$48")
ltcCostEntry[41] = new ltcCosts("South Dakota","$155","$169","$21","$19","$2,341","$60")
ltcCostEntry[42] = new ltcCosts("Tennessee","$158","$172","$20","$17","$2,807","$56")
ltcCostEntry[43] = new ltcCosts("Texas","$130","$177","$17","$16","$2,882","$40")
ltcCostEntry[44] = new ltcCosts("Utah","$149","$192","$24","$22","$2,425","$53")
ltcCostEntry[45] = new ltcCosts("Vermont","$231","$248","$24","$22","$4,375","$141")
ltcCostEntry[46] = new ltcCosts("Virginia","$182","$202","$17","$16","$3,651","$60")
ltcCostEntry[47] = new ltcCosts("Washington","$219","$238","$22","$21","$2,799","$62")
ltcCostEntry[48] = new ltcCosts("West Virginia","$193","$203","$17","$16","$2,933","$66")
ltcCostEntry[49] = new ltcCosts("Wisconsin","$196","$216","$22","$18","$3,208","$54")
ltcCostEntry[50] = new ltcCosts("Wyoming","$174","$187","$21","$21","$2,741","$77")
ltcCostEntry[51] = new ltcCosts("Nationwide Average","$191","$212","$20","$18","$3,031","$64")

var newWindow

function makeNewWindow()
{
	newWindow = window.open("","","height=150,width=800")
}

function closeNewWindow()
{
	if (newWindow)
	{
		newWindow.close()
	}
}

function genWindow(stIdx)
{
	makeNewWindow()

	var winContent = "<html><head><title>Long-Term Care Costs"
	winContent += "</title><link rel='stylesheet' type='text/css' href='Styles/GILICO.css'></head>"
	winContent += "<body bgcolor='white'>"
// code that will display products
	winContent += "<table width='100%' cellspacing='0' cellpadding='0' bordercolor='#000066' border='1' align='center'>"
	winContent += "<tr class='blacktextbold' bgcolor='#A4B8CC'>"
	winContent += "<td align='center' valign='middle' width='14%' rowspan='2'>State</td>"
	winContent += "<td colspan='2' align='center' valign='middle'>Average Daily Cost of Nursing Home Care</td>"
	winContent += "<td colspan='2' width='14%' align='center' valign='middle'>Average Hourly Cost of Home Health Care</td>"
	winContent += "<td align='center' valign='middle' width='14%' rowspan='2'>Average Monthly Cost of Assisted Living Care</td>"
	winContent += "<td align='center' valign='middle' width='14%' rowspan='2'>Average Daily Cost of Adult Day Services</td></tr>"
	winContent += "<tr bgcolor='#A4B8CC'>"
	winContent += "<td align='center' valign='middle' width='14%'><span class='ltcred'>Semi-Private</span></td>"
	winContent += "<td align='center' valign='middle' width='14%'><span class='ltcblue'>Private</span></td>"
	winContent += "<td align='center' valign='middle' width='14%'><span class='ltcred'>Home Health Aide</span></td>"
	winContent += "<td align='center' valign='middle' width='14%'><span class='ltcblue'>Homemaker</span></td></tr>"
	winContent += "<tr bgcolor='#FFFFFF'>"
	winContent += "<td align='center' valign='middle' width='14%'><span class='blacktextbold'>"
	winContent += ltcCostEntry[stIdx].stName
	winContent += "</span></td>"
	winContent += "<td align='center' valign='middle' width='14%'><span class='ltcred'>"
	winContent += ltcCostEntry[stIdx].nhcsp
	winContent += "</span></td>"
	winContent += "<td align='center' valign='middle' width='14%'><span class='ltcblue'>"
	winContent += ltcCostEntry[stIdx].nhcp
	winContent += "</span></td>"
	winContent += "<td align='center' valign='middle' width='14%'><span class='ltcred'>"
	winContent += ltcCostEntry[stIdx].hhchha
	winContent += "</span></td>"
	winContent += "<td align='center' valign='middle' width='14%'><span class='ltcblue'>"
	winContent += ltcCostEntry[stIdx].hhch
	winContent += "</span></td>"
	winContent += "<td align='center' valign='middle' width='14%'><span class='blacktext'>"
	winContent += ltcCostEntry[stIdx].alc
	winContent += "</span></td>"
	winContent += "<td align='center' valign='middle' width='14%'><span class='blacktext'>"
	winContent += ltcCostEntry[stIdx].ads
	winContent += "</span></td></tr>"
//
	winContent += "</table><br>"
	winContent += "<center><form>"
	winContent += "<table width='75%' cellspacing='0' cellpadding='0' border='0' align='center'>"
	winContent += "<tr>"
	winContent += "<td align='center' valign='middle' width='50%'>"
	winContent += "<input type='button' value='Print Window' onClick='window.print()'></td>"
	winContent += "<td align='center' valign='middle' width='50%'>"
	winContent += "<input type='button' value='Close Window' onClick='window.close()'></td></tr></table></form></center>"
	winContent += "</body></html>"
	newWindow.document.write(winContent)
	newWindow.document.close()
}



