function getRootPath(){
	//change path here. always end with a trailing slash '/';
	return "/";
}
function getHost(){	   
	var loc =  document.location.hostname;
	var port = document.location.port;
	if (loc != undefined && loc != null && loc != ""){
		if (port != "" && port != undefined && port != null){
			return ("http://"+loc+":"+port+"/");
		} else {
			return "http://"+loc+ getRootPath();
		}
	} else {
		return "";
	}
}
function getFile(){
	var startpath = getRootPath();
	var path = document.location.pathname;
	if (path != undefined && path != null && path != ""){
		return path.substring(startpath.length,path.length);
	}                                        
}

function popout(thisurl,thiswin,thisproperties){
  newwin = window.open(thisurl,thiswin,thisproperties);
  if (window.focus) {newwin.focus()}
}

function fullScreen(theURL) {
	window.open(theURL, '', 'fullscreen=yes, scrollbars=no, status=no, toolbar=no');
}