// ----------------------
// FUNCTION: fGoURL
// DESCRIPTION: A function that redirects the browser to the received url
// ARGUMENTS: sUrl
// RETURN: None
// ----------------------
function fGoURL(sUrl) {
	if(sUrl.match('http://')){
		window.open(sUrl);
	} else {
		window.location = sUrl;
	}
}

// ----------------------
// FUNCTION: fGoURLTopic
// DESCRIPTION: A function that redirects the browser to the received url
// ARGUMENTS: sUrl
// RETURN: None
// ----------------------
function fGoURLTopic(sUrl,pubUrl) {
	checkUrl = sUrl.substr(0,1);

	if(checkUrl=="/"){
		window.location = sUrl;
	}
	
	else if(sUrl.match(pubUrl)){
		window.location = sUrl;
	} 
	else {
		window.open(sUrl);
	}
}
