function mouseOver(id){
         document.getElementById(id).style.backgroundColor='#dadadc';
}

function mouseOut(id){
         document.getElementById(id).style.backgroundColor='#bcbcbe';
}

function subMouseOver(id){
	document.getElementById(id).style.backgroundColor='#4583b6';
}

function subMouseOut(id){
	document.getElementById(id).style.backgroundColor='';
}

function subMouseOverGreen(id){
	document.getElementById(id).style.backgroundColor='#749510';
}

function subMouseOutGreen(id){
	document.getElementById(id).style.backgroundColor='';
}

function colora(id,colore){
    if (colore=="")
        colore = "#eeeeee";
	document.getElementById(id).style.backgroundColor=colore;
}

function scolora(id){
	document.getElementById(id).style.backgroundColor='';
}

function mouseOverAndSetTendina(id){
	document.getElementById(id).style.backgroundColor='#dadadc';
	document.getElementById('tendina').style.display='block';
}

function mouseOverAndClearTendina(id){
	document.getElementById(id).style.backgroundColor='#dadadc';
	document.getElementById('tendina').style.display='none';
}

var first = true;

function cancellaVoce2(elemento){
	
	var user = document.getElementById('email').value ;
	var pass = document.getElementById('password').value ; 
	if(elemento.value  == "username"){
		document.getElementById('email').value  = "" ;
		//   document.getElementById('username').style.backgroundColor = "white"; 
		if(document.getElementById('password').value  == "")
		{   document.getElementById('password').value  = "password" ;  
			//  document.getElementById('password').style.backgroundColor = "cccccc"; 
		}     
	}
	if(elemento.value  == "password") {
		document.getElementById('password').value  = "" ;  
		//  document.getElementById('password').style.backgroundColor = "white"; 
		if(document.getElementById('email').value  == "") {   
			document.getElementById('email').value  = "username" ;  
		 // document.getElementById('username').style.backgroundColor = "cccccc"; 
		}           
	} 
}
function cancellaVoce(elemento){
	if (first){
		elemento.value = "";
		first = false;
	}
}