function fullscreenPopup(url, windowName, suppressReturn) {
    if (window && window.open) {

        var openW;
        var openH;
        var specs = 'top=0,left=0,toolbar=no,scrollbars=yes,menubar=no,status=no,location=no,directories=no,resizable=yes,titlebar=no,fullscreen=yes';

        if (screen.availWidth && screen.availHeight) {

            openW = screen.availWidth;

            openH = screen.availHeight;

            specs = specs + ',width=' + openW + ',height=' + openH;

        }

        var theWindow = window.open(url, windowName, specs);
        if (theWindow.opener == null) {
            theWindow.opener = self;
        }

        if (theWindow) {
            theWindow.window.focus();
            if (!suppressReturn) return 'true';
        }
        else if (!suppressReturn) return 'false';

    }

    else if (window && window.self && window.self.location && window.self.location.href) {

        window.self.location.href = url;

    }

}
