* alerts browsers not capable of installing software to the fact
* and prevents them proceding
*/
function fp_runWarning(){ //v1.0
var d = document, retVal = false
if (d.ie4plus) retVal = true;
else if (d.op5plus) {
retVal = confirm("Alert! To run files directly from Opera you must choose 'Run file'\nin the next dialog box. If you choose 'Save to disk' the installation\nwill not work.\n\nContinue?");
}
else if (d.ns4plus && fp_getCookie('PCPLUS_CDN') != null) {
retVal = confirm("Alert! To run files directly from Netscape you must have\nthe Netscape Open/Save dialog enabled. If it is,\nyou will get a 'Security Hazard' dialog box next. Choose 'Open'\nto run the file.\n\nIf you just get a 'Save to disk' dialog, you will not be able to use Netscape\nto install this software.\n\nSee the Netscape page under 'Help' for more information.\n\nDo you wish to continue?");
}
else {
alert('Alert! This will not work.\n\nYour browser does not allow the execution of files\ndirectly from the SuperDisc. If you do not understand\nthis, click OK, go to the Help section on the SuperDisc\nand read the instructions.');
retVal = false;
}
document.MM_returnValue = retVal;
}
/* fp_emailWarning()
* Warns users that they must have an email client configured to access the mailto link,
* unless they've set the PCPLUS_CD3 cookie (on the help.htm page). Now why doesn't cancelling
* work in NS? Have tried everything, I think...
*/
function fp_emailWarning() { //v1.0
var d = document;
var retVal = true;
if (fp_getCookie('PCPLUS_CD3') == null) {
if (d.ie4plus || d.ns4plus || d.op5plus) {
retVal = confirm('Accessing this link will require you to have an\ne-mail client set up and integrated correctly.\n\nIf it is you will be taken to a New Message window\nwhere you can type in your message and then send it.\n\nIf you are not connected to a network, this means\nyou need a modem and Internet account setup and\nswitched on.\n\nDo you wish to continue?');
}
else {
alert('Accessing this link will require you to have an\ne-mail client set up and integrated correctly.\n\nIf it is you will be taken to a New Message window\nwhere you can type in your message and then send it.\n\nIf you are not connected to a network, this means\nyou need a modem and Internet account setup and\nswitched on.');
}
}
document.MM_returnValue = retVal;
}
/* fp_webWarning()
* Alerts users they are accessing a remote link that requires an Internet connection.
* Disabled with the PCPLUS_CD1 cookie, set on the help.htm page
*/
function fp_webWarning() { //v1.0
var d = document, retVal = true;
if (fp_getCookie('PCPLUS_CD1') == null) {
if (d.ie4plus || d.ns4plus || d.op5plus) {
retVal = confirm('Accessing this link will require you to go on-line.\n\nIf you are not connected to a network, this means\nyou need a modem and Internet account setup\nand switched on. Do you wish to continue?');
}
else {
alert('Accessing this link will require you to go on-line.\n\nIf you are not connected to a network, this means\nyou need a modem and Internet account setup\nand switched on.');
}
}
document.MM_returnValue = retVal;
}
/* fp_linkWarning()
* Alerts users they are entering pages authored by a 3rd party, which may contain links
* to the Internet that will require an Internet connection. Disabled by the PCPLUS_CD5
* cookie
*/
function fp_linkWarning() { //v1.0
if (fp_getCookie('PCPLUS_CD5') == null) {
alert('This link takes you to pages authored by a third party.\n\nThey may contain links that lead onto the internet.\nIf you are not connected to a network, you will\nneed a modem and Internet account setup\nand switched on in order to follow them.');
}
}
/* functions to get, set, delete and toggle cookies
* original stuff written by Dave Taylor - now that's going back a way!
* Cookies PCPLUS_CD2 & PCPLUS_CD4 were used to supress warnings no longer used
* - don't be tempted to use them in case they're still lurking around
*/
function fp_setCookie(name, value) { //v1.0
var exp = new Date(); // make new date object
exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * 1000)); // set it 1000 days ahead