// NOTE: the variable 'bp_url' (string) must be set with the full path of the destination
// ie: 'http://www.website.com/'

//patch:
    if (typeof bp_kid == 'undefined') bp_kid = true;
    if (typeof bp_target == 'undefined') bp_target = "";
    if (typeof bp_close == 'undefined') bp_close = false;

// cheesy NS4 fix:
    // if (!document.getElementById) bp_close = false;

document.write('<p>You are about to leave for another site that is not a Hershey Company site');
if (bp_kid) {
    document.write(' and may contain things for adults as well as kids');
}
document.write('. Do you want to leave or stay?</p>');
document.write('<p><b><a href="' + bp_url + '"');
if (bp_target != "") {
    document.write(' target="' + bp_target + '"');
}
if (bp_close) {
    document.write(' onclick="setTimeout(\'self.close()\',1000);"');
}
document.write('>LEAVE</a></b> - Take me to the site.</p>');
document.write('<p><b><a href="javascript:self.close();">STAY</a></b> - No thanks, I want to stay here.</p>');
if (bp_kid) {
    document.write('<hr size="1">');
    document.write('<p><b>KIDS -- Listen Up! </b>Before you give out any information about ');
    document.write('yourself online, <b>always</b> ask your parent or guardian first. ');
    document.write('<i>Never</i> give out your full name, address or phone number because ');
    document.write('strangers don\'t need to know that!</p>');
} else {
    document.write('<p>&nbsp;</p>');
}