hi all

I have a javascript function in which i call the following
img.src = "http://us.i1.yimg.com/us.yimg.com/i/ww/bt1/125.gif";

Now i want to ensuer that if the image is not got in 30 seconds I must redirect to an error page .

Can anybody let me know how to write a javascript for this.