codice:
<script language="JavaScript" type="text/JavaScript">
<!--
function settavalore()
{
	var IE = navigator.appName.indexOf("Microsoft") != -1;
	var filmato = IE ? window.mainMovie : window.document.mainMovie;
	filmato.SetVariable("_root", document.getElementById("pathdb").value);
}
//-->
</script>
e assegni un id al campo di input
codice:
<input name="pathdb" type="hidden" value="valore" id="pathdb" />