Code Cleanup and removing unecessary global variables as they could be supplied to function directly. Also code should remain in English.
Authored by: SumolX 2007-01-10
Parent: [r452]
Child: [r454]