The Best thing would be, view the source(html) before you register the script(comment it if you can) and see if you see any element name like txtIdentifierXml.
If your form has a name, then you can use it directly as:
<form name="myform" ...
then you can use:
document.myform.txtIdentifierXml
A your item is hidden you need little more tricky stuff there, ie to use clientID
document.getElementById('<%=txtIdentifierXml.ClientID %>').value
Me.RegisterClientScriptBlock("CloseMe_2", "<script language="
"var hidVal =document.yourformname.getElementById('<%=txtIdentifierXml.ClientID %>').value;" & _
"alert(hidVal);" & _
" window.returnValue = hidVal;" & _
" </script>")