Request.QueryString("id") not working in javascript;

hey guys,

Request.QueryString(“id”) not working in javascript;
this is the code that I am using …

//I have tried
var pageType=Request.QueryString("page_type");
alert(pageType);

//also
var pageId = Request.QueryString("page_id").Item(1);
alert(pageId);

//also
var pageId = new String( Request.QueryString("page_id") )
alert(pageId);

none of these is working …
where I am wrong…

Regards,
RainaDaman

http://www.google.co.uk/search?q=javascript+querystring