var JSPage = Class.create();

JSPage.prototype = {
	initialize : function() {
		Object.extend(window, this);
		Event.observe("laberint", "change", window.selLaberint);
	},
	
	selLaberint : function(evt){
		llamada = 'startMaze(maze' + $F("laberint") + ", 'u');";
		eval(llamada);
	}
}

Event.observe(window,"load",function(){
	jsPage = new JSPage();
});
