I know we usually do VB questions here but I have a javascript question that I cant find any help on.

I have a cookie named "STCookie" and it has a Key named "DBs". The key contains a string of values separated by a ":". What I need to do is have the user enter a value into a textbox and remove it from the key.

For example, the cookie looks like this:
STCookie[]DBs=value1:value2:value3:value4:value5

Now I want to delete "value3"
So the user enters "value3" into a textbox and hits a submit button. The cookie then should look like:
STCookie[]DBs=value1:value2:value4:value5

How would I be able to do this?? The user should have a warning in there, probably a 'window.confirm', but I think I can handle that part.

Thanks very much for any help!!!!!
~Piz