i am expericing some problems with this embedded JS in Coldfusion. i keep getting a syntax error and dont understand why
--------------------------------------------------------------
<a href="javascript:void(0)"
onclick='clicked()'> #dirList.name# </a><br />
<script language="javascript">
function clicked()
{
window.parent.document.getElementById("fileD").value="#replace(dirList.directory,'\','\\','ALL')#\\#dirList.name#";
<!--- document.getElementById("fileLink").style.color="50141E"; --->
window.parent.document.getElementById("bC").disabled="true";
document.write("A file has been set. to remove it please click <a href='javascript:void(0)' onclick='window.parent.document.getElementById('fileD').value='null'; window.parent.document.getElementById('bC').disabled='false'; window.location.href='#cgi.SCRIPT_NAME#';'> here </a> , otherwise click <strong>submit</strong> to continue.");
}
--------------------------------------------------------------
<a href="javascript:void(0)"
onclick='clicked()'> #dirList.name# </a><br />
<script language="javascript">
function clicked()
{
window.parent.document.getElementById("fileD").value="#replace(dirList.directory,'\','\\','ALL')#\\#dirList.name#";
<!--- document.getElementById("fileLink").style.color="50141E"; --->
window.parent.document.getElementById("bC").disabled="true";
document.write("A file has been set. to remove it please click <a href='javascript:void(0)' onclick='window.parent.document.getElementById('fileD').value='null'; window.parent.document.getElementById('bC').disabled='false'; window.location.href='#cgi.SCRIPT_NAME#';'> here </a> , otherwise click <strong>submit</strong> to continue.");
}