var passwd = '12345';
var epass  = '';
var passwd_page = '../pbc/pbc-015.html';

function passwdSet(offered, aWindow) {
    if (epass == passwd) {
	aWindow.document.location = 'pbc-020.html';
	return;
    }

    if (offered == passwd) {
	epass = passwd;
	aWindow.document.location = 'pbc-020.html'
    } else {
	aWindow.document.location = '../clients/cli-010.html'
    }
}

function passwd_chk(aWindow) {
    if (epass != passwd) {
	aWindow.document.location = passwd_page;
    }
}

function passwd_chk_first_page(aWindow) {
        if (epass != passwd) {
	aWindow.document.location = '../clients/cli-010.html';
    }
}
