function trim(_str)
{
	return _str.replace(/^\s*|\s*$/g, '');
}

function notValidEmail(str)
{
	mailRE = new RegExp();
	mailRE.compile('^[\._a-z0-9-]+@[\.a-z0-9-]+[\.]{1}[a-z]{2,4}$', 'gi');
	return !(mailRE.test(str));
}

function login_togglesave(_link)
{
	if (document.frm_login.login_save.value == 'off')
	{
		document.frm_login.login_save.value = 'on';
		_link.className = 'save_on';
	}
	else
	{
		document.frm_login.login_save.value = 'off';
		_link.className = 'save_off';
	}
	_link.blur();
}

function openImgView(_obj)
{
	window.open(_obj.href, 'pvIMGview', 'width=200,height=200,resizable=0');
	return false;
}

