Web page Refresh Causes Fetch values to Change.

Web page Refresh Causes Fetch values to Change.

I have recorder a video of my problem below:

http://screencast.com/t/hJRUOZicfjt


Details

1. This is a customer portal page.
2. It is an html page.
3. Has an embedded form with lookup field
4. A for loop running through a series of records. This is what passes the value to the embedded form lookup field.


What is happening is the following:

On 4th webpage refresh the value passed to an embedded form in the html view changes.

If i refresh the page 4 more times the value goes back to the proper value. 

If i continue to do this the pattern continues.

What do you think is happening here?  I would think the whole page should reload when it is refreshed. It almost as though the code is continuing partway through a loop or something.

Please help
Thanks