function CVVPopUpWindow(url) {
	window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=600,height=233,screenX=150,screenY=150,top=150,left=150')
}

function popupImage(url, imageHeight, imageWidth) {
	var newImageHeight = (parseInt(imageHeight) + 40);
	var yPos = ((screen.height / 2) - (parseInt(newImageHeight) / 2));
	var xPos = ((screen.width / 2) - (parseInt(imageWidth) / 2));

	imageWindow = window.open(url,'popupImages','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=' + imageWidth + ',height=' + newImageHeight + ',screenY=' + yPos + ',screenX=' + xPos + ',top=' + yPos + ',left=' + xPos);

	imageWindow.moveTo(xPos, yPos);
	imageWindow.resizeTo(parseInt(imageWidth), parseInt(newImageHeight));

	if (window.focus) {
		imageWindow.focus();
	}
}

function MagicSwitch(a) {
	var i=0;
	while (document.getElementById('tab'+i))
	{
		cacheId('tab'+i);
		document.getElementById('titreTab'+i).className='titre_tab_0';
		i=i+1;
	}
	afficheId('tab'+a);
	d = document.getElementById('titreTab'+a);
	if(d) d.className='titre_tab_1';
	
}
	function afficheId(baliseId) 
  {
  if (document.getElementById && document.getElementById(baliseId) != null) 
    {
    document.getElementById(baliseId).style.visibility='visible';
    document.getElementById(baliseId).style.display='block';
    }
  }

function cacheId(baliseId) 
  {
  if (document.getElementById && document.getElementById(baliseId) != null) 
    {
    document.getElementById(baliseId).style.visibility='hidden';
    document.getElementById(baliseId).style.display='none';
    }
  }

function isNotValid(string, allowed) {
    for (var i=0; i< string.length; i++) {
       if (allowed.indexOf(string.charAt(i)) == -1)

          return true;
    }
    return false;
}
function isValid(string, allowed) {
    var temp=0;
    for (var i=0; i< string.length; i++) {
       if (allowed.indexOf(string.charAt(i)) >=0)
       		temp=temp+1
    }
     if (allowed.length<=temp) {
    	return false 
    	}
    	else 
    	{
    	return true
    }

}
function isCodePostalNotValid(string) {
	return true;
}