/*
	DESC:
	
	These are small functions used throughout the application.
	E.g. goURL to navigate around.
*/

	
	/******************************************************
	******************************************************/
	
	function goURL(url2go){
		window.location.href = url2go;
	}
	
	/******************************************************
	******************************************************/
	
	
	/******************************************************
	******************************************************/
	
	function getEl(el){
		return document.getElementById(el);
	}
	
	/******************************************************
	******************************************************/


	/******************************************************
	******************************************************/
	
	function createEl(elType){
		if(document.getElementById) return document.createElement(elType);
	}
	
	/******************************************************
	******************************************************/
	
	

	/******************************************************
	******************************************************/
	
	function createTxt(txt){
		if(document.getElementById) return document.createTextNode(txt);
	}
	
	/******************************************************
	******************************************************/
	
	
	/******************************************************
	******************************************************/
	
	function trimAll(sString){
		while (sString.substring(0,1) == ' '){
			sString = sString.substring(1, sString.length);
		}
		
		while (sString.substring(sString.length-1, sString.length) == ' '){
			sString = sString.substring(0,sString.length-1);
		}
		
		return sString;
	}
	
	/******************************************************
	******************************************************/



