function trim(){
	// this functions trimms the string from left & right;
	return this.replace(/^\s*/,"").replace(/\s*$/,"");
}
String.prototype.trim = trim;
function hasText(str){
	return null != str && str.trim().length > 0;
}