﻿function wintop()
{
    if(top == null || self == null)
        return false;
        
    if (top.location != self.location)
        window.top.location = window.self.location;
        
    return true;
}

wintop();