function clickMenu(num1,num2){ 
var stage = new Array();
var flgnum = 6;
var flgstage = 0;

document.open();
document.write('<html><head><title>menu</title>\n');
document.write('<script language="javascript" src="./composition.js"></script>\n');
document.write('<script language="javascript" src="./menu.js"></script>\n');
document.write('<link href ="./contents.css" rel="stylesheet" type="text/css"></link>\n');
document.write('<link href ="./local.css" rel="stylesheet" type="text/css"></link>\n');
document.write('</head>\n');
document.write('<body>\n');
document.write('<table width="100%" cellspacing="0" cellpadding="0" border="0">\n');
document.write('<tr><td class="menu">' + maptitle + '</td></tr>\n');
document.write('<tr><td height="10"></td></tr>\n');
for(j=1; j<tree.length/6; j++){
 for(i=0; i<6; i++){
  stage[i] = tree[flgnum];
  flgnum++;
 }
 if (stage[0] != "" && stage[1] == num1){
  document.write('<tr><td class="tbl-par"><a href="javascript:clickMenu(0,0);" class="tbl-para">' + stage[0] + '</a></td></tr>\n');
  document.write('<tr><td height="4"></td></tr>\n');
 }else{
  if (stage[0] != ""){
   document.write('<tr><td class="tbl-par"><a href="javascript:clickMenu(' + eval(stage[1]) + ',0);" class="tbl-para">' + stage[0] + '</a></td></tr>\n');
   document.write('<tr><td height="4"></td></tr>\n');
  }
 }
 if (stage[1] == num1 && stage[2] != "" && stage[3] == num2){
  document.write('<tr><td class="menu"><a href="javascript:clickMenu(' + stage[1] + ',0);" class="menu">' + stage[2] + '</a></td></tr>\n');
 }else{
  if (stage[1] == num1 && stage[2] != ""){
   document.write('<tr><td class="menu"><a href="javascript:clickMenu(' + stage[1] + ',' + stage[3] + ');" class="menu">' + stage[2] + '</a></td></tr>\n');
   document.write('<tr><td height="2"></td></tr>\n');
  }
 }
 if (stage[3] == num2){
   document.write('<tr><td><ol class="step1-disc"><li>');
   document.write('<a href="./pdf/' + stage[5] + '" target="contents">' + stage[4] + '</a>\n');
   document.write('</li></ol></td></tr>');
 }
}
document.write('</table>');
document.write('</body>');
document.write('</html>');
document.close();

} 
