		function loadAlert(){
			alertOn = trim(alertOn);
			alert = trim(alert);
			if(alertOn == "true" && alert != ""){
				document.getElementById('alertBox').style.display = "block";
				document.getElementById('alertBox').innerHTML = alert+"<br><br>";
			}
		}

		function trim(str, chars) {
		    return ltrim(rtrim(str, chars), chars);
		}

		function ltrim(str, chars) {
		    chars = chars || "\\s";
		    return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
		}

		function rtrim(str, chars) {
		    chars = chars || "\\s";
		    return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
		}
