//去除字串左右空白
function trim(instr)
{
	return instr.replace(/^[\s]*/gi,"").replace(/[\s]*$/gi,"");
}

