function GetBestMatch() {
	var idx;
	var strSearch;
	var strName;
	var bolFound;
	aryInsCo = new Array(39);

	strName = "";
	bolFound = false;
	strSearch = document.frmInsCo.txtInsCo.value;
	aryInsCo[0] = "AmeriHealth Insurance";
	aryInsCo[1] = "Blue Cross of Northeastern Pennsylvania";
	aryInsCo[2] = "Capital Advantage Insurance Company";
	aryInsCo[3] = "Capital BlueCross";
	aryInsCo[4] = "Carpenters Health and Welfare Fund of Philadelphia and Vicinity";
	aryInsCo[5] = "Central Region Expansion Initiative";
	aryInsCo[6] = "Community Choice";
	aryInsCo[7] = "Comp I";
	aryInsCo[8] = "Definity Health Inc.";
	aryInsCo[9] = "Federal Employees Health Benefits Program";
	aryInsCo[10] = "First Priority Health";
	aryInsCo[11] = "Geisinger";
	aryInsCo[12] = "HealthAmerica Pennsylvania";
	aryInsCo[13] = "HealthOne";
	aryInsCo[14] = "Highmark Blue Shield";
	aryInsCo[15] = "Independence Blue Cross";
    aryInsCo[16] = "John Deere Health";
	aryInsCo[17] = "Keystone Health Plan";
	aryInsCo[18] = "LUMENOS, INC.";
	aryInsCo[19] = "Meritain Health";
	aryInsCo[20] = "Hannaford Brothers Co.";
	aryInsCo[21] = "Total Plan Services, Inc.";
	aryInsCo[22] = "Healthe Exchange";
	aryInsCo[23] = "Advantage Health Solutions/Select Medical Management";
	aryInsCo[24] = "M-Plan/Select Medical Management";
	aryInsCo[25] = "Regence" ;
	aryInsCo[26] = "HealthMarkets";
	aryInsCo[27] = "HealthMarkets Care Assured";
	aryInsCo[28] = "BCBS Arizona";
	aryInsCo[29] = "Blue Medicare";
	aryInsCo[30] = "NOVA Healthcare";
	aryInsCo[31] = "Health";
	aryInsCo[32] = "Healthy";
	aryInsCo[33] = "PartnershipAdvantage";
    aryInsCo[34] = "Horizon";
	aryInsCo[35] = "Partnership";
    aryInsCo[36] = "State Health Benefits Program";
    aryInsCo[37] = "BCBSNJ";
    //aryInsCo[38] = "State Health Benefits Program and School Employees Health Benefits Program (SHBP and SEHBP)";
    
    
	if (strSearch != "") 
	{
		for (var i=0; i<39; i++)
		 {
		    
			if (strSearch.toLowerCase() == aryInsCo[i].substring(0,strSearch.length).toLowerCase())
			 {
				if (!bolFound) 
				{
					bolFound = true
					strName = aryInsCo[i].substring(0)
					idx = i
				} 
				else 
				{
					strName = strSearch
					idx = -1
					break
				}
			}
		}
	}

	document.frmInsCo.txtInsCo.value = strName;
	if (idx >= 0) {
		GetInsurancePlans(idx)
	}
}


// Summary : This fuctions is used to find matching Insurance plan from Existing List

