function rate_update(I,R){
	D = $(I + '_rate');
	V = $(I + '_v');
	if(!D ||!V){
		return false;
	}
	V.value = R;
	D.style.width = (R*10) + '%';
}
function form_pass_gen(f,length,copy_field){
	if(!length){
		length = 8;
	}
	var pwchars = "abcdefhjmnpqrstuvwxyz23456789ABCDEFGHJKLMNPQRSTUVWYXZ";
	var note = $(f + '_en');
	f = $(f);
	note.innerHTML = '';
	f.value = '';
	for ( i = 0; i < length; i++ ) {
		f.value += pwchars.charAt( Math.floor( Math.random() * pwchars.length ) )
	}
	note.innerHTML = f.value; 
	if($(copy_field)){
		var c = $(copy_field);
		c.value = f.value;
	}
	return true;
}
