<!-- This script checks for available EZDial.Net E-Mail Addresses
//
// Script Name:  ck_address_email.js
//
// Copyright @1998-2010 FXtra, Inc.
// 
// This SOFTWARE SCRIPT and its associated components are owned by FXtra, Inc.
// and are protected by United States Copyright Laws and international treaty
// provisions.  Therefore, you must comply with such laws and treaties in your
// use of this SOFTWARE SCRIPT.  You MAY NOT duplicate, publish, sublicense,
// distribute or modify this SOFTWARE SCRIPT or any accompanying documentation.
// Use of this SOFTWARE SCRIPT is provided by authorization through special
// limited license(s) from FXtra, Inc. only.  It is not available to the
// public domain, nor is it permissible to use this script without the
// explicit consent by license from FXtra. Inc.
//
// Please direct inquiries to:
// FXtra, Inc.
// Marketing & Sales Dept.
// 7803 Manorford Drive
// Parma, OH  44129
//
// E-MAIL:  sales@fxtra.com
// PHONE:  (888) 834-3845
//
// * LICENSE TYPE:  This SOFTWARE SCRIPT is provided through a special limited site
// license.
// * LICENSE:  #f00000000
// * LICENSEE:  FXtra, Inc.
// * AUTHORIZED FOR DOMAIN:  www.ezdial.net ONLY.
// * RESTRICTED TO DOMAIN DIRECTORY:  www.ezdial.net/_codebase.
// * CHILD SITE/SUB WEB AUTHORIZATION:  Callable as installed by FXtra, Inc.
// * OTHER AUTHORIZATIONS:  Domain support and backup or archival purposes only.
// * DURATION:  Life of the above authorized domain.
// * WARRANTY:  This SOFTWARE SCRIPT has been tested and certified by FXtra, Inc.
// to meet or exceed performance of its original specifications and scope of its
// intended purposes.  Licensee assumes all risks associated with use of this
// SOFTWARE SCRIPT by virtue of installation on any computer hardware device.  
// FXtra, Inc. provide or implies any liability or remedy for damages incurred
// through use of this SOFTWARE SCRIPT.  In no event shall FXtra, Inc. or its
// suppliers be liable for any damages whatsoever (including, without limitation,
// direct damages, consequential damages and other pecuniary loss) arising out of
// the use or inability to use this FXtra, Inc. SOFTWARE SCRIPT product, even if
// FXtra, Inc. has be advised of the possibility of such damages.
// This SOFTWARE SCRIPT license warranty statement constitutes the entire
// agreements between the licensee and FXtra, Inc. regarding this SOFTWARE
// SCRIPT, its accompanying components and materials.  If any provision is found
// to be invalid by a court competent jurisdiction, the balance of the
// provisions shall remain in full force  and effect.  THIS AGREEMENT IS
// GOVERNED BY THE LAWS OF THE STATE OF OHIO, U.S.A., BUT NOT INCLUDING THE
// 1980 U.N. CONVENTION ON CONTRACTS FOR INTERNATIONAL SALES OF GOODS.
// * SPECIAL NOTE:  Any updates to this software script by FXtra, Inc. will be
// available free of charge to valid licensees.  To request information on
// availability of any updates, please contact tech@fxtra.com.
//
// To purchase a site license for this script, please contact sales@fxtra.com.
//
// Check E-Mail Addresses
function Validate()  {
   // Taken Addresses
   // ***** Begin Edit *****
   var user = new Array(13);
   // Protected Addresses
   user[0] = "ezdial";
   user[1] = "general";
   user[2] = "tech";
   user[3] = "webmaster";
   // Reserved Addresses
   user[4] = "ed";
   user[5] = "sharene";
   user[6] = "zach";
   user[7] = "zachary";
   user[8] = "sarahrose333";
   // Customer Addresses
   user[9] = "krtfootb";
   user[10] = "mirko";
   user[11] = "dalibor";
   user[12] = "david";
   user[13] = "feb";
   // ***** End Edit *****
   var status = "ADDRESS IS AVAILABLE"
   var suggest = "";
   var input = document.checker.EMail.value;
   input = input.toLowerCase();
   var compare = input;
   var repeat = user.length;
   var test = "y";
   var addon = 1;
   var retry = "n";
   while (test == "y")  {;
          var loop = 0;
          test = "n";
          retry = "n"
          while (loop <= repeat)  {
                 if (user[loop] == compare)  {
                     compare = input + addon;
                     suggest = compare;
                     status = "ADDRESS IS TAKEN";
                     addon ++;
                     retry = "y";
                     break;
                 }
                 loop ++;
          }
          if (retry == "y")  {
              test = "y";
          }
   }
   // Input Error Messages
   var suggestlen = suggest.length;
   if (suggestlen > 12) {
       status = "ADDRESS IS TAKEN";
       suggest = "----NONE----";   
   }
   var inputlen = input.length;
   if (inputlen < 2) {
       status = "ADDRESS TO SHORT";
       suggest = "";   
   }
   if (inputlen > 12) {
       status = "ADDRESS TO LONG";
       suggest = "";   
   }
   if (input=="")  {
       status = "INPUT AN ADDRESS";
       suggest = "";
   }
   // Dissallow Protected Addresses
   if (input=="ezdial")  {
       status = "DISALLOWED - RETRY";
       suggest = "";
   }
   if (input=="general")  {
       status = "DISALLOWED - RETRY";
       suggest = "";
   }
   if (input=="tech")  {
       status = "DISALLOWED - RETRY";
       suggest = "";
   }
   if (input=="webmaster")  {
       status = "DISALLOWED - RETRY";
       suggest = "";
   }
   document.checker.Status.value = status;
   document.checker.Suggest.value = suggest;
   return false;
}
//-->

