

function popUp(URL, wi, he) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + wi + ",height="+ he + ",left = 326,top = 182');");
}

function popUp2(URL, wi, he) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + wi + ",height="+ he + ",left = 326,top = 182');");	
}


function popUp3(URL, wi, he) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + wi + ",height="+ he + ",left = 326,top = 182');");	
}

function popUpFull(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + screen.width + ",height=" + screen.height + "');");
}


function Fermer() { 
	window.close(); 
} 

function agrandir(){
	window.moveTo(0, 0); 
	window.resizeTo(screen.width,screen.height);
} 

function resizeWindows(wi, he){
	window.resizeTo(wi, he);
}

function checkrequired(which){
	var pass=true
	if (document.images){
		for (i=0;i<which.length;i++){
			var tempobj=which.elements[i]
			if (tempobj.name.substring(0,8)=="required"){
				if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)){
				pass=false
				break
				}
			}
		}
	}
	if (!pass){
		alert("Les champs Nom, Prénom et Courriel sont obligatoires, merci de bien vouloir les renseigner")
		return false
	}
	else
	return true
}
