diff --git a/data/y-web/Y_Baselib.js b/data/y-web/Y_Baselib.js
index 4adddb64e..887e87a80 100644
--- a/data/y-web/Y_Baselib.js
+++ b/data/y-web/Y_Baselib.js
@@ -528,3 +528,28 @@ function saveTextAsFile(content, filename, filetype)
}
downloadLink.click();
}
+
+function goUrl(_url)
+{
+ var res = trim(loadSyncURL(_url));
+ switch(res)
+ {
+ case "1": res = "on"; break;
+ case "0": res = "off"; break;
+ }
+ var out = document.getElementById("out");
+ if (out)
+ out.innerHTML = res;
+}
+
+function goPort(_port)
+{
+ if (_port == "")
+ return;
+ var host = self.location.href;
+ var pos1 = host.indexOf('//');
+ var temp = host.substring(pos1 + 2, host.length);
+ var pos2 = temp.indexOf('/');
+ var host = host.substring(0, pos1 + 2 + pos2);
+ window.open(host + ":" + _port, "_blank");
+}
diff --git a/data/y-web/Y_Blocks.txt b/data/y-web/Y_Blocks.txt
index 692d4796b..df5d83bc3 100644
--- a/data/y-web/Y_Blocks.txt
+++ b/data/y-web/Y_Blocks.txt
@@ -299,7 +299,6 @@ start-block~head_ni
{=include-block:Y_Blocks.txt;js_prototype=}
{=include-block:Y_Blocks.txt;js_jquery=}
{=include-block:Y_Blocks.txt;js_jquery_ui=}
-