function isDefined(sVarName) { return (typeof(window[sVarName]) == "undefined") ? false : true; }