function popupBig(url, win){
	window.open(url, win, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=850,height=600');
	return false;
}

function popupLittle(url, win){
	window.open(url, win, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=850,height=600');
	return false;
}

	
function windowCenter() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
 

  var winl = (screen.width-myWidth)/2;
  var wint = (screen.height-myHeight)/2;
  
  window.moveTo(winl, wint);
}

//Code fournit par one referencement
//Debut EVEREF code version 3.5. Ne pas modifier ce code. http://www.everef.com 
function evfdisplayscript()
{
	var evfVersion = '3.5';
	var evfSiteID = 5169;
	var evfURL = escape(document.URL.substring(0,511));
	var evfReferrer = escape(document.referrer.substring(0,511));
	var evfIDPlus = escape(Math.random());
	var evfImage = new Image();
	evfImage.src = "http://go.atraxio.com/everef3/tr.asp?evfVersion=" + evfVersion + "&evfSiteID=" + evfSiteID + "&evfURL=" + evfURL + "&evfReferrer=" + evfReferrer + "&idplus=" + evfIDPlus;
}
//void evfdisplayscript();

function Reverse(){
	var tags = document.getElementsByTagName("input");
	for (i=0; i < tags.length; i++)
	{
		if (tags[i].name.indexOf("chx") != -1)
		{
			tags[i].checked = !tags[i].checked;
		}
	}
}

function SelectAll(){
	var tags = document.getElementsByTagName("input");
	for (i=0; i < tags.length; i++)
	{
		if (tags[i].name.indexOf("chx") != -1)
		{
			tags[i].checked = true;
		}
	}
}

function UnSelectAll(){
	var tags = document.getElementsByTagName("input");
	for (i=0; i < tags.length; i++)
	{
		if (tags[i].name.indexOf("chx") != -1)
		{
			tags[i].checked = false;
		}
	}
}

