refactoring

git-svn-id: http://farmanager.googlecode.com/svn/trunk@12340 ea59307d-ff68-5b67-5a21-acd59c66a581
fix 4064

git-svn-id: http://farmanager.googlecode.com/svn/trunk@12342 ea59307d-ff68-5b67-5a21-acd59c66a581
updated to 4066

git-svn-id: http://farmanager.googlecode.com/svn/trunk@12344 ea59307d-ff68-5b67-5a21-acd59c66a581