function getVar (nomVariable)
 {
  var infos = location.href.substring(location.href.indexOf("?")+1, location.href.length)+"&"
  if (infos.indexOf("#")!=-1)
  infos = infos.substring(0,infos.indexOf("#"))+"&"
  var variable=0
  {
   nomVariable = nomVariable + "="
   var taille = nomVariable.length
   if (infos.indexOf(nomVariable)!=-1)
   variable = infos.substring(infos.indexOf(nomVariable)+taille,infos.length).substring(0,infos.substring(infos.indexOf(nomVariable)+taille,infos.length).indexOf("&"))
  }
 return variable
 }

function ImportJS() {
	var nbr_att = arguments.length;
	var js_effets=document.createElement("script");
	js_effets.setAttribute("type", "text/javascript");
	js_effets.setAttribute("src", arguments[0]);
	if(nbr_att>1){
		for (var i = 1; i<nbr_att; i++){
			js_effets.setAttribute(arguments[i][0], arguments[i][1]);
		}
	}
	document.getElementsByTagName("head")[0].appendChild(js_effets);
}

var js2 = new ImportJS("./script/tiny_mce/tiny_mce.js");
var js4 = new ImportJS("./script/menuadmin.js");

var js1 = new ImportJS("./script/ajax.js");
var js3 = new ImportJS("./script/loadingpicture.js");




function myhour() {
 var nombre=new Array("00","01","02","03","04","05","06","07","08","09",
            "10","11","12","13","14","15","16","17","18","19",
            "20","21","22","23","24","25","26","27","28","29",
            "30","31","32","33","34","35","36","37","38","39",
            "40","41","42","43","44","45","46","47","48","49",
            "50","51","52","53","54","55","56","57","58","59",
            "60");
 var now = new Date();
 hour=now.getHours();
 min=now.getMinutes();
 document.getElementById('hour').value= nombre[hour]+'h'+nombre[min];
}
function mydate() {
 var nombre=new Array("00","01","02","03","04","05","06","07","08","09",
            "10","11","12","13","14","15","16","17","18","19",
            "20","21","22","23","24","25","26","27","28","29",
            "30","31");
 now = new Date();
 day=now.getDate();
 month=now.getMonth();
 year=now.getFullYear();
 month++;
 document.getElementById('date').value= nombre[day]+'/'+nombre[month]+'/'+year;
}



