
var pe = new PeriodicalExecuter(x_act, 1);

	function x_act(){
		if(valid!=null){
			pe.stop();
			valid.activate();
		}
	}
