// JavaScript Document


function selectMe(e_id) {
    //e_id.focus();
    //e_id.select();
    document.login.textfield_01.focus();
    document.login.textfield_01.select();

    //document.login.textfield_01.focus();

}


function wc3_or_IE(e_id)
{
	if (document.getElementById)
		{
		x = document.getElementById(e_id)
		}
	else if (document.all)
		{
		x = document.all.e_id
		}
	else
		{
		x = document.getElementById(e_id)
		}
	return x;		
}


function toggleHeight(myId, h)
{

	wc3_or_IE(myId);	

	if(x.style.height == h)
	{
	x.style.height =  "0px";	
	}
	else
	{
	x.style.height =  "210px";
	}	
}



var i;
i = 0;


function toggleHeight_anim(myId, h)
{
	wc3_or_IE(myId);	

	if(x.style.height.length == 0)
	{	
	i=210;
	do_anim_shrink(myId);	
	}
	else if(x.style.height == h)
	{
	//x.style.height =  "0px";	
	do_anim_shrink(myId);
	}
	else
	{
	//x.style.height =  "210px";
	do_anim_grow(myId, h);
	}	
}


function do_anim_grow(myId, h)
{
	wc3_or_IE(myId);
	//if(x.style.height == h)
	//alert(x.style.height);
	if(x.style.height == h)
	{
		//i = 0;
		return;
	}
	i =i+10;
	x.style.height = i + "px";
	setTimeout("do_anim_grow('cust_login_bg','210px')", .0001);
}

function do_anim_shrink(myId)
{


	wc3_or_IE(myId);
	if(i == 0)
	{
		return;
	}
	i =i-10;
	x.style.height = i + "px";
	setTimeout("do_anim_shrink('cust_login_bg')", .0001);
}


