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","$163","$171","$19","$18","$2,409","$31")
ltcCostEntry[1] = new ltcCosts("Alaska","$618","$584","$25","$23","$4,315","$74")
ltcCostEntry[2] = new ltcCosts("Arizona","$171","$216","$23","$21","$2,942","$84")
ltcCostEntry[3] = new ltcCosts("Arkansas","$128","$150","$15","$15","$2,194","$77")
ltcCostEntry[4] = new ltcCosts("California","$214","$286","$21","$19","$3,085","$75")
ltcCostEntry[5] = new ltcCosts("Colorado","$187","$206","$23","$19","$2,872","$64")
ltcCostEntry[6] = new ltcCosts("Connecticut","$340","$372","$26","$19","$4,591","$74")
ltcCostEntry[7] = new ltcCosts("DC","$263","$285","$19","$18","$4,761","$96")
ltcCostEntry[8] = new ltcCosts("Delaware","$233","$255","$23","$19","$4,839","$70")
ltcCostEntry[9] = new ltcCosts("Florida","$204","$225","$18","$16","$2,768","$61")
ltcCostEntry[10] = new ltcCosts("Georgia","$160","$171","$18","$17","$2,818","$65")
ltcCostEntry[11] = new ltcCosts("Hawaii","$316","$360","$23","$20","$4,575","$59")
ltcCostEntry[12] = new ltcCosts("Idaho","$188","$202","$17","$17","$2,624","$73")
ltcCostEntry[13] = new ltcCosts("Illinois","$167","$206","$21","$19","$3,250","$63")
ltcCostEntry[14] = new ltcCosts("Indiana","$163","$201","$24","$19","$2,717","$76")
ltcCostEntry[15] = new ltcCosts("Iowa","$140","$148","$27","$23","$2,756","$49")
ltcCostEntry[16] = new ltcCosts("Kansas","$138","$150","$18","$16","$2,807","$111")
ltcCostEntry[17] = new ltcCosts("Kentucky","$170","$190","$19","$18","$2,700","$62")
ltcCostEntry[18] = new ltcCosts("Louisiana","$130","$134","$16","$14","$2,568","$53")
ltcCostEntry[19] = new ltcCosts("Maine","$244","$270","$21","$19","$4,365","$98")
ltcCostEntry[20] = new ltcCosts("Maryland","$235","$258","$20","$18","$3,873","$75")
ltcCostEntry[21] = new ltcCosts("Massachusetts","$293","$316","$25","$21","$4,259","$59")
ltcCostEntry[22] = new ltcCosts("Michigan","$201","$212","$19","$18","$2,816","$74")
ltcCostEntry[23] = new ltcCosts("Minnesota","$132","$150","$29","$22","$2,664","$64")
ltcCostEntry[24] = new ltcCosts("Mississippi","$180","$189","$18","$15","$2,525","$57")
ltcCostEntry[25] = new ltcCosts("Missouri","$134","$151","$19","$17","$3,034","$67")
ltcCostEntry[26] = new ltcCosts("Montana","$167","$181","$22","$20","$2,701","$94")
ltcCostEntry[27] = new ltcCosts("Nebraska","$146","$163","$22","$18","$2,655","$52")
ltcCostEntry[28] = new ltcCosts("Nevada","$196","$215","$21","$19","$2,991","$72")
ltcCostEntry[29] = new ltcCosts("New Hampshire","$256","$276","$25","$21","$4,347","$59")
ltcCostEntry[30] = new ltcCosts("New Jersey","$269","$299","$22","$18","$4,212","$83")
ltcCostEntry[31] = new ltcCosts("New Mexico","$166","$185","$19","$16","$2,667","$57")
ltcCostEntry[32] = new ltcCosts("New York","$323","$335","$22","$21","$3,741","$98")
ltcCostEntry[33] = new ltcCosts("North Carolina","$177","$197","$18","$16","$3,224","$45")
ltcCostEntry[34] = new ltcCosts("North Dakota","$143","$156","$24","$22","$2,041","$86")
ltcCostEntry[35] = new ltcCosts("Ohio","$186","$209","$19","$18","$3,031","$54")
ltcCostEntry[36] = new ltcCosts("Oklahoma","$129","$156","$19","$16","$2,503","$48")
ltcCostEntry[37] = new ltcCosts("Oregon","$210","$226","$21","$18","$2,904","$90")
ltcCostEntry[38] = new ltcCosts("Pennsylvania","$235","$248","$20","$18","$2,986","$61")
ltcCostEntry[39] = new ltcCosts("Rhode Island","$233","$254","$25","$21","$3,157","$63")
ltcCostEntry[40] = new ltcCosts("South Carolina","$170","$186","$19","$17","$2,797","$47")
ltcCostEntry[41] = new ltcCosts("South Dakota","$158","$175","$20","$19","$2,309","$70")
ltcCostEntry[42] = new ltcCosts("Tennessee","$162","$178","$21","$17","$2,840","$49")
ltcCostEntry[43] = new ltcCosts("Texas","$130","$187","$19","$17","$2,991","$40")
ltcCostEntry[44] = new ltcCosts("Utah","$152","$183","$25","$22","$2,698","$59")
ltcCostEntry[45] = new ltcCosts("Vermont","$235","$254","$24","$20","$4,167","$150")
ltcCostEntry[46] = new ltcCosts("Virginia","$189","$207","$18","$17","$3,768","$62")
ltcCostEntry[47] = new ltcCosts("Washington","$225","$246","$22","$21","$2,870","$69")
ltcCostEntry[48] = new ltcCosts("West Virginia","$205","$215","$15","$16","$3,073","$59")
ltcCostEntry[49] = new ltcCosts("Wisconsin","$201","$225","$24","$19","$3,261","$58")
ltcCostEntry[50] = new ltcCosts("Wyoming","$178","$193","$22","$22","$3,039","$67")
ltcCostEntry[51] = new ltcCosts("NATIONAL AVERAGE","$198","$219","$21","$19","$3,131","$67")

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()
}




