﻿function leavinSite(promptQ, otherInfo) {
    function CallbackFn(arg) {
        if (arg == true) {
            // redirect
           // window.location = otherInfo
            //open in new window
            window.open(otherInfo);
        }
    }
    radconfirm('You are now leaving  star-program.com. To accept, click ok. To return to star-program.com click cancel', CallbackFn);
}
    
    
   
//(function($) {
//    $.fn.always_at_bottom = function() {
//        return this.each(function() {
//            var $this = $(this);
//            //alert($(document.body).height());
//            //alert('container-page: ' + $('#container-page').height() + ' content-pri: ' + $('#content-pri').height());
//            //alert($(window).height());
//            if ($(document.body).height() < $(window).height()) {

//                //exteranl css properties are available only on window.onLoad (safari/chrome)
//                $(window).load(function() {
//                    var footer_width = $this.css('width');
//                    var footer_margin_bottom = $this.css('margin-bottom');
//                    var footer_margin_bottom_d = getDigitFromDigitPX(footer_margin_bottom);
//                    var footer_bottom_position_should_be = 0 - footer_margin_bottom_d;
//                    $this.css({ position: "absolute", bottom: (footer_bottom_position_should_be + "px"), 'width': footer_width });
//                });

//            }; // end of if statement

//            // getDigitFromDigitPX('20px') => 20
//            function getDigitFromDigitPX(input) {
//                var re = new RegExp(/(\d*)px/);
//                var m = re.exec(input);
//                if (m == null) {
//                    return 0;
//                } else {
//                    return parseInt(m[1]);
//                }
//            }; // end of function getDigitFromDigitPX


//        }); // end of return this.each(function())
//    }; // end of pluging
//})(jQuery);




