XX.innerHTML  ='<input name="'+xuhao+'" size="6" onClick="add(this)">'<script>
function add(obj){
alert(obj.name);
alert(obj.value);
}
</script>