/**************************************************************************** 
* Frost Jedi Open Proxy Detector JavaScript Additions v1.0.0 (Nov. 10, 2004) 
* © MMIV by TerraFrost. All rights reserved. 
* 
* http://www.frostjedi.com/terra/scripts/proxy/
* 
* Comments, criticisms, suggestions, and additions welcome! Post them 
* here: 
* 
* http://www.frostjedi.com/phpbb/viewforum.php?f=6 
* 
* Permission to use, copy, modify, and distribute this script and its for any 
* purposes and without fee is hereby granted provided that credit is given 
* where credit is due (in this case, to me). 
* 
* Further, no representations or warranties about the suitability of this 
* script, either express or implied, including but not limited to the implied 
* warranties of merchantability, fitness for a particlar purpose, or non- 
* infringement are made.  Neither TerraFrost nor the Frost Jedi shall be 
* liable for any damages suffered by licensee as a result of using, 
* modifying or distributing this software or its derivatives. 
****************************************************************************/

// The following function is modified the original in Breaking Par's section on IP Address Validation:
// http://www.breakingpar.com/bkp/home.nsf/Doc?OpenNavigator&U=87256B280015193F87256C87006CC664
function isValidIPAddress(ipaddr) {
   var re = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;
   if (re.test(ipaddr)) {
      var parts = ipaddr.split(".");
      if (parseInt(parseFloat(parts[0])) == 0) { return false; }
      for (var i=0; i<parts.length; i++) {
         if (parseInt(parseFloat(parts[i])) > 255) { return false; }
      }
      return true;
   } else {
      window.alert("Invalid IP Address Entered!");
      return false;
   }
}