<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
function setIndex(name) {
  var hidden = name.substring(0, name.lastIndexOf(':'));
  var f = document.userForm;
  f.clickIndex.value = f[hidden + ':userId'].value;
  alert(f.clickIndex.value);
}
</script>
</head>
<body>
<form id="userForm">
<div><span id="messages"></span></div>

        <input type="hidden" name="clickIndex" id="clickIndex"/>
        <input type="hidden" id="userItemsSave"/>

        <table>
                <tbody id="userItems">
                        <tr style="background-color:#EEEEEE;">
                                <td class="cnt-tb-cell1" style="width:50px;oerflow=hidden;">
                                        <input type="button" id="doDelete" value="Delete" onclick="setIndex(this.name);"/>
                                        <input type="hidden" id="userId"/>
                                </td>
                                <td class="cnt-tb-cell1" style="width:200px;oerflow=hidden;"><span id="userName">1</span></td>
                        </tr>
                </tbody>
        </table>



</form>
</body></html>