/*
DP: 2007-02-22
Function to open a print-friendly version of a page and prompt to print.
*/

function openPrintFriendly ( targetFrame ) {
	var URL = 'parent.' + targetFrame + '.location.href';
	try {
		if (!eval(URL)) {
			window.alert("Cannot generate a print-friendly version of this page.");
		} else {
			var newWin = window.open(eval(URL), 'printFriendly', 'width=790,height=400,location=1,menubar=1,scrollbars=1,resizable=1,toolbar=1');
			newWin.print();
		}
	}
	catch(e) {
		window.alert("Sorry, we\'re unable to produce a print-friendly version of this page.");
	}
return true;
}