if (typeof String.prototype.trim == 'undefined') {
	String.prototype.trim = function ()	{
		return this.replace(/^\s*|\s*$/g,"");
	}
}

function LF () {
}

LF.openExternal = function (oA) {
	if (
			(oA != null)
			&&
			(oA.tagName)
			&&
			(oA.tagName.toLowerCase () == 'a')) {
		oA.target = '_blank';
	}
	
	return true;
}

LF.clearOnFocus = function (oInput, sDef) {
	if (!oInput)
		return;
	
	if (oInput.value.trim () == '')
		oInput.value = '';
	else if (oInput.value == sDef)
		oInput.value = '';
}