pos = location.href.indexOf(location.host);
reff = location.href.substring(0, pos+location.host.length);
document.write('<A href="'+reff+'/login/login.aspx?prelogin=');
document.write(document.location);
document.write('"><IMG alt="login" src="/Templates/Intranet08/Resources/login.gif" width="200" height="18" border="0"></A>');


