/*
Copyright (c) 2007-2010 Olaf Gramkow. All rights reserved.
These functions are NOT freeware.
*/

function InputFocus(obj, text)
{
	if (obj.value == text)
	{
		obj.value = '';
		obj.style.color = '#000000'
	}
	
	obj.style.backgroundColor = '#ddffdd';
}

function InputBlur(obj, text)
{
	if (obj.value == '')
	{
		obj.value = text;
		obj.style.color = '#b7b7b7'
	}
	
	obj.style.backgroundColor = '#ffffff';
}

function InputFocusPassword(obj, text)
{
	if (obj.value == text)
	{
		obj.value = '';
		if (!$.browser.msie)
		{
			obj.type = 'password';
		}
		obj.style.color = '#000000';
	}
	
	obj.style.backgroundColor = '#ddffdd';
}

function InputBlurPassword(obj, text)
{
	if (obj.value == '')
	{
		obj.type = 'text';
		if (!$.browser.msie)
		{
			obj.value = text;
		}
		obj.style.color = '#b7b7b7';
	}
	
	obj.style.backgroundColor = '#ffffff';
}