function isEmpty(s){
	var i;
	if(!s.length)return true;
	for (i=0; i < s.length; i++)
	if(s.charAt(i)!=" ")return false;
	return true;
}