/*function valider(frm){
	if ((frm.elements['arret'].value != "") && (frm.elements['ligne'].value != "") && (frm.elements['sens'].value != ""))  {
			return true;
	}
	else {
		alert('Veuillez Remplir tous les champs !')
	return false;
	}
}
*/

window.addEvent('domready', function() {

	//******* MENU DYNAMIQUE *******
	//******************************
	
	var myMenu = new MenuMatic();

		//******* LINKSELECT *******
		//**************************
		
		/*Element.implement({
			show: function() {
				this.setStyle('display','');
			},
			hide: function() {
				this.setStyle('display','none');
			}
		});
										 
		var l = new cvLinkSelect({
			select_class: '.linked', //the class for the linked select boxes
			url: 'scripts_ajax/ajax_linkselect.php',
			multiple_var: true, //use multiple get variables or only one
			loadClass: 'loading', //the css class that is added when a request is made
			isLast: function(){
				$('frm').submit();
				//alert('Last dynamic selectbox!');
			},
			hasnoSub: function(){
				//alert('This option has no depending options. Lets hide the next elements!');
				$('frm').submit();
				l.select.each(function(s){
					if(l.select.indexOf(s) >= l.select.indexOf(l.current)){ //if the select depends on the parent
						s.hide();
					}
					
				});
			},
			hasSub: function(){
				l.select.each(function(s){
					if(l.select.indexOf(s) >= l.select.indexOf(l.current)){ //if the select depends on the parent
						s.show();
					}
					
				});
			}
		});*/
	
});
