	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_adr')!=-1){
			theprefix = "adr";
			form = "login";
			uname = "namefield";
			pass = "passfield";

		}else if (theurl.indexOf('sl_atp')!=-1){
			theprefix = "atp";
			form = "sub_login_frm";
			uname = "U";
			pass = "P";

		}else if (theurl.indexOf('sl_gww')!=-1){
			theprefix = "gww";
			form = "sub_login_frm";
			uname = "p_logon";
			pass = "p_password";

		}else if (theurl.indexOf('sl_hso')!=-1){
			theprefix = "hso";
			form = "sub_login_frm";
			uname = "p_logon";
			pass = "p_password";

		}else if (theurl.indexOf('sl_lmd')!=-1){
			theprefix = "lmd";
			form = "frmConnexion";
			uname = "User";
			pass = "Pwd";

		}else if (theurl.indexOf('sl_mki')!=-1){
			theprefix = "mki";
			form = "login_form";
			uname = "username";
			pass = "password";

		}else if (theurl.indexOf('sl_mvw')!=-1){
			theprefix = "mvw";
			form = "sub_login_frm";
			uname = "p_logon";
			pass = "p_password";

		}else if (theurl.indexOf('sl_nvw')!=-1){
			theprefix = "nvw";
			form = "sub_login_frm";
			uname = "p_logon";
			pass = "p_password";
		}else if (theurl.indexOf('sl_jpbz')!=-1){
			theprefix = "jpbz";
			form = "sub_login_frm";
			uname = "p_logon";
			pass = "p_password";

		}else if (theurl.indexOf('sl_vc')!=-1){
			theprefix = "vc";
			form = "login_form";
			uname = "username";
			pass = "password";

		}else if (theurl.indexOf('sl_scs')!=-1){
			theprefix = "scs";
			form = "login_form";
			uname = "username";
			pass = "password";

		}else if (theurl.indexOf('sl_sur')!=-1){
			theprefix = "sur";
			form = "login_form";
			uname = "user";
			pass = "pword";
			
		}else if (theurl.indexOf('sl_wrf')!=-1){
			theprefix = "wrf";
			form = "NFuseForm";
			uname = "user";
			pass = "password";
		}else if (theurl.indexOf('ari')!=-1){
			theprefix = "ari";
			form = "login";
			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';
		}
