function GetURLParameter(sParam) {
const sPageURL = decodeURIComponent(window.location.search.substring(1));
const sURLVariables = sPageURL.split('&');
for (let i = 0; i < sURLVariables.length; i++) {
const sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == sParam) {
return sParameterName[1];
}
}
}
function AutoClose() {
window.close();
}
function removeErrorElement(){
let msgs = document.getElementById('messages');
while (msgs.firstChild) {
msgs.removeChild(msgs.firstChild);
}
}
function escapeHTML(text) {
if (text != null) {
return text.replace(/&/g, '').
replace(/×Error: "
+ errorObj.message
+ "";
let msgs = document.getElementById('messages');
msgs.appendChild(errorElement);
}
}
}