关于控件名称中带小数点的取值有关问题!

求救关于控件名称中带小数点的取值问题!!!
现在页面中有
<input   type= "text "   name= "condition.criterName "   maxlength= "30 "   size= "40 ">
这样一个text框。
但是不知用javascript如何取到输入的值。

谢谢!!!

------解决方案--------------------
<!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 ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=utf-8 " />
<title> shawl.qiu template </title>
<script type= "text/javascript ">
// <![CDATA[
onload =
function()
{
var IptSet = document.getElementsByName( "condition.criterName ")
alert(IptSet[0].value)
}
//]]>
</script>
</head>
<body>

<input type= "text " name= "condition.criterName " maxlength= "30 " size= "40 " value= "hi ">
</body>
</html>