function checkframe() {
	refstring="";
	refstring=top.location.search;

	refstring=unescape(refstring);
	refstring = refstring.slice(1);
	if (refstring == ""){
	}
	else {
		top.mainFrame.location.href=refstring;
	}
}