<!-- Ouverture POP-UP -->
function ouverture_fenetre_popup(url,nom_fenetre,width,height)
{
	var fenetre;
	var option = "toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height;
	var szFinalUrl

	szFinalUrl = url 
	
	var fenetre;
	fenetre=window.open(szFinalUrl,nom_fenetre,option);
	fenetre.focus();
}

function ouverture_fenetre(url,nom_fenetre,width,height)
{
	var fenetre;
	var option = "toolbar=yes,location=1,directories=1,status=1,menubar=1,scrollbars=yes,resizable=yes,width="+width+",height="+height;
	fenetre=window.open(url,nom_fenetre,option);
	fenetre.focus();
}
<!--  screenshots POP-UP -->
function screenshot(repertoire_image)
{
	var fenetre;
	var option = "toolbar=no,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width="+760+",height="+600;
	var url_page_referer = location.href;
	var serveur = self.location.href;
	var page_cfm = "/tools/screenshot_viewer/screenshot_viewer.cfm?capture=";

	url_page = url_page_referer.substring(0,url_page_referer.lastIndexOf("/")+1);
	url_page = page_cfm + url_page + repertoire_image;
	fenetre=window.open(url_page,"capture",option);
	fenetre.focus()
}
//-->
<!-- Verification d'une adresse email -->
function checkEmail(sEmail, sNameForm, sNameField, sAlertEmail, bLarge)
{

var bReturn = (((checkEmail.arguments.length) == 5)?(bLarge):(false));

	if (sEmail == false)
	{
		var oForm = eval("self.document."+sNameForm);
		var objField = eval("oForm."+sNameField);
		var szValue = objField.value;
	}
	else
	{
		szValue = sEmail;
	}
	if(szValue != "")
	{
		bReturn = true;
		var nArobase = 0;
		var nPoint = 0;
		var sValid = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-@.";
		var nLength = szValue.length , szChar;
		for(var i=0; i<nLength; i++)
		{
			szChar = szValue.charAt(i);
			if(szChar == "@")
			{
				nArobase++;
				if(nArobase > 1){break;}
			}
			if((szChar == ".")&&(nArobase > 0)){nPoint++;}
			if(sValid.indexOf(szChar) < 0)
			{
				bReturn = false;
				break;
			}
		}
		if((!(bReturn))||(nArobase != 1)||(nPoint <= 0))
		{
			bReturn = false;
			alert(sAlertEmail);
			if (sEmail == false)
			{
				objField.focus();
			}
		}
		else if((szValue.indexOf("@") == 0)||(szValue.lastIndexOf(".") == (szValue.indexOf("@") + 1))||((szValue.lastIndexOf(".") + 1) == szValue.length)||((szValue.lastIndexOf(".") + 2) >= szValue.length))
		{
			bReturn = false;
			alert(sAlertEmail);
			if (sEmail == false)
			{
				objField.focus();
			}
		}
	}
	else if(!(bReturn))
	{
		bReturn = false;
		alert(sAlertEmail);
		if (sEmail == false)
		{
			objField.focus();
		}
	}
	
	return bReturn;
}
//-->

<!-- Redirectiuon de la selectbox pays -->
function goTo()
{
var url_index = document.header.location.options.selectedIndex;
var url_value = document.header.location.options[url_index].value;
if (url_index>0)
	{
	top.location.href = url_value;
	}
}
//-->

function goToUrl(url_to_go)
{
var url_to_go = "/tools/asp/cookie/set_cookie.asp?url_selectbox=" + url_to_go;
top.location.href = url_to_go;
}

<!-- Redirectiuon vers la page qui cree le cookie via la popup-->
function goToPopUp(url)
{
var url_to_go = "/tools/asp/cookie/set_cookie.asp?url_popup=" + url;
opener.location.href = url_to_go;
self.close();
}
//-->

function popup(url,nom_fenetre,width,height)
{
	var fenetre;
	var option = "toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+width+",height="+height;
	var fenetre;
	fenetre=window.open(url,nom_fenetre,option);
	fenetre.focus();	
}


function search_robot()
{
var input_search = document.header.search.value;
if ( input_search != "")
	{
		self.location.href = '/tools/ASP/search/search.asp?search=' + input_search;
		return false;
	}
	else
	{	
		alert("Entrer un mot dans le champ recherche.");
		document.getElementById("search").focus();
		return false;
	}
}
<!--Redirection support-->
function goToSupport()
{
	//alert(document.how.link.value);
	top.location.href = document.how.link.value;
}
//-->

//--> View/Not View Blocks
function viewnoview(element) {
    var item = null;

    if (document.getElementById) {
      item = document.getElementById(element);
    } else if (document.all) {
      item = document.all[element];
    } else if (document.layers) {
      item = document.layers[element];
    }

    if (item) {
      if (item.style.display == 'none') {
        item.style.display = 'block';
      } else {
        item.style.display = 'none';
      }
    }
  }
 //--> 