I think this will help you mate.

Code: 
http://www.microbion.co.uk/web/vertline.htm