function getURLBase() {	urlx = window.location.href;	return urlx.substring(0,urlx.indexOf("?"));}function getURLParam(name) {	var regexS = "[\\?&]" + name + "=([^&#]*)";	var regex = new RegExp(regexS);	var results = regex.exec(window.location.href);	return (results === null ? "" : results[1]);}function localRun() {	urlx = window.location.href;	if (urlx.substring(0,4) == "file") return 1;	return 0;}