var  s  = document.location.href;   
  s   =   s.substr(s.lastIndexOf("/")+1);   
s=s.substr(0,s.lastIndexOf("."));
window.location.href=s+".asp";
