var ShowExitPopup = true;

function ExitPage()
{
        if (ShowExitPopup) 
        { 
           ShowExitPopup = false;
           location.href = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=10774747";
           return '=====================================\nSpecial Offer!: Purchase the eBook for $7\n=====================================\n\nWait! Before You Go...\n\nI would like to offer you a special discount.\n\nI will give you a chance to buy the eBook for $7 by clicking the CANCEL button below.\n\nTo get access to your special offer, just click on the CANCEL button below.\n\n=====================================\nSpecial Offer!: Purchase the eBook for $7 \n======================================\n';
        }		   
}
window.onbeforeunload = ExitPage;