Javascript Redirect with SetTimout Not Working
===

Can't seem to get this javascript redirect to work?
Suggestions?

Should I maybe do it with a meta refresh and how?


	// If we have a successful location update
	function onGeoSuccess(event)
	{
		document.getElementById("Latitude").value =  event.coords.latitude; 
		document.getElementById("Longitude").value = event.coords.longitude;
		document.getElementById("location").href = "track.cfm?track=s&Lat=" + event.coords.latitude + "&Long=" + event.coords.longitude;

	var redirectUrl = "track.cfm?track=s&Lat=" + event.coords.latitude + "&Long=" + event.coords.longitude; 

	}
 
	// If something has gone wrong with the geolocation request
	function onGeoError(event)
	{
		alert("Error code " + event.code + ". " + event.message);
	}
	
	function redirect() 
         { 
        window.location = redirectUrl; 
         } 
        setTimeout(redirect,15000); 