function WriteSearch(indx,dflt,kensaku,tbcolor) {
if (tbcolor=='no') {
  Sch='<form action=\"http://mkynet.hp.infoseek.co.jp/cgi-bin/msearch/msearch.cgi\" accept-charset=\"x-euc-jp\" target=\"_blank\"><input type=\"hidden\" name=\"index\" value=\"' + indx + '\"><input type=\"text\" name=\"query\" size=\"30\"value=\"' + dflt + '\"> <input type=\"submit\" value=\"' + kensaku + '\"> <INPUT TYPE=\"reset\" value=\"Α\"> <a href=\"http://mkynet.hp.infoseek.co.jp/cgi-bin/msearch/msearch.cgi?index=' + indx + '\" target=\"_blank\"><font size=2>υhelp</font></a><input type=\"hidden\" name=\"hint\" value=\"ΏR[h»θpΆρ\"></form>';
} else {
  Sch='<form action=\"http://mkynet.hp.infoseek.co.jp/cgi-bin/msearch/msearch.cgi\" accept-charset=\"x-euc-jp\" target=\"_blank\"><input type=\"hidden\" name=\"index\" value=\"' + indx + '\"><table bgcolor=\"' + tbcolor +'\" width=\"450\"><tr><td align=\"center\"><input type=\"text\" name=\"query\" size=\"30\"value=\"' + dflt + '\"> <input type=\"submit\" value=\"' + kensaku + '\"> <INPUT TYPE=\"reset\" value=\"Α\"> <a href=\"http://mkynet.hp.infoseek.co.jp/cgi-bin/msearch/msearch.cgi?index=' + indx + '\" target=\"_blank\"><font size=2>υhelp</font></a></td></tr></table><input type=\"hidden\" name=\"hint\" value=\"ΏR[h»θpΆρ\"></form>';
}
document.write(Sch);
return;
}

function QueryAdd1() {
if (document.SA1.q2switch.checked) {
  document.SA1.query.value  = document.SA1.q.value + " " + document.SA1.q2.value;
} else {
document.SA1.query.value  = document.SA1.q.value;
}
}


function QueryAdd2() {
if (document.SA2.q2switch.checked) {
  document.SA1.query.value  = document.SA2.q.value + " " + document.SA2.q2.value;
} else {
document.SA2.query.value  = document.SA2.q.value;
}
}