function focusSet(obj, txt, isPass)
{
	if (obj.value == txt)
	{
		if (isPass)
		{
			var passwordTextDiv = document.getElementById('passwordText');
			var passwordInputDiv = document.getElementById('passwordInput');			
			
			var passwordInput = document.getElementById("UserPassword");

			Element.show(passwordInputDiv);
			Element.hide(passwordTextDiv);
			passwordInput.value = '';			
			passwordInput.focus();
		}
		else
		{
			obj.value = '';
			obj.focus();
		}
	}
}
function blurReset(obj, txt, isPass)
{
	if (obj.value == "")
	{
		if (isPass)
		{
			var passwordTextDiv = document.getElementById('passwordText');
			var passwordInputDiv = document.getElementById('passwordInput');			
			
			var passwordInput = document.getElementById("UserPassword");

			Element.hide(passwordInputDiv);
			Element.show(passwordTextDiv);
			passwordInput.value = '';
		}
        else
        {
	        obj.value = txt;
        }        
	}
}

function showHideFlags(show)
{
	if (show)
	{
		document.getElementById('langContainer').style.background = '#E6E6E6';
		document.getElementById('langSelector').style.background = '#E6E6E6';
		document.getElementById('flag').style.background = '#E6E6E6';
		document.getElementById('flags').style.display='block';			
	}
	else
	{
		document.getElementById('langContainer').style.background = 'none';
		document.getElementById('langSelector').style.background = 'none';
		document.getElementById('flag').style.background = 'none';
		document.getElementById('flags').style.display='none';			
	}
}