	//general functions
		function trim(inS){
			if (inS != null){inS = inS.replace(/^\s*|\s*$/g,'');}
			return inS;
			}
	
		function ltrim(inS){
		    if (inS != null){inS = inS.replace(/^\s*/g,'');}
			return inS;
			}
	
		function rtrim(str){
		    if (inS != null){inS = inS.replace(/\s*$/g,'');}
			return inS;
			}
			
		function closeDiv(inId){
			vDiv = document.getElementById(inId)
			if (vDiv!=null){
				vDiv.style.display	= 'none';
			}
		}					
					
		function inputFocus(inThis){
			//onfocus clear or if not default then select all
			if (inThis.value == inThis.defaultValue){
				inThis.value = "";
				inThis.style.color = "#000000";
			}
			inThis.select();
		}
		
		function inputBlur(inThis){
			//on blur change back to default if not changed
			if (inThis.value == ""){
				inThis.value = inThis.defaultValue;
				inThis.style.color = "#C0C0C0";
			}
			else {
				inThis.style.color = "#000000";
			}
		}
	
		function getThisY(inThis){
			//use for objects not events
			var returnValue = inThis.offsetTop;
			while((inThis = inThis.offsetParent) != null){
				returnValue += inThis.offsetTop;
			}
			return returnValue;
		}

		function getThisX(inThis){
			//use for objects not events
			var returnValue = inThis.offsetLeft;
			while((inThis = inThis.offsetParent) != null){
				returnValue += inThis.offsetLeft;
			}
			return returnValue;
		}