﻿function explode(delimiter,item)
{
	tempArray=new Array(1);
	var Count=0;
	var tempString=new String(item);
	//
	while (tempString.indexOf(delimiter)>0)
	{
		tempArray[Count]=tempString.substr(0,tempString.indexOf(delimiter));
		tempString=tempString.substr(tempString.indexOf(delimiter)+1,tempString.length-tempString.indexOf(delimiter)+1);
		Count=Count+1
	}
	tempArray[Count]=tempString;
	return tempArray;
}

function change_class(id, classe)
{
	document.getElementById(id).className = classe;
}

function PopupCentrer(page,largeur,hauteur,options) {
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}