为什么提示缺少标识符
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script language=javascript>
function setReadOnly(){
var in=document.getElementById("xxx");
if(in.readOnly) in.readOnly=false;
else in.readOnly=true;
} // 这段JS用来使点击ReadOnly按钮时,设置/取消xxx文本框的只读属性
</script>
<title>无标题文档</title>
</head>
<body>
<Input Name="xxx" Type="Input" id="xxx">
<input type=button value="ReadOnly" onclick="setReadOnly();">
</body>
</html>