/*Module de gestion des fenêtres - window.js
  Projet: CJE Argenteuil - Interface d'administration
  Auteur: Maxime Dumas
  Dernière modification: 8 juillet 2005 */

function popevent(idevent){
	fenetre = window.open("infocalendrier.php?event=" + idevent, "", "menubar=no, toolbar=no, resizable=no, scrollbars=no, height=567, width=420, top=60, left=75");
}

function popquote(data){
	// S'assurer que l'utilisateur a bien choisi quelque chose
	var ischecked = false;

	for (counter = 0; counter < data.pool_answer.length; counter++){
		if (data.pool_answer[counter].checked == true){
			ischecked = true;
		}
	}
		
	if (!ischecked){
		alert("Vous devez faire un choix");
		return false;
	}
		
	fenetre = window.open("","Sondage","width=335,height=300, top=150, left=150, scrolling=no,resizable=no,scrollbars=no");
}

function popup(page, width, height, tools){
	details = "width=" + width + ",height=" + height + ", top=150, left=150, ";
	
	if (!tools)
		details += "scrolling=no,resizable=no,scrollbars=no";
	
	fenetre =  window.open(page, "", details);
}
