function getInputValue(inputName) {
	inputObj = (typeof(inputName) == "object") ? inputName : document.getElementById(inputName);
	return (inputObj) ? inputObj.value : "";
}

function setInputValue(inputName, newValue) {
	inputObj = (typeof(inputName) == "object") ? inputName : document.getElementById(inputName);
	
	if (inputObj) {
		inputObj.value = newValue;
	}
}