
	if(!parent.frames[0]){

		loc=document.location.href;
		ind=loc.lastIndexOf("\/");
		ind=ind+1;
		pa=loc.substring(0, ind);
		loc=loc.replace(pa, "");
		window.location="../index.php?page="+loc;
	}
