// JavaScript Document
function validateEse(){
	document.formEntreprise.submit();
}
function validateCand(){
	document.formCandidat.submit();
}


var openWin = '';
function centerwindow(theurl,wname,width,height,options) {
    x = (640 - width)/2, y = (480 - height)/2;

    if (screen) {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }
        if (screen.availWidth > 1800) { 
        x = ((screen.availWidth/2) - width)/2; 
    } 

	theurl = theurl + location.search ;

	if (options != ""){
		options = "," + options ;
	}


		openWin = window.open(theurl, wname, 'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x + options); 
		if (!openWin.opener){
		 	openWin.opener = self;
		}

		if(window.focus){
			openWin.focus();
			return false;
		}
	
}
