<!--
function goTo(url) {
    document.location=url;
}

function swithToEditMode(){
     var theUrl = window.location.href;

     var pos = theUrl.indexOf("/op/edit");
     if (pos == -1) {
        pos = theUrl.indexOf("/op/");
        if ( pos == -1 ){
            pos = theUrl.indexOf("/pid/");
            if ( pos != -1 ){
                theUrl = theUrl.substring( 0, pos ) + "/op/edit" + theUrl.substring( pos );
            }
         } else {
            theUrl = theUrl.substring( 0, pos ) + "/op/edit/oldop/" + theUrl.substring( pos + 4 );
         }
         //alert(theUrl);
         window.location.href = theUrl;
    }
}

function resizeme(i) {
  if (i.width > 500) i.width=500;
}

function checkMaxPageItems(theForm){
	if ( document.searchpager && document.searchpager.maxPageItems
		&& document.searchpager.maxPageItems.selectedIndex != -1 ){
		theForm.maxPageItems.value = document.searchpager.maxPageItems.options[document.searchpager.maxPageItems.selectedIndex].value;
	}
}

function setFreeSearchInput(theForm){
	theForm.freeSearch.value=theForm.search.value;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v3.0
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openPopup(theURL) {
	window.open(theURL, 'Chronopost', 'height=520, width=585, top=100, left=100, toolbar=yes, menubar=yes, location=no, resizable=yes, scrollbars=yes, status=no');
}

function openPopupLoc(theURL) {
	window.open(theURL, 'Chronopost', 'height=520, width=585, top=100, left=100, toolbar=yes, menubar=yes, location=no, resizable=yes, scrollbars=yes, status=no');	
}

function openPopupPod(theURL) {
	window.open(theURL, 'Chronopost', 'height=220, width=350, top=100, left=100, toolbar=no, menubar=no, location=no, resizable=no, scrollbars=no, status=no');
}

function ControlForm_Pt_retrait(form)
{
  // Localit&eacute; obligatoire pour les adresses
  if (form.cityTxt.value == "") {
    alert("Le champ Localit&eacute; doit &ecirc;tre renseign&eacute;.");
    return (false);
  }
  // Le departement n'est pas un chiffre
  if ((form.dept.value != "") && (form.dept.value.search(/^\d[abAB0-9]?$/) < 0)) {
    alert("D&eacute;partement incorrect : saisissez des chiffres.");
    return (false);
  }
  // Le num&eacute;ro n'est pas un chiffre
  if ((form.streetNum.value != "") && (form.streetNum.value.search(/^\d+$/) < 0)) {
    alert("Num&eacute;ro incorrect : saisissez des chiffres.");
    return (false);
  }
  if (form.dept.value.length == 1 ) {
    // Ajouter un z&eacute;ro devant
    form.dept.value = "0" + form.dept.value;
  }
  Url ="http://fc1.1bis.com/chronopost/geocode.asp?module=CHRON&info=0"
  Url = Url + "&cityTxt=" + escape(form.cityTxt.value )
  Url = Url + "&streetTxt=" + escape(form.streetTxt.value )
  Url = Url + "&streetNum=" + escape(form.streetNum.value )
  Url = Url + "&dept=" + escape(form.dept.value )
  window.open(Url,'Chronopost','width=520,height=650,toolbar=0,directories=0,menubar=0,scrollbars=1,status=0,resizable=1');
  return (false);
}

function objectFlash(theFile, largeur, hauteur, flashvars ) 
{
    document.write('<object type=\"application/x-shockwave-flash\" data=\"' + theFile + '\" width=\"' + largeur + '\" height=\"' + hauteur + '\">' +
    ' <param name=\"FlashVars\" value=\"' + flashvars + '\" />' +
    ' <param name=\"movie\" value=\"' + theFile + '\" />' + 
    ' </object>');
}

//Initialisation du paramètre Xiti
xtpage = "";

//-->