
var bookmarkurl = "http://www.comunicazioneitaliana.it";
var bookmarktitle = "Comunicazione Italiana";

function addbookmark() {
	if (document.all)
	window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

window.onerror=null;

if (document.images) {

	img00_off = new Image;
	img00_off.src = "dati/menu/00off.png";
	img00_on = new Image;
	img00_on.src = "dati/menu/00on.png";

	img01_off = new Image;
	img01_off.src = "dati/menu/01off.png";
	img01_on = new Image;
	img01_on.src = "dati/menu/01on.png";
	
	img02_off = new Image;
	img02_off.src = "dati/menu/02off.png";
	img02_on = new Image;
	img02_on.src = "dati/menu/02on.png";

	img03_off = new Image;
	img03_off.src = "dati/menu/03off.png";
	img03_on = new Image;
	img03_on.src = "dati/menu/03on.png";

	img04_off = new Image;
	img04_off.src = "dati/menu/04off.png";
	img04_on = new Image;
	img04_on.src = "dati/menu/04on.png";

	img05_off = new Image;
	img05_off.src = "dati/menu/05off.png";
	img05_on = new Image;
	img05_on.src = "dati/menu/05on.png";

}

function img_on(imgname){
	document[imgname].src = eval(imgname + "_on.src");
}

function img_off(imgname){ 
	document.images[imgname].src = eval(imgname + "_off.src"); 
} 

function openwin( targ,selObj,restore ){
	eval( targ+".location='"+selObj.options[selObj.selectedIndex].value+"'" );
	if( restore ) selObj.selectedIndex=0;
}

function newColorLabel( entry,areaID,maxLen ) { // use DOM only, no geezer browsers
	if( entry !='' & areaID !='' & maxLen > 0 ){
		for( x=0;x<maxLen; x++ ){
			document.getElementById( 'labelid'+x ).style.background = 'transparent';
		}
		document.getElementById( areaID ).style.background=entry;
	}
}