function getform(form) {
var bAgent = navigator.userAgent;
var IsIE = bAgent.indexOf("MSIE") > -1;
var IsIE3 = IsIE && parseInt (navigator.appVersion) == 2;

 if (form.formslist.selectedIndex > 0){
    var myindex=form.formslist.selectedIndex;
    var filename=form.formslist.options[myindex].value;}

if (IsIE3) {
	window.open("/forms/" + filename,'newWin','scrollbars=yes,status=yes');
    }

else {  form.reset();
	document.location.href="/forms/" + filename;}

}

var formfiles = new Array();

	formfiles[0] = ["Adoption Assistance Plan","Benefits 2000 Plan","Benefits 2000 Plan","Benefits 2000 Plan","Cash Balance Pension Plan","Choices Benefits Plan","Choices Benefits Plan","Choices Benefits Plan","Employee Assistance Program","Group Term Life","Group Term Life","Pension Plan","Postretirement Supplemental Health Benefits Plan","Savings Plan","Travel Accident Insurance Plan","Retiree Dental Benefits Plan","Retiree Group Term Life","Retiree Medical Plan (Retired before 1/9/94)","Retiree Medical Plan (Retired on or after 1/1/94)","Separation Allowance","Long Term Care"];
	formfiles[1] = ["a_spd_adoption.pdf","a_spd_b2r_healthwelfare.pdf","a_spd_b2r_svccorp_healthwelfare.pdf","a_spd_b2r_power_healthwelfare.pdf","spd_r_cashbalance.pdf","a_spd_ch_beneplan.pdf","a_spd_ch_power_beneplan.pdf","a_spd_ch_svccorp_beneplan.pdf","a_spd_eap.pdf","a_spd_r_gtl.pdf","a_spd_ch_power_gtl.pdf","spd_pensionplan.pdf","spd_postretirement.pdf","a_spd_savings.pdf","a_spd_travelaccident.pdf","dentalbene.pdf","grptermlife.pdf","pre94medspd.pdf","post93medspd.pdf","a_spd_separationallow_rep.pdf","a_spd_ltc.pdf"];

function changedropdown(includes,droplist,titlearray,filearray){
	
	for (var count = 0; count < includes.length; count++){
		droplist.options.length = count+1;
                droplist.options[count+1] = new Option(titlearray[includes[count]], filearray[includes[count]]);}
        droplist.options[0].selected = true;
        droplist.options.length =count+1;
}

function formseval(form){
	var selected = form.formselect[form.formselect.selectedIndex].value;
 
	// alert (selected);
	
	if (selected == "pseg")
	     {changedropdown([0,1,4,8,12,13,14,18,19,20],form.formslist,formfiles[0],formfiles[1]);}
	if (selected == "pspower")
		{changedropdown([0,3,4,8,12,13,14,18,19,20],form.formslist,formfiles[0],formfiles[1]);}
	if (selected == "psenergy")
	     {changedropdown([0,3,4,8,12,13,14,18,19,20],form.formslist,formfiles[0],formfiles[1]);}
	if (selected == "psservicecorp")
	     {changedropdown([0,2,4,8,12,13,14,18,19,20],form.formslist,formfiles[0],formfiles[1]);}

	if (selected == "chpseg")
	     {changedropdown([0,5,8,9,11,12,13,14,19,20],form.formslist,formfiles[0],formfiles[1]);}
	if (selected == "chpspower")
		{changedropdown([0,6,8,10,11,12,13,14,19,20],form.formslist,formfiles[0],formfiles[1]);}
	if (selected == "chpsenergy")
	     {changedropdown([0,6,8,9,11,12,13,14,19,20],form.formslist,formfiles[0],formfiles[1]);}
	if (selected == "chpsservicecorp")
	     {changedropdown([0,7,8,9,11,12,13,14,20],form.formslist,formfiles[0],formfiles[1]);}
}
	
	
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
