/* All Javascript Functions for abicon.com */

/* Copyright footer - revised: 2002/06/15 */
function aci_copyright_en() {
document.write('<p class="footer">Copyright Abitibi-Consolidated Inc. 2002</p>');
}
function aci_copyright_fr() {
document.write('<p class="footer">Tous droits r&eacute;serv&eacute;s &copy; 2002 Abitibi-Consolidated</p>');
}



/* Alerts - revised: 2002/06/12 */
function leaving_alert(destURL,message) {
alert(message);
window.open(destURL);
}

/* All popup functions - revised: 2002/06/15 */
function PopupContact(destURL) {
        window.open(destURL,"contact","width=410,height=400,menubar=no,toolbar=no,location=no,directories=no,resizable=no,status=no,scrollbars=1");
}
function PopupGeneral(destURL) {
        window.open(destURL);
}
function PopupTech(destURL) {
        window.open(destURL,"tech","width=480,height=500,menubar=no,toolbar=no,location=no,directories=no,resizable=no,status=no,scrollbars=1");
}
function PopupLegal(destURL) {
        window.open(destURL,"legal","width=410,height=500,menubar=no,toolbar=no,location=no,directories=no,resizable=no,status=no,scrollbars=1");
}
function PopupGraph(destURL) {
       window.open(destURL,"graph","width=500,height=500,menubar=no,toolbar=no,location=no,directories=no,resizable=no,status=no,scrollbars=1");
}
/* the following function is only used by the Paper Customer Centre */
function PopupCalculator(destURL) {
        window.open(destURL,"out","width=540,height=260,menubar=no,toolbar=no,location=no,directories=no,resizable=0,status=no,scrollbars=0");
}

/* Printing current page, including frame - revised: 2002/05/28 */
var agt=navigator.userAgent.toLowerCase();
function printArticle() {
	var prn = new Image();
	prn.src="";
        if (window.print) {
                setTimeout('window.print();',200);
        }
        else if (agt.indexOf("mac") != -1) {
                alert("Press 'Cmd+p' to start printing.");
        }
        else {
                alert("Press 'Ctrl+p' to start printing.")
        }
}

/* end of javascript file */
