window.onload = function() {
    var links = document.getElementsByTagName('a');
    for (var i=0;i < links.length;i++) {
        if (links[i].className == 'nw') {
            links[i].onclick = function() {
                window.open(this.href);
                return false;
            };
        }
    }
};

function makelink( name, domain, desc, pre, post ) {
    if ( pre != null && pre != "" )
        document.write( pre );
    
    document.write( '<a href="mailto:' );
    document.write( name + '&#64;' );
    document.write( domain + '">' );
    
    if ( desc != null && desc != "" )
        document.write( desc )
    else
        document.write( name + '&#64;' + domain );
    
    document.write( '</a>' );
    
    if ( post != null && post != "" )
        document.write( post );
}

function Popup(apri,altezza) {
	var stile = "top=10, left=10, width=515, height="+altezza+", status=no, menubar=no, toolbar=no scrollbar=no";
	window.open(apri, "", stile);
}

function showhidd( idblk ) {
	if (document.getElementById(idblk).style.display=='block') {
		document.getElementById(idblk).style.display='none';
	} else {
		document.getElementById(idblk).style.display='block';
	}
}