// JavaScript Document
function SwitchDiv(ParamDiv){
	EtatDisplay = document.getElementById(ParamDiv).style.display;
	if(EtatDisplay=="none" || EtatDisplay==null || EtatDisplay==""){
		document.getElementById(ParamDiv).style.display = "block";
	}else{
		document.getElementById(ParamDiv).style.display = "none";
	}
}

//affiche 
function chg_etat(ParamDiv){
	ValueSelect = document.getElementById(ParamDiv).value;
	if(ValueSelect==3){
		document.getElementById("divtemps").style.display = "block";
	}else{
		document.getElementById("divtemps").style.display = "none";
	}
	
}

function popUp(strURL,strType,strHeight,strWidth) {
	var strOptions="";
	if (strType=="console")
		strOptions="scrollbars,resizable,height="+strHeight+",width="+strWidth;
	if (strType=="fixed")
		strOptions="status,height="+strHeight+",width="+strWidth;
	if (strType=="elastic")
		strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth+",left=0,top=0";
	window.open(strURL, '', strOptions);
}
function twAller(_url,_cadre,_target) {
if(_url=="nosite"){
alert("Indisponible");
return false;
}
if (_cadre) {
parent._cadre.location.href = _url;
} else if (_target) {
_target = window.open(_url,_target);
} else {
window.location.href = _url;
}
}