File: 1.19.3a/server/web/js/freenats.js (View as HTML)

  1: <!--
  2: /* -------------------------------------------------------------
  3: This file is part of FreeNATS
  4: 
  5: FreeNATS is (C) Copyright 2008-2011 PurplePixie Systems
  6: 
  7: FreeNATS is free software: you can redistribute it and/or modify
  8: it under the terms of the GNU General Public License as published by
  9: the Free Software Foundation, either version 3 of the License, or
 10: (at your option) any later version.
 11: 
 12: FreeNATS is distributed in the hope that it will be useful,
 13: but WITHOUT ANY WARRANTY; without even the implied warranty of
 14: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 15: GNU General Public License for more details.
 16: 
 17: You should have received a copy of the GNU General Public License
 18: along with Foobar.  If not, see www.gnu.org/licenses
 19: 
 20: For more information see www.purplepixie.org/freenats
 21: -------------------------------------------------------------- */
 22: 
 23: // Help Popup
 24: function freenats_help( helpid )
 25: {
 26: var url= 'help.php?id='+helpid;
 27: var opt= 'width=300,height=200,toolbar=no,directories=no,status=no,copyhistory=no,left=0,top=20,screenX=0,screenY=20';
 28: var tit= 'FreeNATS Help: '.helpid;
 29: 
 30: window.open(url,tit,opt);
 31: }
 32: 
 33: // Display Toggles
 34: function displayToggle( id )
 35: {
 36: 	displayBlockToggle(id);
 37: }
 38: 
 39: function displayBlockToggle( id )
 40: {
 41: 	var ele = document.getElementById(id);
 42: 	if (ele.style.display == "block") ele.style.display="none";
 43: 	else ele.style.display="block";
 44: }
 45: 
 46: function confirmGo( text, url )
 47: {
 48: 	if (confirm(text)) window.location = url;
 49: }
 50: //-->