
function handle_hash(myName,targetPage,targetFrame) {
	

	// top will be the same if this document is loaded directly
	// parent location will be null if loaded in another domain.
	var urlSegs =unescape(document.location).split('#');
	var target = '';
	if(urlSegs.length > 1) target = urlSegs[1];


	if( (top.location == document.location) || (parent.location==null))
	{

		// load index.html and jump to workflow section.
		topTarget = '.#'+myName+'#'+target

		top.location.replace( topTarget );
		return;
	}
	if( target == '') return;	
	if(targetPage == '' ) return;
	if(targetFrame == '') return;
	targetFrame.location.replace( targetPage+'#'+target);
	
}


	
	

