Possible Duplicate:
How to get the value from URL Parameter?
I have this URL: http://example.com/photos/5062d95d-13e8-ceb8-bb35-5891b62a3418/?id=872364876
And I have this javascript code:
if (sssssssssss) {
    window.location = "http://example.com/s/1525";
} else {
    location.replace('http://example.com/id=');
}
I need to fill the id value from the GET parameters in the else section. 
Any ideas?
 
     
     
     
    