function isEmpty(str){
	str = str.replace(/^\s*|\s*$/g,"");
  return (str == null) || (str.length == 0);
}