function search(str){
if(!str)return;
find = document.body.createTextRange();
if(!find.findText(str))alert("「"+str+"」はありません");
while (find.findText(str)){
find.select();
if(confirm("次を検索しますか?"))find.collapse(false);
else break;
}
}