function disp() { var strPub=parent.up.fm.sur.value; var strKey=parent.up.fm.res.value; var objDoc=new ActiveXObject("Msxml2.DOMDocument"); objDoc.async=false; objDoc.load("template.xml"); flg=false; strFlt="/親要素/テンプレ"; if(strPub!="") { strFlt+="[(所属 = '" + strPub + "')"; flg=true; } if(flg) { strFlt+="]"; } A=0; B=1; if(strKey=="偶数") { A=1; B=2; } if(strKey=="奇数") { A=0; B=2; } if(strKey=="1") { A=0; B=4; } if(strKey=="2") { A=1; B=4; } if(strKey=="3") { A=2; B=4; } if(strKey=="4") { A=3; B=4; } if(strKey=="5") { A=0; B=3; } if(strKey=="6") { A=1; B=3; } if(strKey=="7") { A=2; B=3; } var clnNod=objDoc.selectNodes(strFlt); with(parent.down.document) { open("text/html"); writeln("?検索結果"); writeln(""); writeln(""); writeln(""); for(i=A;i"); objNod=clnNod.item(i); objTem=objNod.selectSingleNode("テンプレート"); writeln(""); writeln(""); //writeln(""); //writeln("");> writeln("
"+ (i+1) +"

" + objTem.text +"


"); } writeln("
"); close(); } }