	var theurl = '';
	var theprefix = '';
	var form = '';
	var uname = '';
	var pass = '';
	
	
		if (navigator.appName=='Netscape'){
			theurl = document.URL;
		} else {
			theurl = document.location.href;
		}
	
	
		if (theurl.indexOf('sl_adi')!=-1){
			theprefix = "adi";
			form = "login_form";
			uname = "username";
			pass = "password";
			
		}else if (theurl.indexOf('sl_ca')!=-1){
			theprefix = "ca";
			form = "login_form";
			uname = "username";
			pass = "password";

		
		}
		
	var theusername = (theprefix + 'username');
	var thepassword = (theprefix + 'password');
			
	if (readCookie(theprefix + 'username')){
		document.getElementById(uname).value=readCookie(theusername); 
		document.getElementById(pass).value=readCookie(thepassword); 
		document.getElementById('remember').checked='true';
		}

