<!-- Javascript -->








/**
 * Prints the page. 
 * TODO: should open a new window containing the page layout for the print
 */
function printPage(){
	window.print();
}

/* -------------------- Publications search advanced -------------------- */	
function showOrHidePublications(value)
{
	if(value == 'true') {
		showPublications();
	} else {
		hidePublications();
	}
}

function hidePublications()
{
	document.forms[1].showPublication.value='false'; 
	document.forms[1].searchPublication.value='false'; 
	document.forms[1].hasSearched.value='false';
	document.forms[1].submit(); return false;
}

function showPublications()
{
	document.forms[1].showPublication.value='true'; 
	document.forms[1].searchPublication.value='true'; 
	document.forms[1].hasSearched.value='false';
	document.forms[1].submit(); return false;
}

/* -------------------- Projects search advanced -------------------- */
function showOrHideProjects(value)
{
	if(value == 'true') {
		showProjects();
	} else {
		hideProjects();
	}
}

function hideProjects()
{
	document.forms[1].showProject.value='false'; 
	document.forms[1].searchProject.value='false'; 
	document.forms[1].hasSearched.value='false';
	document.forms[1].submit(); return false;
}

function showProjects()
{
	document.forms[1].showProject.value='true'; 
	document.forms[1].searchProject.value='true'; 
	document.forms[1].hasSearched.value='false';
	document.forms[1].submit(); return false;
}

/* -------------------- Persons search advanced -------------------- */
function showOrHidePersons(value)
{
	if(value == 'true') {
		showPersons();
	} else {
		hidePersons();
	}
}

function hidePersons()
{
	document.forms[1].showPerson.value='false'; 
	document.forms[1].searchPerson.value='false'; 
	document.forms[1].hasSearched.value='false';
	document.forms[1].submit(); return false;
}

function showPersons()
{
	document.forms[1].showPerson.value='true'; 
	document.forms[1].searchPerson.value='true'; 
	document.forms[1].hasSearched.value='false';
	document.forms[1].submit(); return false;
}

/* -------------------- Activities search advanced -------------------- */
function showOrHideActivities(value)
{
	if(value == 'true') {
		showActivities();
	} else {
		hideActivities();
	}
}

function hideActivities()
{
	document.forms[1].showActivity.value='false'; 
	document.forms[1].searchActivity.value='false'; 
	document.forms[1].hasSearched.value='false';
	document.forms[1].submit(); return false;
}

function showActivities()
{
	document.forms[1].showActivity.value='true'; 
	document.forms[1].searchActivity.value='true'; 
	document.forms[1].hasSearched.value='false';
	document.forms[1].submit(); return false;
}

/* -------------------- Clipping search advanced -------------------- */
function showOrHideClipping(value)
{
	if(value == 'true') {
		showClipping();
	} else {
		hideClipping();
	}
}

function hideClipping()
{
	document.forms[1].showClipping.value='false'; 
	document.forms[1].searchClipping.value='false'; 
	document.forms[1].hasSearched.value='false';
	document.forms[1].submit(); return false;
}

function showClipping()
{
	document.forms[1].showClipping.value='true'; 
	document.forms[1].searchClipping.value='true'; 
	document.forms[1].hasSearched.value='false';
	document.forms[1].submit(); return false;
}
