// Js Prenot
function VST(p1)	{
			document.Parametri.ST.value=p1;
			document.Parametri.submit(); 
			}

function VFA(p1) 	{
			document.Parametri.FA.value=p1;
			document.Parametri.submit();
			}
	
function VCL(p1)	{
			document.Parametri.CL.value=p1;
			document.Parametri.submit(); 
			}
				
function VES(p1)	{
			document.Parametri.ES.value=p1;
			document.Parametri.submit(); 
			}
		
function VPR(p1)	{
			document.Parametri.PR.value=p1;
			document.Parametri.submit(); 
			}
function execHomePage(f)	{
			//Window.open("http://stud.unifi.it:8080");
			window.location.href=("http://stud.unifi.it:8080");
			
			}
function execServiceMainPage(f) {
			//Window.open("http://stud.unifi.it:8080/prenot");
			window.location.href=("http://stud.unifi.it:8080/prenot");
	}

function controllalunghezza(f){
	
        if (f.CO.value.length > 450){
            alert("Esaurito lo spazio massimo disponibile per la comunicazione al Docente");
            return false;
        }
        return true;
    }
    
function top() {
		return (document.body)?document.body.scrollTop:(window.pageYOffset)?window.pageYOffset:(window.scrollY)?window.scrollY:0;
	}

function showToolTip(name) {
		
		
		//var TT=top()+200;
		if(document.layers) {
			
			document.layers[name].visibility = "show"
			//document.layers[name].top = TT
			
		}
		else
		{
			var cosa=document.getElementById(name)
			
			var b = cosa.style
			b.visibility = 'visible'
			//b.top=TT
			
			
		}
	}

	function hideToolTip(name) {
		if(document.layers)	{
			document.layers[name].visibility = "hide"
		}
		else {
			var cosa=document.getElementById(name)
			var b = cosa.style
			b.visibility = 'hidden'
		}
	}