if (parent.frames.length < 1) { document.location.href = '../index.html'; }