function doClapClap(id)
{
    var txt = prompt("一言あれば入力してください(空欄可)", "");
    if(txt != null){
        document.getElementById("clapclapid").value = id;
        document.getElementById("clapclaptext").value = txt;
        document.getElementById("clapclapform").submit();
    }
}

function makeClapClapTag(txt, mid)
{
    document.write('<input type="button" value="');
    document.write(txt);
    document.write('" onclick="doClapClap(');
    document.write(mid);
    document.write(');"/>');
}
