﻿function GoTo(url) {
	location.href = url;
}


// String Functions
function fLTrim(objValue) {
	if (objValue.length==0)
		return ('')
	else{
		while (objValue.charAt(0)==' '){
			if (objValue.length==1)
				return ('')
			else
				objValue=objValue.substring(1,objValue.length);
		}
	}
	return (objValue);
}

function fRTrim(objValue) {
	if (objValue.length==0)
		return ('')
	else{
		while (objValue.charAt(objValue.length-1)==' '){
			if (objValue.length==1)
				return ('')
			else
				objValue=objValue.substring(0,objValue.length-1);
		}
	}
	return (objValue);
}

function fAllTrim(objValue) {
	return (fRTrim(fLTrim(objValue)))
}

function trace(str) {
	var o = document.getElementById("debugTraceDiv");
	if(o == null) {
		document.body.insertAdjacentHTML("beforeEnd", "<div id='debugTraceDiv'></div>");
		o = document.getElementById("debugTraceDiv");
	}
	
	o.innerHTML += str + "<br>";
}


