You can’t insert a script object into an attribute value like that.
You need to assign the value with a function or something. There are several ways to do it. Here’s one possibility
<script language="javascript" type="text/javascript">
<!--
function initInput()
{
var variable = somevalue;
document.forms[0].fid_17.value = variable;
}
//-->
</script>
</head>
<body onLoad="initInput()">
<form>
<input name="fid_17" id="fid_17" value="">
</form>
</body>
Oh, and get accustomed to surrounding your attribute values with “double quotes”