﻿
function FrameBuster_BustHostileFrame(msg,dest,referrer)
{
    if (top != self) { 
        var IsInSameDomain = false;
        try {
            IsInSameDomain = (top.location.hostname == self.location.hostname);
        }
        catch (theExp) { 
            IsInSameDomain = false;
        }
        
        if (!IsInSameDomain) {
            document.body.innerHTML = "<a href=\"" + dest + "\" target=\"_self\">" + msg + "</a>";
            self.location.replace(dest + "?ref=" + escape(referrer));
        }
    }
}
