/*
 * 
 * 
 * 
 * 
*/
		  
function display_form_window(width,height)
{
	if (width!=0)
	{
		document.getElementById('lightbox').style.width=width+'px';
	}
	else
	{
	width=660;
	}
	if (height!=0)
	{
		document.getElementById('lightbox').style.height=height+'px';
	}
	else
	{
	height=530;
	}
	
        
          var scrollX = parseInt(document.body.scrollWidth);
          //var scrollY = parseInt(document.body.scrollHeight);
          //var scrollY = parseInt(window.innerHeight);
                if (is_opera)
                {
                 var scrollY = parseInt(window.innerHeight);
                }
                else
                {
                 var scrollY = document.documentElement.clientHeight; // get result for IE
                }

          document.getElementById('lightbox').style.left =  parseInt((scrollX-width)/2) + "px";
          document.getElementById('lightbox').style.top =  parseInt((scrollY-height)/2)  + "px";  
	document.getElementById('overlay').style.display="block";
	document.getElementById('lightbox').style.display="block";
	return true;
}
function hide_form_window()
{
	document.getElementById('overlay').style.display="none";
	document.getElementById('lightbox').style.display="none";
	return true;
}
function show_form_loading(did)
{
	document.getElementById(did).innerHTML='<div style="width:80px; margin-top:'+document.getElementById(did).clientHeight/2+'px; margin-left:auto; margin-right:auto;"><img src="images/loading.gif"></div>';	
	return true;
}
function toggleList(lid)
{
	if (document.getElementById(lid).style.display=='none')
	{
			document.getElementById(lid).style.display='block';
	}
	else
	{
			document.getElementById(lid).style.display='none';
	}

	
}

