if (top.location.href == window.location.href)
{top.location.href ="index.html"; 
}

