<!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" />
<title>サンプル</title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript">
</script>
</head>
<body>
<form method="post" name="form1">
名前:<input type="text" name="name" value="" /><input type="button" value="セット" onclick="setform('form1','name','山田')" />
</form>
<form method="post" name="form2">
年齢:<input type="text" name="age" value="" /><input type="button" value="セット" onclick="setform('form2','age','30才')" />
</form>
</body>
</html>