//////////////////////////////////////////
// Handle Refreshing every 5 seconds
//////////////////////////////////////////
function get_cookie ( cookie_name )
{
	var results = document.cookie.match ( cookie_name + '=(.*?)(;|$)' );

	if ( results )
		return ( unescape ( results[1] ) );
	else
		return null;
}

function init( loginbox_clientId )
 {
	var uid = get_cookie( "UserID" );
	if (uid) {
	    usernameTbx = document.getElementById(loginbox_clientId + "_loginControlUsernameTbx")
	    usernameTbx.value = uid;
	}
	
	var pwd = get_cookie( "Password" );
	if (pwd) {
	    passwordTbx = document.getElementById(loginbox_clientId + "_loginControlPasswordTbx")
	    passwordTbx.value = pwd;
	}
	
}

