function openInNewTab(url) {[br] var win = window.open(url, '_blank');[br] try {[br] win.focus();[br] } catch (e) {}[br]}[br][br]var func = ggbApplet.getValueString("f");[br][br]var func2 = encodeURIComponent(func).replace(/'/g, "%27").replace(/"/g, "%22").replace(/\)/g, "%29").replace(/\(/g, "%28").replace(/!/g, "%21");[br][br]openInNewTab("https://www.geogebra.org/graphing?command=" + func2)