var maxmag=75;
var alapmag=13;
var utmozg=0;
var mozgas=0;
var mag=13;
var intervalID;
var intervalID2;
var id;

/*-----------------------------------------------------------------------------------------------------------*/
function submitFunction(f,i) {
	
	/*
	if (i==1) document.theForm.todo.value="mod";
	if (i==2) document.theForm.todo.value="del";
	if (i==3) document.theForm.todo.value="add";*/
   
   /*
   document.theForm.todo.value=i;
   document.theForm.submit()*/
   
   f.todo.value=i;
   f.submit();
   }

/*-----------------------------------------------------------------------------------------------------------*/
function goToURL(url)
	{
	window.location = url;
	}

/*-----------------------------------------------------------------------------------------------------------*/
function openloginbox()
{
id=document.getElementById("hhii");

var color = new RGBColor(  getStyle2(id,"background-color")  );
if (color.toHex()=="#cccccc")
	{
	id.style.height = 95;
	id.style.background="#fea52a";
	} else
	{
	id.style.height = 13;
	id.style.background="#cccccc";
	}

}
/*-----------------------------------------------------------------------------------------------------------*/

function SetCookie(cookieName,cookieValue,nDays) {
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString();
}
/*-----------------------------------------------------------------------------------------------------------*/
function alacsonyodikk()
{
 while (mag>alapmag)
	{
	mag=mag-5;
	id.style.height = mag + 'px';
	return;
	}
clearInterval(intervalID);
mozgas=0; 
}
/*-----------------------------------------------------------------------------------------------------------*/
function magasodikk()
{

 while (maxmag>mag)
	{
	mag=mag+5;
	id.style.height = mag + 'px';
	return;
	}
clearInterval(intervalID);
mozgas=0;  
}
/*-----------------------------------------------------------------------------------------------------------*/
function magasodik()
{
return;
if (mozgas>0) return;
mozgas=1; 
id=document.getElementById("hhii");
intervalID=setInterval(magasodikk, 30);
intervalID2=setInterval(becsuk, 1000);
}
/*-----------------------------------------------------------------------------------------------------------*/
function becsuk()
{
if (mozgas>0) return;
var color = new RGBColor(  getStyle2(id,"background-color")  );
if (color.toHex()=="#cccccc")
	{
	clearInterval(intervalID2);
	mozgas=1; 
	intervalID=setInterval(alacsonyodikk, 30);
	}
return;
}
/*-----------------------------------------------------------------------------------------------------------*/

function getStyle2(oElm, strCssRule){
  var strValue = "";
  if(document.defaultView && document.defaultView.getComputedStyle){
    strValue = document.defaultView.getComputedStyle(oElm, "").getPropertyValue(strCssRule);
  }
  else if(oElm.currentStyle){
    strCssRule = strCssRule.replace(/\-(\w)/g, function (strMatch, p1){
      return p1.toUpperCase();
    });
    strValue = oElm.currentStyle[strCssRule];
  }
  return strValue;
}
