var ns4 = (document.layers);var ie4 = (document.all && !document.getElementById);var ie5 = (document.all && document.getElementById);var ns6 = (!document.all && document.getElementById);var visible = new Array();function show_or_hide(id) {	(visible[id]) ? hide_element(id) : show_element(id);}function rediriger(url_comp) {	window.location.replace(url_comp);}function show_help(id_b, id) {	id_b.style.cursor = 'help';	document.getElementById(id).style.left = findPosX(id_b) + 30;	document.getElementById(id).style.top = findPosY(id_b) + 1;	show_or_hide(id);}function show_element(id) {	if (ns4) {		document.layers[id].visibility = "show";		document.layers[id].display = "block";	} else if (ie4) {		document.all[id].style.visibility = "visible";		document.all[id].style.display = "block";	} else if (ie5 || ns6) {		document.getElementById(id).style.visibility = "visible";		document.getElementById(id).style.display = "block";	}	visible[id] = true;}function hide_element(id) {	if (ns4) {		document.layers[id].visibility = "hide";		document.layers[id].display = "none";	} else if (ie4) {		document.all[id].style.visibility = "hidden";		document.all[id].style.display = "none";	} else if (ie5 || ns6) {		document.getElementById(id).style.visibility = "hidden";		document.getElementById(id).style.display = "none";	}	visible[id] = false;}function findPosX(obj) {	var curleft = 0;	if (obj.offsetParent)		while (1) {			curleft += obj.offsetLeft;			if (!obj.offsetParent)				break;			obj = obj.offsetParent;		}	else if (obj.x)		curleft += obj.x;	return curleft;}function findPosY(obj) {	var curtop = 0;	if (obj.offsetParent)		while (1) {			curtop += obj.offsetTop;			if (!obj.offsetParent)				break;			obj = obj.offsetParent;		}	else if (obj.y)		curtop += obj.y;	return curtop;}function getInf(choix, plus) {	if (document.getElementById("info_abo_" + choix).style.display == "block") {		document.getElementById("info_abo_" + choix).style.display = "none";		document.getElementById("lk_" + choix).innerHTML = plus;	} else {		document.getElementById("info_abo_" + choix).style.display = "block";		document.getElementById("lk_" + choix).innerHTML = "[X]";	}}function get_typeAbo_value(step, langue, urlPart, site, revendeur) {	if (langue == 1 && revendeur != 1) {		for ( var i = 0; i < document.form_modReg.typeAbo.length; i++) {			if (document.form_modReg.typeAbo[i].checked) {				var rad_val = document.form_modReg.typeAbo[i].value;			}		}	} else {		var rad_val = 1;	}	go_next(rad_val, step, urlPart, site);}function get_durAbo_value(step, typeAbo, urlPart, site) {	if (typeAbo == 1) {		for ( var i = 0; i < document.form_modReg.durAbo.length; i++) {			if (document.form_modReg.durAbo[i].checked) {				var rad_val = document.form_modReg.durAbo[i].value;			}		}	} else {		var rad_val = 12;	}	go_next(rad_val, step, urlPart, site);}function go_next(valeur, etape, urlPart, site) {	window.location.replace(urlPart + '?action=souscription&step=' + etape			+ '&formVal=' + valeur + '&chxst=' + site)}function get_cond_gen(langue, microSite, urlPart) {	window.open(	urlPart + "medias/scripts/cond_general.php?lg=" + langue + "&ms=" + microSite, "infoCompar","top=10, left=10, menubar=no, status=yes,scrollbars=yes,directories=no,location=no,resizable=yes, width=600,height=500");	}function goSite(urlPart) {	var data = document.forms.form_choix_site.nomSite.value;	var reg = new RegExp(';-;-;', 'g');	var tab = data.split(reg);	window.location.replace(urlPart + '?action=affichageStats&adresse='			+ tab[0] + '&nomSite=' + tab[1]);}function goCompte(urlPart) {	var data = document.forms.form_choix_compte.numCpt.value;	window.location.replace(urlPart + '?action=affichageStats&numCpt=' + data);}function goSite2(urlPart) {	var data = document.forms.form_choix_site.nomSite.value;	window.location.replace(urlPart + '?action=paramAlert&chx='	+ data);}function toogleElChx(container) {	var vue = document.getElementById(container).style.display;	if (vue == "block") {		document.getElementById(container).style.display = "none";		document.getElementById(container).style.visibility = "hidden";	} else {		document.getElementById(container).style.display = "block";		document.getElementById(container).style.visibility = "visible";	}}function getLkToDelSte(chxste, urlSite, urlPart, suppr, chxCpt) {	var leLink;	leLink = '<span style="color:red;">' + urlSite + ' : </span> ';	leLink += '<a href="'			+ urlPart			+ '&supprNum='			+ chxste			+ '&supprCpt='			+ chxCpt			+ '" class="bt_connection" style="padding:1px;text-decoration:none;font-size:10px;">'			+ suppr + '</a>';	document.getElementById("choixSiteToDel").innerHTML = leLink;} 	 	    
