function autoBrowse()
{
- var next_link = document.getElementById('next_link').href;
- window.location.href = next_link;
- setTimeout("autoBrowse()", 5000);
+ if(document.getElementById('next_link')) {
+ var next_link = document.getElementById('next_link').href;
+ window.location.href = next_link;
+ setTimeout("autoBrowse()", 5000);
+ }
}
var startup = 1;