function printLink() {
	// check if DOM is available
	if(!document.getElementById || !document.createTextNode){return;}
	// check if there is a "No JavaScript" message
	var nojsmsg=document.getElementById('noprint');
	if(!nojsmsg){return;}

	// create a new paragraph and link to the application and replace
	// the non-JavaScript message with it.
	var newp=document.createElement('p');
	var newa=document.createElement('a');
	newa.href='JavaScript: window.print();';
	newa.id='print';
	newtxt='Print';
	newa.appendChild(document.createTextNode(newtxt));
	newp.appendChild(newa);
	nojsmsg.parentNode.replaceChild(newp,nojsmsg);
}