function splitlocation(strLocation){
	if (strLocation.indexOf("?")>0) {	
		return(strLocation.substr(strLocation.indexOf("?")+1));
		}
	else {
		return (-1);
		}
}

function topicURL(topiclist, guid){
	var location='';
	for (i = 0; i < topiclist.length-1; i++) {
				  if (topiclist[i][0]==guid){
					location =topiclist[i][1];
				  }
			}
	return(location);
}
