function show(obj)
{
	document.getElementById(obj).style.display= 'block';
}
function hide(obj)
{
	document.getElementById(obj).style.display= 'none';
}

function halfHide(obj)
{
	document.getElementById(obj).style.visibility= 'hidden';
}
function halfShow(obj)
{
	document.getElementById(obj).style.visibility= 'visible';
}

function assign(field, val)
{
	
	document.getElementById(field).value= val;
}
	
function closePopup()
{
	var app= document.getElementById('app');
	
	app.removeChild(document.getElementById('blackout'));
	app.removeChild(document.getElementById('popupContainer'));
	halfShow('flContainer');
	/*app.removeChild(document.getElementById('popup'));
	app.removeChild(document.getElementById('popupClose'));*/
	
}
function popup(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); 
} 