String.prototype.Trim = function(trimWhat){
  trimWhat = (trimWhat != null && trimWhat != "" ? trimWhat : "\\s")
	return this.replace(eval("/^("+trimWhat+")+|("+trimWhat+")+$/g"), "");  // /^\s+|\s+$/g
}
String.prototype.LTrim = function(trimWhat){
  trimWhat = (trimWhat != null && trimWhat != "" ? trimWhat : "\\s")
	return this.replace(eval("/^("+trimWhat+")+/"), "");                    // /^\s+/
}
String.prototype.RTrim = function(trimWhat){
  trimWhat = (trimWhat != null && trimWhat != "" ? trimWhat : "\\s")
	return this.replace(eval("/("+trimWhat+")+$/"), "");                    // /\s+$/
}

GPolyline.prototype.Contains             = GPolygon.prototype.Contains;






