function jsPrinterFriendly() {
// get the element and assign its contentArea, also get the current document title
var scontentAreaHTML = document.getElementById("contentArea").innerHTML
var sTitle = document.title

	// check to see if there is contentArea
	if (scontentAreaHTML == "") {
        alert ("An error occurred attempting to create a printer friendly version of the page: " + sTitle + ".");

	// generate the printer friendly page
    } else {

        // change the new window attributes as necessary
        winPrinterFriendly = window.open("", null, "location=no,menubar=yes,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=yes")
        winPrinterFriendly.document.writeln("<link title=stylesheet rel=stylesheet href=style.css>\n")
        winPrinterFriendly.document.writeln("\n<body class=print>\n")
        winPrinterFriendly.document.writeln("\n<img src=http://www.kelownachamber.org/cwt/external/wcpages/images/hd-logo.png>\n")

        // write out the contentArea
        winPrinterFriendly.document.writeln("\n<p class=print>\n")
        winPrinterFriendly.document.writeln(scontentAreaHTML)
        winPrinterFriendly.document.writeln("\n<p><font size=1 face=Arial> &copy; Kelowna Chamber of Commerce, Inc.  All rights reserved.</font>\n<p>")

        // set the new window title and activate it
        //winPrinterFriendly.document.title = sTitle + " (Printer Friendly)"
        winPrinterFriendly.focus();
	}
}
