I'll trying to explain with an example
If the link is this:
http://www.somebloodydomain.com/index.cfm##firstpart
Then the page will open and go to the object with the id of firstpart
If the link is this
http://www.somebloodydomain.com/index.cfm?errorMsg=invalidclolour=red
Then
I Think
http://www.somebloodydomain.com/index.cfm##firstpart?errorMsg=invalid
http://www.somebloodydomain.com/index.cfm##firstpart?errorMsg=invalidclolour=red
clolour=red
should be
http://www.somebloodydomain.com/index.cfm?errorMsg=invalid