function openPrint(action) {

	var popW = 800;
	var popH = 700;

	var winLeft = (screen.width - popW) / 2;
	var winTop = (screen.height - popH) / 2;
	
	var winProp = 'width='+popW+',height='+popH+',left='+winLeft+',top='+winTop+',status=no,toolbar=no,menubar=no,resizable=no,scrollbars=yes';
	popup = window.open(action, 'ITProfil', winProp);
	
	if (popup.window.focus) {
		popup.window.focus();
	}
}


function resizePrint()
{
	//window.resizeTo(800, 800) ; 
}

function displayHelp()
{
	document.getElementById('espace').style.display = 'none' ;
	document.getElementById('help').style.display = 'none' ; 
	
	if(getURLParameter('save') == 'true')
	{
		document.getElementById('espace').style.display = 'inline' ;
		document.getElementById('help').style.display = 'block' ; 
	}
}


function getURLParameter( name )
{
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}


