
function validarFormulario(f){
			
		if(validar(f))
			f.submit();
		else
			return false;
	}	
	
		function changeClass(obj,type){
	  if(type=='over'){
	    document.getElementById(obj.id).className = 'hmenu_onglet_over';
		}
		else{
		  document.getElementById(obj.id).className = 'hmenu_onglet';
		}
	}

	










var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") ||pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}











// Fonction qui include tous les fichiers JS externe stockés dans le dossier ' chemin ' et dans la langue ' idioma '

function include_all(chemin,idioma){

	var liste_include = ["validaciones.js",
					"lightbox.js",
					"aa_jquery-1.2.1.js",
					"jquery.colourPicker.js",
					"thickbox.js",
					"jquery.bgiframe.js",
					"jquery.dimensions.js",
					"jquery.jdMenu.js",
					"jquery.metadata.js",
					"jquery.tablesorter.js",
					"jquery.jPrintArea.js",
					"jquery.defaultvalue.js",
					"jquery.animated.innerfade.js",
					"AC_RunActiveContent.js",
					"validaciones-"+idioma+".js"];
	
	for (Val in liste_include){	
document.write(unescape("%3Cscript src='" + chemin + liste_include[Val] +"' type='text/javascript'%3E%3C/script%3E"));	
	}


}

function include(chemin,nom){
document.write(unescape("%3Cscript src='" + chemin + nom +"' type='text/javascript'%3E%3C/script%3E"));
}



