/* AUTHORS: LaVaughn Haynes * SECTION: Business Law * * JAVASCRIPT REDIRECT * Creates redirect language and 20 second timer * * HOW TO IMPLEMENT * redirect("RELATIVE REDIRECT URL"); * */ //COUNTER var counts=20; var start=new Date(); start=Date.parse(start)/1000; function CountDown(){ var now=new Date(); now=Date.parse(now)/1000; var x=parseInt(counts-(now-start),10); if(document.redform){document.redform.clock.value = x;} if(x>0){ timerID=setTimeout("CountDown()", 100) }else{ location.href = new_loc; } } //OUTPUT function redirect(r){ new_loc = r; document.write("

\n"); document.write("The page you\'re looking for has moved to
\n"); document.write("http://www.abanet.org"+new_loc+"<\/a>\n"); document.write("

\n"); document.write("If you are not redirected\n"); document.write(" inseconds,
\n"); document.write("
please click here<\/a>."); document.write("<\/h2><\/FORM>\n"); } //START TIMER window.setTimeout('CountDown()',100);