  var iTimer, iTimer2, iTimer3;
		var h=0, i=0, f=0;
		var type, type2, type3;
		var e='end', e2='end', e3='end';
		
		
		timer=setInterval("_initDateTime()", 1000);
		
		function _initDateTime() {
					if (document.getElementById('showDateTime')) { tempo=setInterval("_showDateTime()", 60000); window.clearInterval(timer); }
		}
		
		function _slide(type) {
		if (e=='') window.clearInterval(iTimer);
		 tmp = type;
			iTimer=setInterval("_effect(tmp)",5);
		}
		function _effect(t) {
			if (t=='on') {
							// La tendina si apre
							h=h+10
							if (h<70 && h>-1) {
											document.getElementById('table').style.height=h;
											document.getElementById('text').style.display='none';
											document.getElementById('count').value=h
											e='';
							} else {
											if (h==70) document.getElementById('text').style.display='block';
											window.clearInterval(iTimer);
											e = 'end';
							}
			} else {
							// La tendina si chiude
							h=h-10
							if (h>-10 && h<70) {
											document.getElementById('table').style.height=h;
											document.getElementById('text').style.display='none';
											document.getElementById('count').value=h
											e='';
							} else {
											window.clearInterval(iTimer);
											e = 'end';
							}
			}
		}

		function _border() {
			if (window.screen.Availheight=='600') {
							document.body.leftMargin='0px'; 	
			}
		}
		
		function _open_menu(n,t,l) {
			tmp=document.getElementById(''+n)
			tmp.style.display='block';
			tmp.style.top=t;
			tmp.style.left=l;
		}
		
 function _validation(ln) {
		if (document.getElementById('tmp_user').value=='') {
			if (ln=='en') { alert('The Field USER ID is request.') } else { alert('Il campo USER ID è obligatorio.') }
			document.login.tmp_user.focus();
		return (false);
		}
		
		if (document.getElementById('tmp_pass').value=='') {
		 if (ln=='en') { alert('The field PASSWORD is request.') } else { alert('Il campo PASSWORD è obbligatorio.') }
			document.login.tmp_pass.focus();
		return (false);
		}
		login.submit();
	}
	
		function _showDateTime_old() {
	  tempo=setInterval("_datetime()", 1000);
		}
		
		function _showDateTime() {

			var oggi = new Date();	
			ore=oggi.getHours();
			minuti=oggi.getMinutes();
			secondi=oggi.getSeconds();
			o=''+ore
			m=''+minuti
			s=''+secondi
			if (o.length==1) ore='0'+ore
			if (m.length==1) minuti='0'+minuti
			if (s.length==1) secondi='0'+secondi
			
			var month = oggi.getMonth();
			if (month=='0') xmonth='01'
			if (month=='1') xmonth='02'
			if (month=='2') xmonth='03'
			if (month=='3') xmonth='04'
			if (month=='4') xmonth='05'
			if (month=='5') xmonth='06'
			if (month=='6') xmonth='07'
			if (month=='7') xmonth='08'
			if (month=='8') xmonth='08'
			if (month=='9') xmonth='10'
			if (month=='10') xmonth='11'
			if (month=='11') xmonth='12'
			
			var day = oggi.getDay();
			if (day=='1') { xday='Monday'}
			if (day=='2') { xday='Tuesday'}
			if (day=='3') { xday='Wednesday'}
			if (day=='4') { xday='Thursday'}
			if (day=='5') { xday='Friday'}
			if (day=='6') { xday='Saturday'}
			if (day=='7') { xday='Sunday' }
			
			date=oggi.getDate()
			year=''+oggi.getYear()
			oggiGMT='<b>'+ xday +' '+date+'.'+xmonth+'.'+ year.substring(2,4) +' - '+ore+':'+minuti +'</b>'

  	if (document.getElementById('showDateTime')) document.getElementById('showDateTime').innerHTML=''+oggiGMT+''
		}
		
		function _slide_in_home(type2) {
		if (e2=='') window.clearInterval(iTimer2);
		 tmp2 = type2;
			iTimer2=setInterval("_effect_in_home(tmp2)",5);
		}
		function _effect_in_home(t2) {
			if (t2=='on') {
							// Apre
							i=i+10
							if (i<100 && i>-1) {
											document.getElementById('row_div_0').style.display='block';
											document.getElementById('slide_div_0').style.height=i;
											document.getElementById('text_div_0').style.display='none';
											e2='';
							} else {
											if (i==100) document.getElementById('text_div_0').style.display='block';
											window.clearInterval(iTimer2);
											e2 = 'end';
							}
			} else {
							// Chiude
							i=i-10
							if (i>-10 && i<100) {
											document.getElementById('slide_div_0').style.height=i;
											document.getElementById('text_div_0').style.display='none';
											e2='';
							} else {
											window.clearInterval(iTimer2);
											document.getElementById('row_div_0').style.display='none';
											e2 = 'end';
							}
			}
		}
		
		
	function _slide_for_guide(type3) {
		if (e3=='') window.clearInterval(iTimer3);
		 tmp3 = type3;
			iTimer3=setInterval("_effect_for_guide(tmp3)",5);
		}
		function _effect_for_guide(t3) {
			if (t3=='on') {
							// Apre
							f=f+10
							if (f<100 && f>-1) {
											document.getElementById('row1_div_0').style.display='block';
											document.getElementById('slide1_div_0').style.height=f;
											document.getElementById('text1_div_0').style.display='none';
											e3='';
							} else {
											if (f==100) document.getElementById('text1_div_0').style.display='block';
											window.clearInterval(iTimer3);
											e3 = 'end';
							}
			} else {
							// Chiude
							f=f-10
							if (f>-10 && f<100) {
											document.getElementById('slide1_div_0').style.height=f;
											document.getElementById('text1_div_0').style.display='none';
											e3='';
							} else {
											window.clearInterval(iTimer3);
											document.getElementById('row1_div_0').style.display='none';
											e3 = 'end';
							}
			}
		}
		
		