function GetExactMatch() {

	var idx;
	var stmt;
	var strSearch;
	var strName;
	var bolFound;
	var redirecturl;
	
	//var aryInsCo=new Array(47); //saran:commented nov24
	//var aryInsCo=new Array(53); //saran:commented dec19
	
	var aryInsCo=new Array(61);
    for (var x=0; x<61; x++)
		aryInsCo[x]=new Array()


    var probableAry=new Array();
  
     
	strName = "";
	redirecturl="";
	bolFound = false;
	stmt=document.getElementById("Guidestmt");
	strSearch = document.frmInsCo.txtInsCo.value;
	if (strSearch == "BCBSNJ" || strSearch == "bcbsnj")
	{
	strSearch = "Horizon";
	}
	
	idx=document.frmInsCo.cboPlans.selectedIndex;
	
	
	//list of insurance and its url
	aryInsCo[0][0]="AmeriHealth Insurance Company of Delaware";
    aryInsCo[0][1]="letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of Delaware";
    
    aryInsCo[1][0]="AmeriHealth Insurance Company of Delaware 65";
    aryInsCo[1][1]="letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of Delaware 65";
    
    aryInsCo[2][0]="AmeriHealth Insurance Company of New Jersey";
    aryInsCo[2][1]="letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of New Jersey";
    
    aryInsCo[3][0]="AmeriHealth Insurance Company of New Jersey 65";
    aryInsCo[3][1]="letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of New Jersey 65";
    
    aryInsCo[4][0]="AmeriHealth Insurance Company of Pennsylvania 65";
    aryInsCo[4][1]="letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of Pennsylvania 65";
    
    aryInsCo[5][0]="AmeriHealth Insurance of Pennsylvania";
    aryInsCo[5][1]="letter"+fileAppend +".asp?insco=AmeriHealth Insurance of Pennsylvania";
    
    aryInsCo[6][0]="Blue Cross of Northeastern Pennsylvania";
    aryInsCo[6][1]="letter"+fileAppend +".asp?insco=Blue Cross of Northeastern Pennsylvania";
    
    aryInsCo[7][0]="Blue Cross of Northeastern Pennsylvania Federal Employees Plan";
    aryInsCo[7][1]="letter"+fileAppend +".asp?insco=Blue Cross of Northeastern Pennsylvania Federal Employees Plan";
    
    aryInsCo[8][0]="Blue Cross of Northeastern Pennsylvania Security 65";
    aryInsCo[8][1]="letter"+fileAppend +".asp?insco=Blue Cross of Northeastern Pennsylvania Security 65";
    
    aryInsCo[9][0]="Capital Advantage Insurance Company";
    aryInsCo[9][1]="letter"+fileAppend +".asp?insco=Capital Advantage Insurance Company";
    
    aryInsCo[10][0]="Capital BlueCross";
    aryInsCo[10][1]="letter"+fileAppend +".asp?insco=Capital BlueCross";
    
    aryInsCo[11][0]="Federal Employee Plan";
    aryInsCo[11][1]="letter"+fileAppend +".asp?insco=Federal Employee Plan";
    
    aryInsCo[12][0]="Keystone Health Plan Central";
    aryInsCo[12][1]="letter"+fileAppend +".asp?insco=Keystone Health Plan Central"
    
    aryInsCo[13][0]="Carpenters Health and Welfare Fund of Philadelphia and Vicinity";
    aryInsCo[13][1]="letter"+fileAppend +".asp?insco=Carpenters Health and Welfare Fund of Philadelphia and Vicinity";
    
    aryInsCo[14][0]="Central Region Expansion Initiative";
    aryInsCo[14][1]="letter"+fileAppend +".asp?insco=Central Region Expansion Initiative";
    
    aryInsCo[15][0]="Community Choice";
    aryInsCo[15][1]="letter"+fileAppend +".asp?insco=Community Choice";
    
    aryInsCo[16][0]="Comp I";
    aryInsCo[16][1]="letter"+fileAppend +".asp?insco=Comp I";
    
    aryInsCo[17][0]="Definity Health Inc.";
    aryInsCo[17][1]="letter"+fileAppend +".asp?insco=Definity Health Inc.";
    
    aryInsCo[18][0]="Highmark Blue Shield";
    aryInsCo[18][1]="letter"+fileAppend +".asp?insco=Highmark Blue Shield";
    
    aryInsCo[19][0]="Independence Blue Cross";
    aryInsCo[19][1]="letter"+fileAppend +".asp?insco=Independence Blue Cross";
    
    aryInsCo[20][0]="First Priority Health";
    aryInsCo[20][1]="letter"+fileAppend +".asp?insco=First Priority Health";
    
    aryInsCo[21][0]="First Priority Health Federal Employees Plan";
    aryInsCo[21][1]="letter"+fileAppend +".asp?insco=First Priority Health Federal Employees Plan";
    
    aryInsCo[22][0]="First Priority Health Security 65";
    aryInsCo[22][1]="letter"+fileAppend +".asp?insco=First Priority Health Security 65";
    
    aryInsCo[23][0]="Geisinger Health Options";
    aryInsCo[23][1]="letter"+fileAppend +".asp?insco=Geisinger Health Options";
    
    aryInsCo[24][0]="Geisinger Health Plan";
    aryInsCo[24][1]="letter"+fileAppend +".asp?insco=Geisinger Health Plan";
    
    aryInsCo[25][0]="Geisinger Health Plan GOLD";
    aryInsCo[25][1]="letter"+fileAppend +".asp?insco=Geisinger Health Plan GOLD"
    
    aryInsCo[26][0]="Geisinger Indemnity Insurance Company";
    aryInsCo[26][1]="letter"+fileAppend +".asp?insco=Geisinger Indemnity Insurance Company";
    
    aryInsCo[27][0]="Geisinger Select Care PPO";
    aryInsCo[27][1]="letter"+fileAppend +".asp?insco=Geisinger Select Care PPO";
    
    aryInsCo[28][0]="HealthAmerica Pennsylvania";
    aryInsCo[28][1]="letter"+fileAppend +".asp?insco=HealthAmerica Pennsylvania";
    
    aryInsCo[29][0]="HealthOne";
    aryInsCo[29][1]="letter"+fileAppend +".asp?insco=HealthOne";
    
    aryInsCo[30][0]="Central Region Expansion Initiative";
    aryInsCo[30][1]="letter"+fileAppend +".asp?insco=Central Region Expansion Initiative";
    
    aryInsCo[31][0]="Federal Employee Plan";
    aryInsCo[31][1]="letter"+fileAppend +".asp?insco=Federal Employee Plan";
    
    aryInsCo[32][0]="Keystone Health Plan West";
    aryInsCo[32][1]="letter"+fileAppend +".asp?insco=Keystone Health Plan West";
    
    aryInsCo[33][0]="Blue Cross Personal Choice 65";
    aryInsCo[33][1]="letter"+fileAppend +".asp?insco=Blue Cross Personal Choice 65";
    
    aryInsCo[34][0]="Independence Blue Cross 65";
    aryInsCo[34][1]="letter"+fileAppend +".asp?insco=Independence Blue Cross 65";
    
    aryInsCo[35][0]="Independence Blue Cross Personal Choice";
    aryInsCo[35][1]="letter"+fileAppend +".asp?insco=Independence Blue Cross Personal Choice";
    
    aryInsCo[36][0]="Keystone Health Plan East";
    aryInsCo[36][1]="letter"+fileAppend +".asp?insco=Keystone Health Plan East";
    
    aryInsCo[37][0]="Keystone Health Plan East 65";
    aryInsCo[37][1]="letter"+fileAppend +".asp?insco=Keystone Health Plan East 65";
    
    aryInsCo[38][0]="John Deere Health Care";
    aryInsCo[38][1]="letter"+fileAppend +".asp?insco=John Deere Health Care";
    
    aryInsCo[39][0]="John Deere Health Plan";
    aryInsCo[39][1]="letter"+fileAppend +".asp?insco=John Deere Health Plan";
    
    aryInsCo[40][0]="LUMENOS, INC.";
    aryInsCo[40][1]="letter"+fileAppend +".asp?insco=LUMENOS, INC.";
    
    aryInsCo[41][0]="Meritain Health";
    aryInsCo[41][1]="letter"+fileAppend +".asp?insco=Meritain Health";
    
    aryInsCo[42][0]="Hannaford Bros. Co. Plan";
    aryInsCo[42][1]="letter"+fileAppend +".asp?insco=Hannaford Bros. Co. Plan";
    
    aryInsCo[43][0]="Total Plan Services, Inc.";
    aryInsCo[43][1]="letter"+fileAppend +".asp?insco=Total Plan Services, Inc.";
    
    aryInsCo[44][0]="Healthe Exchange";
    aryInsCo[44][1]="letter"+fileAppend +".asp?insco=Healthe Exchange";
    
    aryInsCo[45][0]="Advantage Health Solutions/Select Medical Management";
    aryInsCo[45][1]="letter"+fileAppend +".asp?insco=Advantage Health Solutions/Select Medical Management";
    
    aryInsCo[46][0]="M-Plan/Select Medical Management";
    aryInsCo[46][1]="letter"+fileAppend +".asp?insco=M-Plan/Select Medical Management";
    
    aryInsCo[47][0]="Regence BSI";
    aryInsCo[47][1]="letter"+fileAppend +".asp?insco=Regence BSI";
    
    aryInsCo[48][0]="HealthMarkets Chesapeake";
    aryInsCo[48][1]="letter"+fileAppend +".asp?insco=HealthMarkets Chesapeake";
    
    aryInsCo[49][0]="HealthMarkets Mid West National";
    aryInsCo[49][1]="letter"+fileAppend +".asp?insco=HealthMarkets Mid West National";
    
    aryInsCo[50][0]="HealthMarkets Mega Life";
    aryInsCo[50][1]="letter"+fileAppend +".asp?insco=HealthMarkets Mega Life";
    
    aryInsCo[51][0]="HealthMarkets Care Assured Medicare";
    aryInsCo[51][1]="letter"+fileAppend +".asp?insco=HealthMarkets Care Assured Medicare";
    
    aryInsCo[52][0]="BCBS Arizona";
    aryInsCo[52][1]="letter"+fileAppend +".asp?insco=BCBS Arizona";
    
    
    aryInsCo[53][0]="Blue Medicare PPO"
    aryInsCo[53][1]="letter"+fileAppend +".asp?insco=Blue Medicare PPO";
        
    aryInsCo[54][0]="NOVA Healthcare Administrators"
    aryInsCo[54][1]="letter"+fileAppend +".asp?insco=NOVA Healthcare Administrators";
        
    aryInsCo[55][0]="Health New England"
    aryInsCo[55][1]="letter"+fileAppend +".asp?insco=Health New England";
        
    aryInsCo[56][0]="Healthy Kids"
    aryInsCo[56][1]="letter"+fileAppend +".asp?insco=Healthy Kids";
        
    aryInsCo[57][0]="PartnershipAdvantage"
    aryInsCo[57][1]="letter"+fileAppend +".asp?insco=PartnershipAdvantage";

    aryInsCo[58][0]="Horizon Blue Cross Blue Shield"
    aryInsCo[58][1]="letter"+fileAppend +".asp?insco=Horizon Blue Cross Blue Shield";

    aryInsCo[59][0]="Partnership Health Plan"
    aryInsCo[59][1]="letter"+fileAppend +".asp?insco=Partnership Health Plan";
    
    aryInsCo[60][0]="State Health Benefits Program"
    aryInsCo[60][1]="letter"+fileAppend +".asp?insco=State Health Benefits Program";
    
//    aryInsCo[61][0]="State Health Benefits Program and School Employees Health Benefits Program (SHBP and SEHBP)"
//    aryInsCo[61][1]="letter"+fileAppend +".asp?insco=State Health Benefits Program and School Employees Health Benefits Program (SHBP and SEHBP)";
	
	if(idx == -1) //Fresh Entry
	{
	    if (strSearch != "") 
	    {
    	  
		    for (var i=0; i<61; i++)
		     {
			    if (strSearch.toLowerCase() == aryInsCo[i][0].toLowerCase())
			     {
				    if (!bolFound) 
				    {
					    bolFound = true;
					    redirecturl = aryInsCo[i][1];
				    } 
    				
    				
			    } //if
		    } //for
	    
	    
			//Exact match
			if(redirecturl!="")
			{
				location.href=redirecturl;
			}
			else
			{
				//Sinha: Emergency fix - Not to allow pattern match search for plan names
				stmt.innerHTML="Please ensure that Insurance Plan name is correct";
				return;
			   
			   //search with given pattern 
				var m=0;
				var pattern=new RegExp(strSearch.toLowerCase()); 
			   
	//           if(strSearch.toLowerCase()=="State Health Benefits Program" || strSearch.toLowerCase()=="BCBSNJ" strSearch.toLowerCase()=="State Health Benefits Program and School Employees Health Benefits Program (SHBP and SEHBP)")
	//           {
	//           }
				for (var j=0; j<61; j++)
				{
				
					var result=aryInsCo[j][0].toLowerCase().search(pattern);
					
					if(result != -1)
					{
						probableAry[m]=new Array()
						probableAry[m][0]=aryInsCo[j][0];
						probableAry[m][1]=aryInsCo[j][1];
					  
						m++;
					}
				}
			   
				var temp=document.frmInsCo.cboPlans
				
				if(probableAry.length != 0)
				{
					for (var k=0;k<probableAry.length;k++) 
					{
					
						if(probableAry[k][0] != 0)
						{
						 temp.options[k]=null;
						 temp.options[k]=new Option(probableAry[k][0],probableAry[k][1]);
						}
					}
				 }  
			   
			   if(temp.options.length==0)
			   {
				   //search using first 5 characters
				   var s=0;
				   var secondStr=new RegExp(strSearch.substring(0,5).toLowerCase()); 
					 for (var p=0; p<61; p++)
					{
					
						var result1=aryInsCo[p][0].substring(0,5).toLowerCase().search(secondStr);
					  
						if(result1 != -1)
						{
							probableAry[s]=new Array()
							probableAry[s][0]=aryInsCo[p][0];
							probableAry[s][1]=aryInsCo[p][1];
							s++;
						}
					}
					var temp1=document.frmInsCo.cboPlans
			   
					for (var x=0;x<probableAry.length;x++) 
					{
					
						if(probableAry[x][0] != 0)
						{
						 temp1.options[x]=null;
						 temp1.options[x]=new Option(probableAry[x][0],probableAry[x][1]);
						}
					}
					
					if(temp1.options.length==0)
					{
						//search by replacing space from first 5 characters
						var s=0;
						var thirdStr=new RegExp(strSearch.substring(0,5).toLowerCase().replace(" ",""));
						
						for (var p=0; p<61; p++)
						{
						
							var result3=aryInsCo[p][0].substring(0,5).toLowerCase().search(thirdStr);
						  
							if(result3 != -1)
							{
								probableAry[s]=new Array()
								probableAry[s][0]=aryInsCo[p][0];
								probableAry[s][1]=aryInsCo[p][1];
								s++;
							}
						}
						var temp2=document.frmInsCo.cboPlans
				   
						for (var y=0;y<probableAry.length;y++) 
						{
						
							if(probableAry[y][0] != 0)
							{
							 temp2.options[y]=null;
							 temp2.options[y]=new Option(probableAry[y][0],probableAry[y][1]);
							}
						}
						
						if(temp2.options.length==0)
						{
						   //search with first word
							var s=0;
							var str;
							str=strSearch.toLowerCase().split(" ");
							var foruthstr1=new RegExp();
						   
							for (var p=0; p<61; p++)
							{
							
								var result3=aryInsCo[p][0].substring(0,str[0].length).toLowerCase().search(str[0]);
										
									if((result3 != -1))
									{
										probableAry[s]=new Array()
										probableAry[s][0]=aryInsCo[p][0];
										probableAry[s][1]=aryInsCo[p][1];
										s++;
									}
							   
							}
							var temp3=document.frmInsCo.cboPlans
						   
							for (var y=0;y<probableAry.length;y++) 
							{
							
								if(probableAry[y][0] != 0) 
								{
								 temp3.options[y]=null;
								 temp3.options[y]=new Option(probableAry[y][0],probableAry[y][1]);
								}
							}
							if(temp3.options.length==0)
							{
								stmt.innerHTML="Please Ensure that Insurance Plan name is correct";
							}
							else
							{
								 setVisible();
							}
							 
							
						}
						else
						{
							setVisible();
						}
						
					}
					
					else
					{
						setVisible();
					}
				   
				   
			   }
			   else
			   {
					setVisible();
			   }
			  
			 }
			}//if
        else
        {
           stmt.innerHTML="Enter Insurance Plan ";
        } 
	}
	else
	{
	    
	    var url=document.frmInsCo.cboPlans[document.frmInsCo.cboPlans.selectedIndex].value;
	    document.frmInsCo.cboPlans.selectedIndex=-1;
	    var temp=document.frmInsCo.cboPlans
	    for(var z=0;z<temp.options.length;z++)
	    {
	        temp.innerHTML="";
	    }
	    
	    location.href=url;
	    
	   
    }
	
	
	
} //function end

