// Name   : showURL (v1.0.0)
// Args   : sURL          - URL to show
//          bRefresh      - if true, the shown URL will not come out of browser cache
//          oTargetWindow - optional javascript window object that will be the target
// Desc   : Shows an URL in a specified window.
// Rem    : This script uses the function randomString().
// Author : Gerrie Kimpen (c) Katholieke Hogeschool Kempen - 1999
////////////////////////////////////////////////////////////////////////////////

function showURL(sURL, bRefresh, oTargetWindow)
{
	if (bRefresh)
	{
		var sConcatChar = (sURL.indexOf('?') != -1) ? '&' : '?';
		sURL = sURL + sConcatChar + 'refresh=' + randomString(8);
	}
	
	if (oTargetWindow) oTargetWindow.document.location = sURL;
	else document.location = sURL;

}

