I copied this code in order to create two menus that would pull up a pdf file. However, I need the pdf file to open up in a new window. Can someone help me out? The code is below
Thanks
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT Language="JavaScript" >
function selectmenu(theme_prin)
{
if (theme_prin.theme.selectedIndex == 0)
{
alert('Please, make another selection');
}
else{
window.top.location.href = theme_prin.theme.options[theme_prin.theme.selectedIndex].value;
}}
menu=new Array()
menu[0]=new Array()
menu[1]=new Array()
menu[2]=new Array()
menu[3]=new Array()
menu[4]=new Array()
menu[5]=new Array()
menu[6]=new Array()
menu[7]=new Array()
menu[8]=new Array()
menu[9]=new Array()
menu[10]=new Array()
menu[11]=new Array()
menu[12]=new Array()
menu[13]=new Array()
menu[14]=new Array()
menu[15]=new Array()
menu[16]=new Array()
menu[17]=new Array()
menu[18]=new Array()
menu[19]=new Array()
menu[20]=new Array()
menu[21]=new Array()
menu[22]=new Array()
menu[23]=new Array()
menu[24]=new Array()
menu[25]=new Array()
menu[26]=new Array()
menu[27]=new Array()
menu[28]=new Array()
menu[29]=new Array()
menu[0][0]=new Option("General Information","
menu[1][0]=new Option("CIC Overview","menu[1][1]=new Option("Five Institutes","menu[1][2]=new Option("-SCHEDULES-",""
menu[1][3]=new Option("CIC National Program Schedule","menu[1][4]=new Option("CIC Alaska Schedule","menu[1][5]=new Option("CIC Arkansas Schedule","menu[1][6]=new Option("CIC California Schedule","menu[1][7]=new Option("CIC Hawaii Schedule","menu[1][8]=new Option("CIC Iowa Schedule","menu[1][9]=new Option("CIC Idaho Schedule","menu[1][10]=new Option("CIC Louisiana Schedule","menu[1][11]=new Option("CIC Mississippi Schedule","menu[1][12]=new Option("CIC Nebraska Schedule","menu[1][13]=new Option("CIC New Mexico Schedule","menu[1][14]=new Option("CIC Texas Schedule","menu[1][15]=new Option("CIC Wyoming Schedule","menu[1][16]=new Option("CIC West Virginia Schedule","
menu[2][0]=new Option("CISR General Information",""
menu[2][1]=new Option("CISR Five Courses",""
menu[2][2]=new Option("-SCHEDULES-",""
menu[2][3]=new Option("CISR National Program Schedule",""
menu[2][4]=new Option("Northeast Schedule",""
menu[2][5]=new Option("North Central Schedule",""
menu[2][6]=new Option("Southern Schedule",""
menu[2][7]=new Option("Western Schedule",""
menu[2][8]=new Option("Arkansas",""
menu[2][9]=new Option("California",""
menu[2][10]=new Option("Hawaii",""
menu[2][11]=new Option("Iowa",""
menu[2][12]=new Option("Idaho",""
menu[2][13]=new Option("Mississippi",""
menu[2][14]=new Option("New Mexico",""
menu[2][15]=new Option("North/South Dakota",""
menu[2][16]=new Option("Texas",""
menu[2][17]=new Option("Utah",""
menu[2][18]=new Option("Advanced Lecture Series",""
menu[2][19]=new Option("-PARTICIPANT INFORMATION-",""
menu[2][20]=new Option("Completes Course",""
menu[2][21]=new Option("Update Requirement",""
menu[2][22]=new Option("Earns Designation",""
menu[2][23]=new Option("Emeritus Form",""
menu[2][24]=new Option("Change of Name/Address Form",""
menu[2][25]=new Option("ACSR",""
menu[2][26]=new Option("CPSR",""
menu[2][27]=new Option("Information for CSR of Year",""
menu[2][28]=new Option("Nomination Form for CSR of Year",""
menu[2][29]=new Option("Candidate Form for CSR of Year",""
menu[3][0]=new Option("CRM General Information",""
menu[3][1]=new Option("Five Courses","menu[3][2]=new Option("Name/Address Change Form","menu[3][2]=new Option("Brochure Order Form","menu[3][2]=new Option("CRM Exam Review Request","menu[3][2]=new Option("-SCHEDULES-",""
menu[3][2]=new Option("Program Schedule","
menu[4][0]=new Option("Graduate Seminar","menu[4][1]=new Option("-INDUSTRY TOPICES-",""
menu[4][2]=new Option("Financial Instututions","menu[4][3]=new Option("Contractors","menu[4][4]=new Option("Health Care Entities","menu[4][5]=new Option("Truckers ","menu[4][6]=new Option("Truckers II","menu[4][7]=new Option("Oil & Gas","menu[4][8]=new Option("-MANAGEMENT TOPICS-",""
menu[4][9]=new Option("Marketing and Sales",""
menu[4][10]=new Option("Managing People","menu[4][11]=new Option("Agency Management Practices","menu[4][12]=new Option("-SINGLE FOCUS TOPICS-",""
menu[4][13]=new Option("Large Commercial Account","menu[4][14]=new Option("Small Commercial Accounts","menu[4][15]=new Option("Life and Benefits","menu[4][16]=new Option("Personal Lines","menu[4][17]=new Option("-MISCELLANEOUS TOPICS-",""
menu[4][18]=new Option("Multiple Topic","menu[4][19]=new Option("MEGA","
menu[5][0]=new Option("DYNAMICS OF SELLING",""
menu[5][1]=new Option("General Information","menu[5][2]=new Option("National Schedule","menu[5][3]=new Option("Thomas G. Williams Fellowship",""
menu[5][4]=new Option("-DYNAMICS OF SALES MANAGEMENT-",""
menu[5][5]=new Option("General Information",""
menu[5][6]=new Option("Schedule",""
menu[5][7]=new Option("In-House Programs",""
menu[6][0]=new Option("General Information",""
menu[6][1]=new Option("Academy Publications at a Glance","menu[6][2]=new Option("-PRODUCTIVITY-","menu[6][3]=new Option("Growth and Performance Standards","menu[6][4]=new Option("Foundations of Customer Service","menu[6][5]=new Option("Maximizing Agency Value","menu[6][6]=new Option("Transactional Filing","menu[6][7]=new Option("Understanding the Wholesale Insurance Market","menu[6][8]=new Option("Critical Factors Impacting Agency Value","menu[6][9]=new Option("-MARKETING-","menu[6][10]=new Option("Fee Based Services","menu[6][11]=new Option("Focused Selling","menu[6][12]=new Option("Producer Compensation","menu[6][13]=new Option("-COVERAGE-","menu[6][14]=new Option("Insuring Home-Based Businesses","menu[6][15]=new Option("Three Faces of Executive Liability","menu[6][16]=new Option("Complete the Circuit","
menu[7][0]=new Option("Ready Reference Guide",""
menu[7][1]=new Option("Home State Certification Information","menu[7][2]=new Option("Request for Duplication Course Completion Certification","menu[7][3]=new Option("Rush Processing Procedure for Course",""
menu[7][4]=new Option("Web Based Training Ready Reference Guide",""
function fillList(z){
for (a=document.f.s.options.length-1;a>0;a--){document.f.s.options[a]=null}
for (a=0;a<menu[z].length;a++){document.f.s.options[a]=new
Option(menu[z][a].text,menu[z][a].value)
}
document.f.s.selectedIndex=0
}
</SCRIPT>
</head>
<body bgcolor="#FFFFFF">
<FORM NAME=f>
<div align="center">
<table width="845" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="152">
<div align="center"><img src="../../../website/ASum/Logo.gif" width="234" height="88"></div>
</td>
</tr>
<tr>
<td height="31">
<div align="center"></div>
</td>
</tr>
<tr>
<td height="178">
<div align="center">
<select name="theme" size=1 onChange="selectmenu(this.form)">
<option>Programs</option>
<option value="Javascript:fillList(0)">National Alliance</option>
<option value="Javascript:fillList(1)">CIC</option>
<option value="Javascript:fillList(2)">CISR</option>
<option value="Javascript:fillList(3)">CRM</option>
<option value="Javascript:fillList(4)">RUBLES</option>
<option value="Javascript:fillList(5)">NCIM</option>
<option value="Javascript:fillList(6)">Academy</option>
<option value="Javascript:fillList(7)">CONTINUING EDUCATION</option>
</select>
<select name=s style="width:350" size="1">
<option value="#">Topics
</select>
<input type=button onClick="location=document.f.s.options[document.f.s.selectedIndex].value" value="GO" name="button">
</div>
</td>
</tr>
</table>
</div>
</FORM>
</body>
</html>
Thanks
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT Language="JavaScript" >
function selectmenu(theme_prin)
{
if (theme_prin.theme.selectedIndex == 0)
{
alert('Please, make another selection');
}
else{
window.top.location.href = theme_prin.theme.options[theme_prin.theme.selectedIndex].value;
}}
menu=new Array()
menu[0]=new Array()
menu[1]=new Array()
menu[2]=new Array()
menu[3]=new Array()
menu[4]=new Array()
menu[5]=new Array()
menu[6]=new Array()
menu[7]=new Array()
menu[8]=new Array()
menu[9]=new Array()
menu[10]=new Array()
menu[11]=new Array()
menu[12]=new Array()
menu[13]=new Array()
menu[14]=new Array()
menu[15]=new Array()
menu[16]=new Array()
menu[17]=new Array()
menu[18]=new Array()
menu[19]=new Array()
menu[20]=new Array()
menu[21]=new Array()
menu[22]=new Array()
menu[23]=new Array()
menu[24]=new Array()
menu[25]=new Array()
menu[26]=new Array()
menu[27]=new Array()
menu[28]=new Array()
menu[29]=new Array()
menu[0][0]=new Option("General Information","
menu[1][0]=new Option("CIC Overview","menu[1][1]=new Option("Five Institutes","menu[1][2]=new Option("-SCHEDULES-",""
menu[1][3]=new Option("CIC National Program Schedule","menu[1][4]=new Option("CIC Alaska Schedule","menu[1][5]=new Option("CIC Arkansas Schedule","menu[1][6]=new Option("CIC California Schedule","menu[1][7]=new Option("CIC Hawaii Schedule","menu[1][8]=new Option("CIC Iowa Schedule","menu[1][9]=new Option("CIC Idaho Schedule","menu[1][10]=new Option("CIC Louisiana Schedule","menu[1][11]=new Option("CIC Mississippi Schedule","menu[1][12]=new Option("CIC Nebraska Schedule","menu[1][13]=new Option("CIC New Mexico Schedule","menu[1][14]=new Option("CIC Texas Schedule","menu[1][15]=new Option("CIC Wyoming Schedule","menu[1][16]=new Option("CIC West Virginia Schedule","
menu[2][0]=new Option("CISR General Information",""
menu[2][1]=new Option("CISR Five Courses",""
menu[2][2]=new Option("-SCHEDULES-",""
menu[2][3]=new Option("CISR National Program Schedule",""
menu[2][4]=new Option("Northeast Schedule",""
menu[2][5]=new Option("North Central Schedule",""
menu[2][6]=new Option("Southern Schedule",""
menu[2][7]=new Option("Western Schedule",""
menu[2][8]=new Option("Arkansas",""
menu[2][9]=new Option("California",""
menu[2][10]=new Option("Hawaii",""
menu[2][11]=new Option("Iowa",""
menu[2][12]=new Option("Idaho",""
menu[2][13]=new Option("Mississippi",""
menu[2][14]=new Option("New Mexico",""
menu[2][15]=new Option("North/South Dakota",""
menu[2][16]=new Option("Texas",""
menu[2][17]=new Option("Utah",""
menu[2][18]=new Option("Advanced Lecture Series",""
menu[2][19]=new Option("-PARTICIPANT INFORMATION-",""
menu[2][20]=new Option("Completes Course",""
menu[2][21]=new Option("Update Requirement",""
menu[2][22]=new Option("Earns Designation",""
menu[2][23]=new Option("Emeritus Form",""
menu[2][24]=new Option("Change of Name/Address Form",""
menu[2][25]=new Option("ACSR",""
menu[2][26]=new Option("CPSR",""
menu[2][27]=new Option("Information for CSR of Year",""
menu[2][28]=new Option("Nomination Form for CSR of Year",""
menu[2][29]=new Option("Candidate Form for CSR of Year",""
menu[3][0]=new Option("CRM General Information",""
menu[3][1]=new Option("Five Courses","menu[3][2]=new Option("Name/Address Change Form","menu[3][2]=new Option("Brochure Order Form","menu[3][2]=new Option("CRM Exam Review Request","menu[3][2]=new Option("-SCHEDULES-",""
menu[3][2]=new Option("Program Schedule","
menu[4][0]=new Option("Graduate Seminar","menu[4][1]=new Option("-INDUSTRY TOPICES-",""
menu[4][2]=new Option("Financial Instututions","menu[4][3]=new Option("Contractors","menu[4][4]=new Option("Health Care Entities","menu[4][5]=new Option("Truckers ","menu[4][6]=new Option("Truckers II","menu[4][7]=new Option("Oil & Gas","menu[4][8]=new Option("-MANAGEMENT TOPICS-",""
menu[4][9]=new Option("Marketing and Sales",""
menu[4][10]=new Option("Managing People","menu[4][11]=new Option("Agency Management Practices","menu[4][12]=new Option("-SINGLE FOCUS TOPICS-",""
menu[4][13]=new Option("Large Commercial Account","menu[4][14]=new Option("Small Commercial Accounts","menu[4][15]=new Option("Life and Benefits","menu[4][16]=new Option("Personal Lines","menu[4][17]=new Option("-MISCELLANEOUS TOPICS-",""
menu[4][18]=new Option("Multiple Topic","menu[4][19]=new Option("MEGA","
menu[5][0]=new Option("DYNAMICS OF SELLING",""
menu[5][1]=new Option("General Information","menu[5][2]=new Option("National Schedule","menu[5][3]=new Option("Thomas G. Williams Fellowship",""
menu[5][4]=new Option("-DYNAMICS OF SALES MANAGEMENT-",""
menu[5][5]=new Option("General Information",""
menu[5][6]=new Option("Schedule",""
menu[5][7]=new Option("In-House Programs",""
menu[6][0]=new Option("General Information",""
menu[6][1]=new Option("Academy Publications at a Glance","menu[6][2]=new Option("-PRODUCTIVITY-","menu[6][3]=new Option("Growth and Performance Standards","menu[6][4]=new Option("Foundations of Customer Service","menu[6][5]=new Option("Maximizing Agency Value","menu[6][6]=new Option("Transactional Filing","menu[6][7]=new Option("Understanding the Wholesale Insurance Market","menu[6][8]=new Option("Critical Factors Impacting Agency Value","menu[6][9]=new Option("-MARKETING-","menu[6][10]=new Option("Fee Based Services","menu[6][11]=new Option("Focused Selling","menu[6][12]=new Option("Producer Compensation","menu[6][13]=new Option("-COVERAGE-","menu[6][14]=new Option("Insuring Home-Based Businesses","menu[6][15]=new Option("Three Faces of Executive Liability","menu[6][16]=new Option("Complete the Circuit","
menu[7][0]=new Option("Ready Reference Guide",""
menu[7][1]=new Option("Home State Certification Information","menu[7][2]=new Option("Request for Duplication Course Completion Certification","menu[7][3]=new Option("Rush Processing Procedure for Course",""
menu[7][4]=new Option("Web Based Training Ready Reference Guide",""
function fillList(z){
for (a=document.f.s.options.length-1;a>0;a--){document.f.s.options[a]=null}
for (a=0;a<menu[z].length;a++){document.f.s.options[a]=new
Option(menu[z][a].text,menu[z][a].value)
}
document.f.s.selectedIndex=0
}
</SCRIPT>
</head>
<body bgcolor="#FFFFFF">
<FORM NAME=f>
<div align="center">
<table width="845" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="152">
<div align="center"><img src="../../../website/ASum/Logo.gif" width="234" height="88"></div>
</td>
</tr>
<tr>
<td height="31">
<div align="center"></div>
</td>
</tr>
<tr>
<td height="178">
<div align="center">
<select name="theme" size=1 onChange="selectmenu(this.form)">
<option>Programs</option>
<option value="Javascript:fillList(0)">National Alliance</option>
<option value="Javascript:fillList(1)">CIC</option>
<option value="Javascript:fillList(2)">CISR</option>
<option value="Javascript:fillList(3)">CRM</option>
<option value="Javascript:fillList(4)">RUBLES</option>
<option value="Javascript:fillList(5)">NCIM</option>
<option value="Javascript:fillList(6)">Academy</option>
<option value="Javascript:fillList(7)">CONTINUING EDUCATION</option>
</select>
<select name=s style="width:350" size="1">
<option value="#">Topics
</select>
<input type=button onClick="location=document.f.s.options[document.f.s.selectedIndex].value" value="GO" name="button">
</div>
</td>
</tr>
</table>
</div>
</FORM>
</body>
</html>