I just found a nice snippet for finding the creation date of a file, but I added some extra code to it to find and extract the referrer filename (which is then passed to the creation date snippet).

The thing I am trying to do with this is (from a contact form) take the referral window.document's URL (substring of the page's filename + extension)
Then pass this to the getFile method of the new ActiveXObject object.

However, I am getting a Microsoft Runtime Error:
Microsoft JScript runtime error '800a1391'

I am working inside of an asp page and tried putting the JS into asp tags, then alternatively tried using the javascript tags (i don't get the error when using the js tags, but the code does not render the date either), but the object is where my variable that holds the page name stops working... I'm confused so any guidance would be greatly appreciated.

PHP Code:
<Script Language="JavaScript">
          var 
whatIssuelastFslashtheFilemyObjectfdatepostDateSub;
          
whatIssue document.referrer;
          
lastFslash whatIssue.lastIndexOf("/");
          
theFile whatIssue.substring(lastFslash +1whatIssue.length);
          
myObject = new ActiveXObject("Scripting.FileSystemObject");
          
myObject.GetFile("c:\\test.txt");
          
date f.DateCreated;
          
document.write(date);
</
Script