divvalue=0;
divactive=true;
function logindiv(){
	if(divactive==true){
document.getElementById("logindiv").style.display="block";
intervalvalue=setInterval("animationdiv()",10);
divactive=false;
	}else{
		cancellogin()		
	}
}

function animationdiv(){
if(divvalue<=50){
divvalue+=3;
document.getElementById("logindiv").style.height=divvalue+"px";
}else{
	clearInterval(intervalvalue);
}
}
function cancellogin(){
document.getElementById("logindiv").style.display="block";
intervalclose=setInterval("animationclose()",10);
divactive=true;
}
function animationclose(){
if(divvalue>0){
divvalue-=3;
document.getElementById("logindiv").style.height=divvalue+"px";
}else{
	clearInterval(intervalclose);
	document.getElementById("logindiv").style.display="none";
}
}
