window.onload=frame_correct;

function frame_correct() {

var path=unescape(top.location);

	if (window.name!='frm_content' && window.name!='booker_' && !((self.innerHeight == 0) && (self.innerWidth == 0))){
	top.location.replace('index.htm?' + findName(path) + '~frm_content');
	}
}

function findName(str){
	pos = 0;
	while(pos>-1){
		pos = str.indexOf('\/');
		str  = str.substr(pos+1);
	}
	return str;
}

