/*
 *  revoir.js
 */

function open_profile(adr){
	var w = 685;
	var h = 800;
	if(w>screen.width){
		w = screen.width;
	}
	if(h>screen.height){
		h = screen.height-74;
	}
	window.open(adr, '', 'width='+w+',height='+h+',status=yes,resizable=yes,scrollbars=yes');
	return false;
}

function open_enquete(adr){
	var w = 685;
	var h = 800;
	if(w>screen.width){
		w = screen.width;
	}
	if(h>screen.height){
		h = screen.height-74;
	}
	window.open(adr, '', 'width='+w+',height='+h+',status=yes,resizable=yes,scrollbars=yes');
	return false;
}

function disp(obj,window_name,w,h){
	if(typeof(w)=='undefined'){
		w=685;
	}
	if(w>screen.width){
		w = screen.width;
	}
	
	if(typeof(h)=='undefined'){
		h=800;
	}
	
	if(h>screen.height){
		h = screen.height-74;
	}
	
	window.open(obj.href, window_name, "width="+w+",height="+h+",scrollbars=yes");
	
	return false;
}
