setTimeout

Folks,

can you tell me how I can append a query string to a setTimeout?

So i have this:


 setTimeout("location.href = 'http://www.natural-environment.com';",1500);

and i want to do this:


var Email ="foo";
 setTimeout("location.href = 'http://www.natural-environment.com?Email=+Emai+';",1500);

Its a usual string, so add text to it as if you would add it to a string:

setTimeout("location.href = 'http://www.natural-environment.com/?Email=" + encodeURIComponent(Email) + "';",1500);

Thank you, that worked. I wasted so much time trying to get this to work.