function toggleDIV(divId) {
	if(document.getElementById(divId).style.display == 'none') {
		document.getElementById(divId).style.display = 'block';
	}
	else {
		document.getElementById(divId).style.display = 'none';	
	}
}

function LoginNeeded(anchorId) {
	var coordinates = new Object();
	coordinates = getAnchorPosition(anchorId);
	document.getElementById('div_LoginNeeded').style.left=coordinates.x+'px';
	document.getElementById('div_LoginNeeded').style.top=coordinates.y-95+'px';
	document.getElementById('div_LoginNeeded').style.visibility='visible';
	var t=setTimeout("document.getElementById('div_LoginNeeded').style.visibility='hidden';",5000);
}


function isNumberKey(evt) {
	var charCode = (evt.which) ? evt.which : event.keyCode
	if (charCode > 31 && (charCode < 48 || charCode > 57))
	return false;
	
	return true;
}

var letters=' ABCÇDEFGHIJKLMNÑOPQRSTUVWXYZabcçdefghijklmnñopqrstuvwxyzàáÀÁéèÈÉíìÍÌïÏóòÓÒúùÚÙüÜ'
var numbers='1234567890'
var signs=',.:;@-\''
var mathsigns='+-=()*/'
var custom='<>#$%&?¿'

function isKey(evt, allow) {
	var k;
	k=document.all?parseInt(evt.keyCode): parseInt(evt.which);
	return (allow.indexOf(String.fromCharCode(k))!=-1);
}