//this functions is used to set visibily of drop down and display message in right pane
function setVisible()
{
     var stmt;
     var displayStr="That Insurance Plan does not exist. Please select the right plan from the drop down menu below.";
     stmt=document.getElementById("Guidestmt");
     document.frmInsCo.cboPlans.style.visibility='visible';
     stmt.innerHTML=displayStr;
}


//this is used to check whether values are entered and it should have aleast 5 chars
function check()
{
    var stmt;
    var strSearch;
    
    strSearch=document.frmInsCo.txtInsCo.value;
    stmt=document.getElementById("Guidestmt");
    if(strSearch)
    {
        if(strSearch.length<5)
        {
          alert("Insurance Plan name should have aleast 5 characters");
          document.frmInsCo.txtInsCo.value="";
        }
    }
    else
    {
        alert("Please Enter Insurance Plan");
    }
}



function GetInsurancePlans(grp) {
	x = grp
	//var groups=25 //saran: commented on nov24
	//var groups=28  //saran: commented on dec19
	
	var groups=35
	var group=new Array(groups)
	for (i=0; i<groups; i++)
		group[i]=new Array()

	group[0][0]=new Option("AmeriHealth Insurance Company of Delaware","letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of Delaware")
	group[0][1]=new Option("AmeriHealth Insurance Company of Delaware 65","letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of Delaware 65")
	group[0][2]=new Option("AmeriHealth Insurance Company of New Jersey","letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of New Jersey")
	group[0][3]=new Option("AmeriHealth Insurance Company of New Jersey 65","letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of New Jersey 65")
	group[0][4]=new Option("AmeriHealth Insurance Company of Pennsylvania 65","letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of Pennsylvania 65")
	group[0][5]=new Option("AmeriHealth Insurance of Pennsylvania","letter"+fileAppend +".asp?insco=AmeriHealth Insurance of Pennsylvania")
	
	group[1][0]=new Option("Blue Cross of Northeastern Pennsylvania","letter"+fileAppend +".asp?insco=Blue Cross of Northeastern Pennsylvania")
	group[1][1]=new Option("Blue Cross of Northeastern Pennsylvania Federal Employees Plan","letter"+fileAppend +".asp?insco=Blue Cross of Northeastern Pennsylvania Federal Employees Plan")
	group[1][2]=new Option("Blue Cross of Northeastern Pennsylvania Security 65","letter"+fileAppend +".asp?insco=Blue Cross of Northeastern Pennsylvania Security 65")
	
	group[2][0]=new Option("Capital Advantage Insurance Company","letter"+fileAppend +".asp?insco=Capital Advantage Insurance Company")
	
	group[3][0]=new Option("Capital Advantage Insurance Company","letter"+fileAppend +".asp?insco=Capital Advantage Insurance Company")
	group[3][1]=new Option("Capital BlueCross","letter"+fileAppend +".asp?insco=Capital BlueCross")
	group[3][2]=new Option("Federal Employee Plan","letter"+fileAppend +".asp?insco=Federal Employee Plan")
	group[3][3]=new Option("Keystone Health Plan Central","letter"+fileAppend +".asp?insco=Keystone Health Plan Central")
	
	group[4][0]=new Option("Carpenters Health and Welfare Fund of Philadelphia and Vicinity","letter"+fileAppend +".asp?insco=Carpenters Health and Welfare Fund of Philadelphia and Vicinity")
	
	group[5][0]=new Option("Central Region Expansion Initiative","letter"+fileAppend +".asp?insco=Central Region Expansion Initiative")
	
	group[6][0]=new Option("Community Choice","letter"+fileAppend +".asp?insco=Community Choice")
	
	group[7][0]=new Option("Comp I","letter"+fileAppend +".asp?insco=Comp I")
	
	group[8][0]=new Option("Definity Health Inc.","letter"+fileAppend +".asp?insco=Definity Health Inc.")
	
	group[9][0]=new Option("Capital BlueCross","letter"+fileAppend +".asp?insco=Capital BlueCross")
	group[9][1]=new Option("Highmark Blue Shield","letter"+fileAppend +".asp?insco=Highmark Blue Shield")
	group[9][2]=new Option("Independence Blue Cross","letter"+fileAppend +".asp?insco=Independence Blue Cross")
	
	group[10][0]=new Option("First Priority Health","letter"+fileAppend +".asp?insco=First Priority Health")
	group[10][1]=new Option("First Priority Health Federal Employees Plan","letter"+fileAppend +".asp?insco=First Priority Health Federal Employees Plan")
	group[10][2]=new Option("First Priority Health Security 65","letter"+fileAppend +".asp?insco=First Priority Health Security 65")
	
	group[11][0]=new Option("Geisinger Health Options","letter"+fileAppend +".asp?insco=Geisinger Health Options")
	group[11][1]=new Option("Geisinger Health Plan","letter"+fileAppend +".asp?insco=Geisinger Health Plan")
	group[11][2]=new Option("Geisinger Health Plan GOLD","letter"+fileAppend +".asp?insco=Geisinger Health Plan GOLD")
	group[11][3]=new Option("Geisinger Indemnity Insurance Company","letter"+fileAppend +".asp?insco=Geisinger Indemnity Insurance Company")
	group[11][4]=new Option("Geisinger Select Care PPO","letter"+fileAppend +".asp?insco=Geisinger Select Care PPO")
	
	group[12][0]=new Option("HealthAmerica Pennsylvania","letter"+fileAppend +".asp?insco=HealthAmerica Pennsylvania")
	
	group[13][0]=new Option("HealthOne","letter"+fileAppend +".asp?insco=HealthOne")
	
	group[14][0]=new Option("Central Region Expansion Initiative","letter"+fileAppend +".asp?insco=Central Region Expansion Initiative")
	group[14][1]=new Option("Federal Employee Plan","letter"+fileAppend +".asp?insco=Federal Employee Plan")
	group[14][2]=new Option("Highmark Blue Shield","letter"+fileAppend +".asp?insco=Highmark Blue Shield")
	group[14][3]=new Option("Keystone Health Plan West","letter"+fileAppend +".asp?insco=Keystone Health Plan West")
	
	group[15][0]=new Option("AmeriHealth Insurance Company of Delaware","letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of Delaware")
	group[15][1]=new Option("AmeriHealth Insurance Company of Delaware 65","letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of Delaware 65")
	group[15][2]=new Option("AmeriHealth Insurance Company of New Jersey","letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of New Jersey")
	group[15][3]=new Option("AmeriHealth Insurance Company of New Jersey 65","letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of New Jersey 65")
	group[15][4]=new Option("AmeriHealth Insurance Company of Pennsylvania 65","letter"+fileAppend +".asp?insco=AmeriHealth Insurance Company of Pennsylvania 65")
	group[15][5]=new Option("AmeriHealth Insurance of Pennsylvania","letter"+fileAppend +".asp?insco=AmeriHealth Insurance of Pennsylvania")
	group[15][6]=new Option("Blue Cross Personal Choice 65","letter"+fileAppend +".asp?insco=Blue Cross Personal Choice 65")
	group[15][7]=new Option("Carpenters Health and Welfare Fund of Philadelphia and Vicinity","letter"+fileAppend +".asp?insco=Carpenters Health and Welfare Fund of Philadelphia and Vicinity")
	group[15][8]=new Option("Federal Employee Plan","letter"+fileAppend +".asp?insco=Federal Employee Plan")
	group[15][9]=new Option("Independence Blue Cross","letter"+fileAppend +".asp?insco=Independence Blue Cross")
	group[15][10]=new Option("Independence Blue Cross 65","letter"+fileAppend +".asp?insco=Independence Blue Cross 65")
	group[15][11]=new Option("Independence Blue Cross Personal Choice","letter"+fileAppend +".asp?insco=Independence Blue Cross Personal Choice")
	group[15][12]=new Option("Keystone Health Plan East","letter"+fileAppend +".asp?insco=Keystone Health Plan East")
	group[15][13]=new Option("Keystone Health Plan East 65","letter"+fileAppend +".asp?insco=Keystone Health Plan East 65")
	
	group[16][0]=new Option("John Deere Health Care","letter"+fileAppend +".asp?insco=John Deere Health Care")
	group[16][1]=new Option("John Deere Health Plan","letter"+fileAppend +".asp?insco=John Deere Health Plan")	

	group[17][0]=new Option("Keystone Health Plan Central","letter"+fileAppend +".asp?insco=Keystone Health Plan Central")
	group[17][1]=new Option("Keystone Health Plan East","letter"+fileAppend +".asp?insco=Keystone Health Plan East")
	group[17][2]=new Option("Keystone Health Plan West","letter"+fileAppend +".asp?insco=Keystone Health Plan West")
	
	group[18][0]=new Option("LUMENOS, INC.","letter"+fileAppend +".asp?insco=LUMENOS, INC.")

	group[19][0]=new Option("Meritain Health","letter"+fileAppend +".asp?insco=Meritain Health")

	group[20][0]=new Option("Hannaford Bros. Co. Plan","letter"+fileAppend +".asp?insco=Hannaford Bros. Co. Plan");	

	group[21][0] =new Option("Total Plan Services, Inc.","letter"+fileAppend +".asp?insco=Total Plan Services, Inc.");	

	group[22][0] =new Option("Healthe Exchange","letter"+fileAppend +".asp?insco=Healthe Exchange");	
	
	group[23][0] =new Option("Advantage Health Solutions/Select Medical Management","letter"+fileAppend +".asp?insco=Advantage Health Solutions/Select Medical Management");	
	
	group[24][0] =new Option("M-Plan/Select Medical Management","letter"+fileAppend +".asp?insco=M-Plan/Select Medical Management");	
	
	group[25][0] =new Option("Regence BSI","letter"+fileAppend +".asp?insco=Regence BSI");
	
	group[25][0] =new Option("HealthMarkets Chesapeake","letter"+fileAppend +".asp?insco=HealthMarkets Chesapeake");
	group[25][1] =new Option("HealthMarkets Mid West National","letter"+fileAppend +".asp?insco=HealthMarkets Mid West National");
	group[25][2] =new Option("HealthMarkets Mega Life","letter"+fileAppend +".asp?insco=HealthMarkets Mega Life");
	
	group[26][0] =new Option("HealthMarkets Care Assured Medicare","letter"+fileAppend +".asp?insco=HealthMarkets Care Assured Medicare");
	
	group[27][0] =new Option("BCBS Arizona ","letter"+fileAppend +".asp?insco=BCBS Arizona ");
	
	group[28][0] =new Option("Blue Medicare PPO","letter"+fileAppend +".asp?insco=Blue Medicare PPO");
	
	group[29][0] =new Option("NOVA Healthcare Administrators","letter"+fileAppend +".asp?insco=NOVA Healthcare Administrators");
	
	group[30][0] =new Option("Health New England","letter"+fileAppend +".asp?insco=Health New England");
	
	group[31][0] =new Option("Healthy Kids","letter"+fileAppend +".asp?insco=Healthy Kids");
	group[31][1] =new Option("PartnershipAdvantage","letter"+fileAppend +".asp?insco=PartnershipAdvantage");
	
    
	group[32][0] =new Option("Horizon Blue Cross Blue Shield","letter"+fileAppend +".asp?insco=Horizon Blue Cross Blue Shield");
//	group[32][1] =new Option("Horizon Blue Cross Blue Shield","letter"+fileAppend +".asp?insco=Horizon Blue Cross Blue Shield");
//	group[32][2] =new Option("Horizon Blue Cross Blue Shield","letter"+fileAppend +".asp?insco=Horizon Blue Cross Blue Shield");
//	group[32][3] =new Option("Horizon Blue Cross Blue Shield","letter"+fileAppend +".asp?insco=Horizon Blue Cross Blue Shield");
	
	
	group[33][0] =new Option("Partnership Health Plan","letter"+fileAppend +".asp?insco=Partnership Health Plan");
	
	group[34][0] =new Option("State Health Benefits Program","letter"+fileAppend +".asp?insco=State Health Benefits Program");
    //group[34][0] =new Option("State Health Benefits Program and School Employees Health Benefits Program (SHBP and SEHBP)","letter"+fileAppend +".asp?insco=State Health Benefits Program and School Employees Health Benefits Program (SHBP and SEHBP)");
    
	var temp=document.frmInsCo.cboPlans
	for (m=temp.options.length-1;m>=0;m--) {
		temp.options[m]=null
		for (i=0;i<group[x].length;i++) {
			temp.options[i]=new Option(group[x][i].text,group[x][i].value)
		}
		temp.options[0].selected=true
	}
}

function GoToPage1() {
	//location.href=document.frmInsCo.cboPlans[document.frmInsCo.cboPlans.selectedIndex].value
	GetExactMatch();
}

function GoToPage() {
	location.href=document.frmInsCo.cboPlans[document.frmInsCo.cboPlans.selectedIndex].value
	
}

