﻿function sys_Trim(str1) {
	switch (typeof(str1)) {
		case "string":
			if (str1 == "") {return("");}
			str1 = str1.replace(/^\s*/i,""); str1 = str1.replace(/\s*$/i,"");
			return(str1); break;
		case "number":
			str1 = str1.toString(); return(str1); break;
		default:
			return(str1); break;
	}
}

