Determine if path is absolute or relative

Tech-Archive recommends: Fix windows errors by optimizing your registry



Is there a simple JS function to determine if a path is absolute or
relative, that works for both local and web paths? picking up :// is easy
enough, but the path may be local, like d:\mydir\subdir\ (instead of
file:///d:/mydir/subdir/ ). Or it may be a share...
Thanks, Giles


.