function killframes() { if (top.location != location) { top.location.href = document.location.href ; } } function stoperror() { return true; } window.onerror = stoperror;