// iTERRA 3.0 template JavaScript include: login box (c) 2007 by evanto media AG

function doRequest (loginname) 
{
  if (document.getElementById)
  {
	dialog = document.getElementById(loginname + "_request");
	if (dialog)
	{  		
		defWidth = 450;
		defHeight = 250;
			
		dialog.style.width = defWidth + "px";
		dialog.style.height = defHeight  + "px";
		
		// IE
		if (document.documentElement.clientWidth && window.navigate)
		{
			dialog.style.left = ((document.documentElement.clientWidth - defWidth) / 2) + "px";
			dialog.style.top  = ((document.documentElement.clientHeight - defHeight) / 2) + "px";
		}

		// Mozilla, Opera
		if (window.netscape)
		{
			dialog.style.left = ((window.innerWidth - defWidth) / 2) + "px";
			dialog.style.top  = ((window.innerHeight - defHeight) / 2) + "px";
		}
		
		dialog.style.display = ""; 
	}
	else
	  alert ("Request password dialog not found!");
  }
  return false;
}

function closeRequest (loginname) 
{
  if (document.getElementById)
  {
	dialog = document.getElementById(loginname + "_request");
	if (dialog)
	{  				
		dialog.style.display = "none"; 
	}
	else
	  alert ("Request password dialog not found!");
  }
  return false;
}

