// Load array for State Approvals
function stateApp(p01, p02, p03, p04, p05, p06, p07, p08, p09, p10){
        this.p01 = p01
        this.p02 = p02
        this.p03 = p03
        this.p04 = p04
        this.p05 = p05
        this.p06 = p06
        this.p07 = p07
        this.p08 = p08
        this.p09 = p09
        this.p10 = p10
}
stateAppEntry = new Array(30)
// AL
stateAppEntry[0] = new stateApp("Alabama", "Annuities","Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// AZ
stateAppEntry[1] = new stateApp("Arizona", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// AR
stateAppEntry[2] = new stateApp("Arkansas", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// CA
stateAppEntry[3] = new stateApp("California", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// CO
stateAppEntry[4] = new stateApp("Colorado", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// FL
stateAppEntry[5] = new stateApp("Florida", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", " ", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// GA
stateAppEntry[6] = new stateApp("Georgia", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// IL
stateAppEntry[7] = new stateApp("Illinois", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", " ", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// IN
stateAppEntry[8] = new stateApp("Indiana", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", " ", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// IA
stateAppEntry[9] = new stateApp("Iowa", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// KS
stateAppEntry[10] = new stateApp("Kansas", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", " ", " ", " ")	
// KY
stateAppEntry[11] = new stateApp("Kentucky", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// LA	
stateAppEntry[12] = new stateApp("Louisiana", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// MI
stateAppEntry[13] = new stateApp("Michigan", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// MS
stateAppEntry[14] = new stateApp("Mississippi", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// MO
stateAppEntry[15] = new stateApp("Missouri", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// MT
stateAppEntry[16] = new stateApp("Montana", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// NE
stateAppEntry[17] = new stateApp("Nebraska", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// NV
stateAppEntry[18] = new stateApp("Nevada", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// NM
stateAppEntry[19] = new stateApp("New Mexico", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// NC
stateAppEntry[20] = new stateApp("North Carolina", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// ND
stateAppEntry[21] = new stateApp("North Dakota", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// OH	
stateAppEntry[22] = new stateApp("Ohio", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// OK
stateAppEntry[23] = new stateApp("Oklahoma", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", " ", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// OR
stateAppEntry[24] = new stateApp("Oregon", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// SC
stateAppEntry[25] = new stateApp("South Carolina", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// TN
stateAppEntry[26] = new stateApp("Tennessee", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	
// TX
stateAppEntry[27] = new stateApp("Texas", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", "Guaranty: 8, 6, 4", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// UT
stateAppEntry[28] = new stateApp("Utah", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", " ", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")
// WA
stateAppEntry[29] = new stateApp("Washington", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", " ", " ", " ", " ")
// WY
stateAppEntry[30] = new stateApp("Wyoming", "Annuities", "Ultra Flex: 10, 7", "Choice 5", "Choice 4", "Immediate Payout", " ", "Long-Term Care", "AnnuiCareŽ Riders", "IRA Endorsement")	

var newWindow

function makeNewWindow()
{
	newWindow = window.open("","","height=450,width=200")
}

function closeNewWindow()
{
	if (newWindow)
	{
		newWindow.close()
	}
}


function genWindow(stIdx)
{
	prodArray = new Array(12)
	prodArray[0] = stateAppEntry[stIdx].p01
	prodArray[1] = stateAppEntry[stIdx].p02
	prodArray[2] = stateAppEntry[stIdx].p03
	prodArray[3] = stateAppEntry[stIdx].p04
	prodArray[4] = stateAppEntry[stIdx].p05
	prodArray[5] = stateAppEntry[stIdx].p06
	prodArray[6] = stateAppEntry[stIdx].p07
	prodArray[7] = stateAppEntry[stIdx].p08
	prodArray[8] = stateAppEntry[stIdx].p09
	prodArray[9] = stateAppEntry[stIdx].p10

	makeNewWindow()

	var winContent = "<html><head><title>Approved Products for "
	winContent += prodArray[0]
	winContent += "</title><link rel='stylesheet' type='text/css' href='Styles/GILICO.css'></head>"
	winContent += "<body bgcolor='white'><span class='bluetextbold'>The following GILICO products have been approved in "
	winContent += prodArray[0]
	winContent += ":</span><br>"
// code that will display products
	for (var i = 1; i <= 9; i++)
	{
	    if (prodArray[i] == "Annuities" || prodArray[i] == "Long-Term Care" || prodArray [i] == "Life")
	    {
		winContent += "<br><span class='blacktextboldunder9'>"
		winContent += prodArray[i] + "</span><br>"
	    }
	    else
	    {
		winContent += "<span class='blacktext9'>"
		winContent += "     " + prodArray[i] + "</span><br>"
	    }			 
	}

//	if (stIdx == 27)
//	{
//	    winContent += "<span class='redtextbold'>";
//	    winContent += "*AnnuiCareŽ Rider cannot be attached to the Flex 10 Annuity, Ultra Choice Annuity, or 4 Year Choice Annuity.";
//	    winContent += "</span><br><br>";
//	}

// code that will print window
	winContent += "<center><form><input type='button' value='Print Window' onclick='window.print()'><br>"
// code that will close window	
	winContent += "<input type='button' value='Close Window' onclick='window.close()'></form></center>"
	winContent += "</body></html>"
	newWindow.document.write(winContent)
	newWindow.document.close()
}


function myVoid() { ; }


