function writeDocumentURL() {

if(document.getElementById('documentURL')) {
	return;
}

	div = document.createElement('div');
	div.id = 'documentURL';
	
	span = document.createElement('span');
	span.lang = 'en';
	span['xml:lang'] = 'en';
	labelText = document.createTextNode('URL: ');

	span.appendChild(labelText);
	div.appendChild(span);

	valueText= document.createTextNode(window.opener.location.href);

	div.appendChild(valueText);

	footer = document.getElementById('footerContainer')
	footer.appendChild(div);
}

function init() {
	writeDocumentURL(); 
	//window.print(); 
}
