if (userAgent.indexOf("linux") != -1) linux = true;
if (userAgent.indexOf("Win16") != -1) win16 = true;
/* pcp_runIntraLaunch(fileName)
* accepts file name in IntraLaunch format (ie *:\full\path\to.exe - from root of CD)
* checks browser and calls VBScript with filename if IE4+
* otherwise shows alert
*/
function pcp_runIntraLaunch(fileName) {
if (br=="e4plus") {
pcp_LaunchFile(fileName);
document.MM_returnValue = false;
}
else if (opera5plus) {
// OK, what's going on? Why doesn't Opera take any notice?
document.MM_returnValue = 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?");
document.MM_returnValue = confirm("Alert! To run files directly from Netscape you must have\rthe Netscape Open/Save dialog enabled. If it is,\ryou will get a 'Security Hazard' dialog box next. Choose 'Open'\rto run the file.\r\rIf you just get a 'Save to disk' dialog, you will not be able to use Netscape\rto install this software.\r\rSee the Netscape page under 'Help' for more information.\r\rDo you wish to continue?");
}
else {
alert('Alert! This will not work.\r\rYour browser does not allow the execution of files\rdirectly from the SuperCD. If you do not understand\rthis, click OK, go to the Help section on the SuperCD\rand read the instructions.');
document.MM_returnValue = false;
}
}
/* pcp_swapArrow()
* Searches for the arrow (rarrow.gif) in the index that is linked to the current documnet
* and changes it to a blinking arrow (blinkarr.gif). Used to highlight the current document
* in the index.
*/
/* pcp_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 pcp_emailWarning() {
var retVal = true;
if (br == 'e4plus' || br == 'n4plus') {
if (getCookie('PCPLUS_CD3') == null) {
retVal = confirm('Accessing this link will require you to have an\re-mail client set up and integrated correctly.\r\rIf it is you will be taken to a New Message window\rwhere you can type in your message and then send it.\r\rIf you are not connected to a network, this means\ryou need a modem and Internet account setup and\rswitched on.\r\rDo you wish to continue?');
}
}
else {
alert('Accessing this link will require you to have an\re-mail client set up and integrated correctly.\r\rIf it is you will be taken to a New Message window\rwhere you can type in your message and then send it.\r\rIf you are not connected to a network, this means\ryou need a modem and Internet account setup and\rswitched on.');
}
document.MM_returnValue = retVal;
}
/* pcp_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 pcp_linkWarning() {
if (getCookie('PCPLUS_CD5') == null) {
alert('This link takes you to pages authored by a third party.\r\rThey may contain links that lead onto the internet.\rIf you are not connected to a network, you will\rneed a modem and Internet account setup\rand switched on in order to follow them.');
}
}
/* pcp_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 pcp_webWarning() {
var retVal = true;
if (br == 'e4plus' || br == 'n4plus') {
if (getCookie('PCPLUS_CD1') == null) {
retVal = confirm('Accessing this link will require you to go on-line.\r\rIf you are not connected to a network, this means\ryou need a modem and Internet account setup\rand switched on. Do you wish to continue?');
}
}
else {
alert('Accessing this link will require you to go on-line.\r\rIf you are not connected to a network, this means\ryou need a modem and Internet account setup\rand switched on.');
}
document.MM_returnValue = retVal;
}
/* functions to get, set, delete and toggle cookies
* original stuff written by Dave Taylor - now that's going back a way!
*/
function setCookie(name, value) {
var exp = new Date(); // make new date object
exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * 1000)); // set it 1000 days ahead