function copyright() {
	searchWin = window.open('http://www.valtnet.com/diritto_autore','Copyright','scrollbars=yes,resizable=yes,width=330,height=500,status=no,location=no,toolbar=no');
}
function foto(str,w,h,didascalia,scrollbars) {
	w+=10;
	h+=10;
	if(typeof didascalia=="undefined" || didascalia=="") didascalia="";
	 else {
	 	didascalia=urlencode(didascalia);
		h=h+40;
	}
	if(typeof scrollbars=="undefined" || scrollbars=="") scrollbars="no";
	finestra = window.open('visualizza_foto.php?foto='+str+'&didascalia='+didascalia,Math.round(1000*Math.random()).toString(),'scrollbars='+scrollbars+',resizable=no,width='+w+',height='+h+',status=no,location=no,toolbar=no');
}
function urlencode(CODE){

var plaintext = CODE;

	var SAFECHARS = "0123456789" +					// Numeric
					"ABCDEFGHIJKLMNOPQRSTUVWXYZ" +	// Alphabetic
					"abcdefghijklmnopqrstuvwxyz" +
					"-_.!~*'()’‘";					
	var HEX = "0123456789ABCDEF";
	
	var encoded = "";
	for (var i = 0; i < plaintext.length; i++ ) {
		var ch = plaintext.charAt(i);
	    if (ch == " ") {
		    encoded += "+";				// x-www-urlencoded, rather than %20
		} else if (SAFECHARS.indexOf(ch) != -1) {
		    encoded += ch;
		} else {
		    var charCode = ch.charCodeAt(0);
			if (charCode > 255) {
			    encoded += "+";
			} else {
				encoded += "%";
				encoded += HEX.charAt((charCode >> 4) & 0xF);
				encoded += HEX.charAt(charCode & 0xF);
			}
		}
	} // for

	// VALORE CODIFICATO
	return encoded;
}
function inizio_applet() {
	document.write('<applet code="newsticker.class" name="Applet1" id="Applet1" width=810 height=29 id="Applet1" style="vertical-align: middle;" VIEWASTEXT="">');
}
function mostradiv(div) {
	if(document.getElementById(div).style.display=="none") document.getElementById(div).style.display="block";
 	 else document.getElementById(div).style.display="none";
}