// *******************************************************
// Libreria de Scripts comunes al Framework NEO
// Propiedad de MakeIT Consulting
// *******************************************************

function ResolveUrl(relativePath) {
	if( relativePath.indexOf('~') === 0 ) {
		if( typeof(g_applicationRootPath) === 'string' ) {
			return relativePath.replace('~', g_applicationRootPath);
		}
		else {
			return relativePath.substr(1);
		}
	}
	else {
		return relativePath;
	}
}

// Esta funcion es para ejecutar una busqueda por ID
function doGlobalSearch() {
	window.location = ResolveUrl('~/propiedades/' + document.getElementById('txtBuscarCodigo').value);
}

