	function apriWindow(id)
	{
		if(document.getElementById(id).style.visibility=='visible')
			document.getElementById(id).style.visibility = 'hidden';
		else
			document.getElementById(id).style.visibility = 'visible';
	}
	
	function apriWindowAll(id)
	{
		if((document.getElementById(id).style.visibility=='visible') || (document.getElementById(id).style.visibility==''))
		{
			document.getElementById(id).style.visibility = 'hidden';
			document.getElementById(id).style.position = 'absolute';
			document.getElementById(id).style.display = 'none';
		}
		else
		{
			document.getElementById(id).style.visibility = 'visible';
			document.getElementById(id).style.position = 'relative';
			document.getElementById(id).style.display = 'block';
		}
	}
	
	function MouseOver(id)
	{
		document.getElementById(id).style.background='#33CCFF';
		document.getElementById(id).style.cursor = 'pointer';
	}
	
	function MouseOut(id)
	{
		document.getElementById(id).style.background='';
	}

	function preferiti()
	{
	    var title = document.title;
	    var url = document.location.href;
	    if (window.sidebar) // Mozilla Firefox
	    {
	        window.sidebar.addPanel(title, url, "");
	    }
	    else if (window.external) // Internet Explorer
	    {
	        window.external.AddFavorite(url, title);
	    }
	    else if (window.opera && window.print) // Opera
	    {
	        var elem = document.createElement('a');
	        elem.setAttribute('href', url);
	        elem.setAttribute('title', title);
	        elem.setAttribute('rel', 'sidebar');
	        elem.click();
	    }
	}
        
	function IsEmail(string)
	{
		if (string.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) != -1)
			return (true);
		else
			return (false);
	}
