function genOpenWindow() {
	ancs = document.getElementsByTagName('A');
	for (i=0; i<ancs.length; i++) {
		anc = ancs[i];
		if (anc.getAttribute('title') == 'ow') {
			linkDest = anc.getAttribute('href');
			anc.setAttribute('href', 'javascript: openwindow(screen.width, screen.height, \'' + linkDest + '\');');
			anc.setAttribute('title', '');
		}
	} 		
}

function openwindow(wWidth, wHeight, wURL)
{
	
	var strStat = 'width=' + wWidth + ', ';
	strStat+= 'height=' + wHeight + ', ';	
	strStat+= 'location=yes, ';
	strStat+= 'menubar=no, ';
	strStat+= 'resizable=yes, ';
	strStat+= 'scrollbars=no, ';
	strStat+= 'status=no, ';
	strStat+= 'titlebar=no, ';
	strStat+= 'toolbar=no';

	var dtMS = new Date();
	strWinName = dtMS.valueOf(); //milliseconds since 1970.jan.1 - unique name for new window :-)

	oWindow = window.open('about:blank', strWinName, strStat);
	oWindow.focus();
	oWindow.moveTo(0,0);
	oWindow.resizeTo(wWidth,wHeight);
	oWindow.location =  encodeURI( wURL );	
}

