/* Funcions javascript per a enviament del missatge a un amic */
var theUrl;

function init() {
	theUrl = location.href;
}

function envia(titol, autor) {
	window.open('http://www.uoc.es/web/cat/articles/formulari/formulari.html?Titol='+titol+'&Autor='+autor+'&url='+theUrl+'','Formulari','width=540,height=450,location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no');
}

function debat() {
	window.open('debat.html','Debat','width=400,height=300,location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no');
}

function curriculum(url_cv) {
	window.open(url_cv,'Curriculum','width=500,height=400,location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no');
}

function theAbstract(url_abs) {
	window.open(url_abs,'Abstract','width=500,height=400,location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no');
}

function Note2See(evnt, strId) {
	if (document.all) {
		eval(strId).style.visibility = "visible";	
		eval(strId).style.top = evnt.y + document.body.scrollTop - 15;
	} else {
		document.layers[eval('\''+strId+'\'')].visibility = "visible";	
		document.layers[eval('\''+strId+'\'')].top = evnt.pageY - 15;	
	}
}

function Note2Hide(strId) {
	if (document.all) {
		eval(strId).style.visibility = "hidden";	
	} else {
		document.layers[eval('\''+strId+'\'')].visibility = "hidden";
	}
}
