http://www.go4expert.com/showthread....nline+function
http://www.go4expert.com/showthread....nline+function
very detailed answer