Add document method:

getFgColor: return the text color of the current document.(Ex. document.fgColor)
getCharacterSet:return charset of the current document.(Ex. document.characterSet)
getDefaultCharset:return charset of the current system(Ex. document.defaultCharset)

Delete duplicate and obsolete method.