﻿function checkFrames(){if(hasParent(window)){
    var w = window;
    for(;hasParent(w); w = w.parent){}
    w.location = window.location;
}
}
function hasParent(/*Window*/ win){
    return !!win.parent && win.parent.location != win.location;
}
    setTimeout('checkFrames()', 1000);
