// Internationalization:
// Language prefix is passed to the template HTML documents via the query string
// at the end of the URL (ie: www.eomniform.com/servlet/Login?/fr for French)
// The code below sets the BASE to that language prefix (instead of /servlet)
// so that we can still use relative paths for the links in this page and
// not have to change the links for any language.
// Without setting the base this way, the current directory for the page would be
// "/servlet/whatever". Then we could not use relative links.
function setBase()
{
	var lang = document.location.search.slice(1);
	document.write("<base href='" + document.location.protocol + '//' + document.location.host + lang + "/'>");
}


// Take the browser to /servlet/Home for the current language.
// That is one of: /servlet/Home, /servlet/Home?/fr, /servlet/Home?/gr
// The language prefix depends on the current page's lang-prefix.
function goHome()
{
	var lang = document.location.search;
	window.location.href = "/servlet/Home" + lang;
}
