String.prototype.trim = function(){return this.replace(/(^[ |กก]*)|([ |กก]*$)/g, "");}
function EnterNextCtr(obj,evt)
{
	if (evt.keyCode == 13)
	{
		if(typeof obj == "Object")
		{
			obj.focus();
		}
		else
		{
			var obj2 = document.getElementById(obj);
			if (obj2 != null)
				obj2.focus();
		}
		evt.returnValue = false;
	}
}