Help with renaming a file

This script that I purchased, allows a web page visitor to record a video, via his webcam. Once the user selects “stop recording” he’s automatically taken to the Player page where he can Play and Save or Delete the recording.

What code can I add that will rename the file name VideoZ and give the recording a unique file name upon the user selecting “Save”?

Someone suggested changing the javascript to something like this:

so.addParam('flashvars','filename=' + new Date().getTime() +  'VideoZ&rtmpPath=rtmp://')

Is this valid javascript code that will accomplish renaming the file? If not, can you help me with this? thanks. Any help will be appreciated. Here’s the Player page code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" lang="en" xml:lang="en">
		<title>check recorded video</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript" src="js/swfobject.js"></script>
	<body bgcolor="#ffffff">
		<div id="player"></div>
              <script type="text/javascript">
               // <![CDATA[
               var so = new SWFObject("player.swf", "player", "640", "480", "9", "#000000");
               // ]]>