var CurrentMsg = 'HTML.it ';                    
function update(msg) {                           
	var pad_str="";                           
	n = msg.length;                           
	if(n<72) {                                   
		pad = (73-n)/2;                                   
		for(var i=0; i<pad; i++) {                                           
			pad_str+=" ";                        
		}                        
	}                          
	CurrentMsg = pad_str + msg;                           
	document.messages.field.value = CurrentMsg;
                clearTimeout(timer);                           
	timer = setTimeout("idleMsg()",6000);        
}                           

function MakeArray(n) {                           
	this.length=n;                           
	for(var i = 1; i<= n; i++) {                                   
		this[i] = "";                
	}                           
	return(this);        
	}               
	var index = 1;           
	var notice_num = 6;                   
	var notices = new MakeArray(notice_num);        
	notices[1] = " * * Pubblicata tesi di Alessandro Allinghi National Tsing Hua University  * *";
	notices[2] = " *  Tesi basata sullo studio della nostra Scuola Kung fu Prato *";
	notices[3] = " * * * * * * * * * NUOVI ARTICOLI SUL SITO:     ";
	notices[4] = "     - Bing Qi - Le antiche armi tradizionali Cinesi  -     ";
	notices[5] = "- Insegnare con efficacia, imparare divertendosi di Max Petrei -";        
	notices[6] = "- Difesa Personale, come e quanto possono servire le Arti Marziali -";
	
	
	 
	var timer = setTimeout('idleMsg()',4000);                   

function nochange() {                           
	document.messages.field.value = CurrentMsg;        
}                   

function idleMsg() {                           
	update(notices[index++]);                           
	if(index>notice_num) { 
		index=1; 
	}  
}