Here is an article from MSDN which talks abt accessing values frm sharepoint site within your java script.
This is very useful as we need to do lots of customizations on UI like hide/show, enable/disable based on some existing values in your sharepoint lists.
so why not read tis


