//// Globals that every function can utilize
var blankstr = ""

// PURPOSE:
//		This function validates a Field.
// WHAT IT DOES:
//		verifies the field is populated and numeric
//		alerts the user to the error, sets focus, and returns
// PARAMETERS:
//		field is the HTML field
// RETURNS:
//		true || false


// This function is to check if the field contains all the space///

function fBlankChk(fieldVal,sStr)
{

	spaceCnt = 0;
	for(i=0;i<fieldVal.value.length;i++)
	{
		if(fieldVal.value.charAt(i) == " ")
			{
				spaceCnt++;
			}
	}
	//alert("spaces" + spaceCnt);
	//alert("total lenght" + fieldVal.value.length);
	if(fieldVal.value.length == spaceCnt)
	{
		alert(sStr + " is a required field.");
		fieldVal.focus()
		fieldVal.select()
		return false;
	 }
	else
	{
		return true; 
	 }
}


// end to check the space function///



function validateClientID( field )
{

	/// for blank check ///

	if(fBlankChk(field,"Client ID")== false)
	 return false;
	
	/// End for blank check ///
	

	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Client ID is a required field.' )
		field.focus()
		return false
	}
	
	/*if( isNumber(field.value) == false )
	{
		alert( 'Client ID can only contain digits.' )
		field.focus()
		field.select()
		return false
	}*/

	return true
}

function validatePassword( field )
{
	
	/// for blank check ///
	
		if(fBlankChk(field,"Password")== false)
		 return false;
		
	/// End for blank check ///
	
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Password is a required field.' )
		field.focus()
		return false
	}
	if ( field.value.length > 8)
	{
		alert( 'The password that you have entered contains more than 8 characters.  Please reenter up to 8 characters.' )
		field.focus()
		return false
	}			
	return true
}

function validateOldPassword( field )
{
	/// for blank check ///
		
		if(fBlankChk(field,"Old Password")== false)
		 return false;
			
	/// End for blank check ///

	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Old Password is a required field.' )
		field.focus()
		return false
	}
	
	return true
}

function validateNewPassword( field )
{

	/// for blank check ///
		
		if(fBlankChk(field,"New Password")== false)
		 return false;
			
	/// End for blank check ///
	
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'New Password is a required field.' )
		field.focus()
		return false
	}
	return true
}

function validateConfirmNewPassword( field )
{
	/// for blank check ///
		
		if(fBlankChk(field,"Confirm New Password")== false)
		 return false;
			
	/// End for blank check ///
	
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Confirm New Password is a required field.' )
		field.focus()
		return false
	}
	return true
}

function validateFirstName( field )
{
	/// for blank check ///
		
		if(fBlankChk(field,"First Name")== false)
		 return false;
			
	/// End for blank check ///
	
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'First Name is a required field.' )
		field.focus()
		return false
	}
	
	return true
}

function validateLastName( field )
{
	/// for blank check ///
			
			if(fBlankChk(field,"Last Name")== false)
			 return false;
				
	/// End for blank check ///
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Last Name is a required field.' )
		field.focus()
		return false
	}
	
	return true
}

function validateCompany( field )
{
	/// for blank check ///
		
		if(fBlankChk(field,"Company")== false)
		 return false;
			
	/// End for blank check ///
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Company is a required field.' )
		field.focus()
		return false
	}
	
	return true
}


// This function is modified to check if a user can enter all 0's in phone field
function validateUsaIntPhone( field1,field2 )
{
	
	if (( field1.value.length == 0 || blankstr == field1.value || field1.value == 0)  && 
	    ( field2.value.length == 0 || blankstr == field2.value || field2.value == 0))
	{
		alert( 'Either USA Phone or International Phone is a required field.' )
		field1.focus()
		return false
	}

	return true
}
// end of modification


function validateEmail( field )
{
	/// for blank check ///
		
		if(fBlankChk(field,"Email")== false)
		 return false;
			
	/// End for blank check ///
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Email is a required field.' )
		field.focus()
		return false
	}
	
	if(validateEmailAddress( field )== true)
		return true;
	else
		return false;
	//return true
}

function validateConfirmEmail( field )
{
	/// for blank check ///
		
		if(fBlankChk(field,"Confirm Email")== false)
		 return false;
			
	/// End for blank check ///
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Confirm Email is a required field.' )
		field.focus()
		return false
	}
	
	if(validateEmailAddress( field )== true)
			return true;
		else
		return false;
	//return true
}

function validateStreetAddress1( field )
{
	/// for blank check ///
		
		//if(fBlankChk(field,"Street Address 1")== false)
		// return false;
			
	/// End for blank check ///
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Street Address 1 is a required field.' )
		field.focus()
		return false
	}
	
	return true
}

function validateCity( field )
{
	/// for blank check ///
		
		if(fBlankChk(field,"City")== false)
		 return false;
			
	/// End for blank check ///
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'City is a required field.' )
		field.focus()
		return false
	}
	
	return true
}

function validateState( field )
{
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'State is a required field.' )
		field.focus()
		return false
	}
	
	return true
}


// PURPOSE:
//		This function validates a Zip Code that's within an Address block.
// WHAT IT DOES:
//		verifies the field is populated and at least 5 in length
//		alerts the user to the error, sets focus, and returns
// PARAMETERS:
//		field is the HTML field
// RETURNS:
//		true || false
function validateZip( field )
{			
	/// for blank check ///
		
	//	if(fBlankChk(field,"Zip Code")== false)
	//	 return false;
			
	/// End for blank check ///
	
	// Have to build an equal length blank string to determine if the whole thing is blanks
	//for (var i=0,blankstr = ""; i < field.value.length; i++)
	//	blankstr = blankstr + " "

	/*if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( "ZIP Code is required." )
		field.focus()
		field.select()
		return false
	}
	
	if( field.value.length < 5 )
	{
		alert( 'ZIP Code must be at least 5 digits in length.' )
		field.focus()
		field.select()
		return false
	}
	*/
	if(validateUSZipCode( field, false ) == false)
		return false;
	return true 
	
}

//Bug # 10607 Kavitha March 15th 2004
// PURPOSE:
//		This function validates a Zip Code that's within an Address block.
// WHAT IT DOES:
//		verifies the field is populated and at least 5 in length
//		alerts the user to the error, sets focus, and returns
// PARAMETERS:
//		field is the HTML field
// RETURNS:
//		true || false
function validateUSZipCode( field, isCountryUS )
{			
	/// for blank check ///
		
		if(fBlankChk(field,"Zip Code")== false)
		 return false;
			
	/// End for blank check ///
	
	// Have to build an equal length blank string to determine if the whole thing is blanks
	for (var i=0,blankstr = ""; i < field.value.length; i++)
		blankstr = blankstr + " "

	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( "ZIP Code is required." )
		field.focus()
		field.select()
		return false
	}
	
	if( isCountryUS == true ) 
	{
		if( trim(field.value).length < 5) 
		{
			alert( 'ZIP Code must be at least 5 digits in length.' )
			field.focus()
			field.select()
			return false
		}
	}
	
	return true
}

function validateCountry(field)
{
	if (field.value.length == 0 || blankstr == field.value)
	{
		alert( 'Country is a required field.' )
		field.focus()
		return false
	}
	
	return true
}

function validatePassword( field )
{
	
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Password is a required field.' )
		field.focus()
		return false
	}
	if ( field.value.length > 8)
	{
		alert( 'The password that you have entered contains more than 8 characters.  Please reenter up to 8 characters.' )
		field.focus()
		return false
	}		
	return true
}

function validateConfirmPassword( field )
{
	
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Confirm Password is a required field.' )
		field.focus()
		return false
	}
	if ( field.value.length > 8)
	{
		alert( 'The Password that you have entered contains more than 8 characters.  Please reenter up to 8 characters.' )
		field.focus()
		return false
	}		
	return true
}

function validateCardType( field )
{
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Credit Card Type is a required field.' )
		field.focus()
		return false
	}
	
	return true
}

function validateCardNumber( field )
{
	/// for blank check ///
		
		if(fBlankChk(field,"Card Number")== false)
		 return false;
			
	/// End for blank check ///
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Credit Card Number is a required field.' )
		field.focus()
		return false
	}
	
	return true
}

function validateExpirationMonth( field )
{
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Expiration Month is a required field.' )
		field.focus()
		return false
	}
	
	return true
}

function validateExpirationYear( field )
{
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'Expiration Year is a required field.' )
		field.focus()
		return false
	}
	
	return true
}

function validateExpirationMonthAndYear( field1,field2 )
{
	var yr,mn;
	Today = new Date();
	yr = Today.getFullYear();
	mn = Today.getMonth();

	if ( field2.value < yr 
	  || (field2.value == yr
	  && field1.value < mn))
	{
		alert( 'Your credit card has expired.' )
		field1.focus()
		return false
	}
	
	return true
}

function billingFormBlank( field1,field2,field3,field4 )
{
	if (( field1.value.length == 0 || blankstr == field1.value ) &&
	    ( field2.value.length == 0 || blankstr == field2.value ) &&
	    ( field3.value.length == 0 || blankstr == field3.value ) &&
	    ( field4.value.length == 0 || blankstr == field4.value ))
	{
		return true
	}
	
	return false
}


// PURPOSE:
//		This function validates a Phone number.
// WHAT IT DOES:
//		verifies the field is a full 10 digits and in the right format for a phone number
//		alerts the user to the error, sets focus, and returns
// PARAMETERS:
//		field is the HTML field
// RETURNS:
//		true || false
function validatePhone( field )
{	
	if( checkPhone(field) == false )
	{
	
		field.focus()
		field.select()
		return false
	}
	
	return true
}

// PURPOSE:
//		To determine whether a string is actually a number.
//	WHAT IT DOES:
//		Checks to see if a string value is comprised entirely of digits 0-9.
// PARAMETERS:
//		inputStr is the string to process
// RETURNS:
//		true || false
function isNumber(inputStr)
{
	for (var i = 0;i < inputStr.length; i++)
	{
		var oneChar = inputStr.substring(i, i + 1)
		if (oneChar < "0" || oneChar > "9")
		{
			return false
		}
	}
	return true
}

// PURPOSE:
//		This function attempts to validate an Email address as per RFC 821.
//		The format in 821 is described as name@domain with the only valid characters being
//		alphas, numbers, and a hyphen. However, the hyphen cannot be the last character in name
//		or domain.
// WHAT IT DOES:
//		verifies the field is populated and has the right syntax
//		alerts the user to the error, sets focus, and returns
// PARAMETERS:
//		field is the HTML field
// RETURNS:
//		true || false
function validateEmailAddressBilling( field )
{
	if ( field.value.length == 0 || blankstr == field.value )
		return true
	
	//Corrected the E-mail validation regular expression : Anil Feb 13, 2004
		//Kavitha Trimmed down the spaces in field.value and assigned it back to the field after trimming Feb 13th 2004
		var email = trim(field.value)
		field.value = email
		//if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(field.value))
		//if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w+)+$/.test(email))
		
		//Commenting this: -
		//if(/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/.test(trim(field.value)))
		
		//Adding the following modified regular exp to allow validation of email-ids having domain name 
		//starting with a numeric digits e.g. 4GuysFromRolla: Bug # 10950 : Anil Sharma : 14th June 2004.
		if(/^[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/.test(trim(field.value)))
		{
			return true
		}
		alert("You have entered an Invalid E-mail Address. Please re-enter E-mail Address.")	
		field.focus()
		field.select()
	return false
}

function validateEmailAddress( field )
{
	if(fBlankChk(field,"Email")== false)
		 return false;	
	
	if ( field.value.length == 0 || blankstr == field.value )
	{
		alert( 'e-mail Address is a required field.' )
		field.focus()
		return false
	}		 
	
	//Corrected the E-mail validation regular expression : Anil Feb 13, 2004
	//Kavitha Trimmed down the spaces in field.value and assigned it back to the field after trimming Feb 13th 2004
	var email = trim(field.value)
	field.value = email
	//if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(field.value))
	//if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w+)+$/.test(email))
	
	//Commenting this: -
	//if(/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/.test(trim(field.value)))
	
	//Adding the following modified regular exp to allow validation of email-ids having domain name 
	//starting with a numeric digits e.g. 4GuysFromRolla: Bug # 10950 : Anil Sharma : 14th June 2004.
	if(/^[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/.test(trim(field.value)))
	{
		return true
	}
	alert("You have entered an Invalid E-mail Address. Please re-enter E-mail Address.")	
	field.focus()
	field.select()
	return false
}

// PURPOSE:
//		This function checks equality of "Email Address" 
//		and "Confirm Email Address" fields.
// WHAT IT DOES:
//		checks the equality of "Email Address" and
//		"Confirm Email Address" fields
//		alerts the user to the error, sets focus, and returns
// PARAMETERS:
//		field is the HTML field
// RETURNS:
//		true || false
function validateEqualityOfEmailAddressAndConfirmEmailAddress( field1, field2 )
{
	//Kavitha Feb 12th 2004 After trimmming down the equality is checked.
	//if( field1.value != field2.value )
	if( trim(field1.value) != trim(field2.value) )
	{
		alert( 'Email Address and Confirm Email Address do not match.' )
		field2.focus()
		return false
	}
	return true
}

// PURPOSE:
//		This function checks equality of "New Password" 
//		and "Confirm New Password" fields.
// WHAT IT DOES:
//		checks the equality of "New Password" and
//		"Confirm New Password" fields
//		alerts the user to the error, sets focus, and returns
// PARAMETERS:
//		field is the HTML field
// RETURNS:
//		true || false
function validateEqualityOfNewAndConfirmNewPasswords( field1, field2 )
{
	if( field1.value != field2.value )
	{
		alert( 'New Password and Confirm New Password do not match.' )
		field2.focus()
		return false
	}
	return true
}

// PURPOSE:
//		This function checks "Card Type" field
//		with "Card Number" field.
// WHAT IT DOES:
//		checks "Card Type" field with "Card Number" field.
//		alerts the user to the error, sets focus, and returns
// PARAMETERS:
//		field is the HTML field
// RETURNS:
//		true || false
function validateCardTypeWithCardNumber( field1, field2 )
{
	if( field1.value.substr(0,1) != field2.value.substr(0,1) )
	{
		alert( 'Card Number does not match Card Type.' )
		field2.focus()
		return false
	}
	return true
}
//Added Anil
function isInteger (s) { 
	var i; 
	if (isEmpty(s)) return false;
	for (i = 0; i < s.length; i++) { 
		var c = s.charAt(i); 
		if (!isDigit(c)) return false; 
	} 
	return true; 
} 

function isEmpty(s) { 
	return ((s == null) || (s.length == 0)) 	
} 

function isDigit (c) { 
	return ((c >= "0") && (c <= "9")) 
}
function trim (inputString) {
   // Removes leading and trailing spaces from the passed string. Also removes
   // consecutive spaces and replaces it with one space. If something besides
   // a string is passed in (null, custom object, etc.) then return the input.
   if (typeof inputString != "string") { return inputString; }
   var retValue = inputString;
   var ch = retValue.substring(0, 1);
   while (ch == " ") { // Check for spaces at the beginning of the string
      retValue = retValue.substring(1, retValue.length);
      ch = retValue.substring(0, 1);
   }
   ch = retValue.substring(retValue.length-1, retValue.length);
   while (ch == " ") { // Check for spaces at the end of the string
      retValue = retValue.substring(0, retValue.length-1);
      ch = retValue.substring(retValue.length-1, retValue.length);
   }
   while (retValue.indexOf("  ") != -1) { // Note that there are two spaces in the string - look for multiple spaces within the string
      retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); // Again, there are two spaces in each of the strings
   }
   return retValue; // Return the trimmed string back to the user
} // Ends the "trim" function

//End addition: Anil

// Start Utility Functions

function remove(s, t) {
  /*
  **  Remove all occurrences of a token in a string
  **    s  string to be processed
  **    t  token to be removed
  **  returns new string
  */
  i = s.indexOf(t);
  r = "";
  if (i == -1) return s;
  r += s.substring(0,i) + remove(s.substring(i + t.length), t);
  return r;
  }
  
  function Right(str, n){
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
}

function Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
}

// End Utility Functions

//GV: ADDED FOR 9244
function ValidateDateValue(iDay,iMonth,iYear)
{
	var iCurDay=0,iCurMonth=0,iCurYear=0;
	var bLeapYear = false;
	var dDate,dCurrDate;
	var doc = document.forms['Schedule'];

	if ((iMonth==2) && (iDay>29))
	{
	  return false;
    }

	if((iYear%100)==0)
	{
		bLeapYear=(((iYear%400)==0)?true:false);
	}
	else
	{
		bLeapYear=(((iYear%4)==0)?true:false);
    }
	switch (eval(iMonth))
	{
		case 1,3,5,7,8,10,12 :
			break;
		case 4,6,9,11 :
			if ((eval(iDay) < 1) || (eval(iDay) > 30))
			{
			  return false;
			}
			break;
		case 2:
			if( (bLeapYear && iDay > 29) || (!bLeapYear && iDay > 28) )
			{
			  return false;
			}
			break;
	}
	return true;
}

function ValidateDateTimeWithzone(iDay,iMonth,iYear,iHour,iMinute,sAMPM,sTimeZone,sServerDate)
{
	timezone = sTimeZone;
	iDay = Math.abs(iDay)
	iMonth = Math.abs(iMonth)
	iMonth--;
	iYear = Math.abs(iYear)
	iHour = Math.abs(iHour)
	iMinute = Math.abs(iMinute)
	if (sAMPM == "PM" && iHour < 12)
	{
		iHour += 12;			
	}

	if (sAMPM == "AM" && iHour == 12)
	{
		iHour = 00;
	}	
	if(timezone == "CENTRAL")
	{
		iHour++;
		startTime = new Date(iYear,iMonth,iDay,iHour,iMinute,00);
	}

	if(timezone == "MOUNTAIN")
	{
		iHour+=2;
		startTime = new Date(iYear,iMonth,iDay,iHour,iMinute,00);
		
	}
	if(timezone == "PACIFIC")
	{
		iHour+=3;
		startTime = new Date(iYear,iMonth,iDay,iHour,iMinute,00);		
	}
	if(timezone == "EASTERN")
	{
		startTime = new Date(iYear,iMonth,iDay,iHour,iMinute,00);
	
	}
	if (startTime < new Date(sServerDate))
	{
	    return false;
	}
	return true;
}

function validatePhoneNumbers(strPhoneNumbers)
{
    //Bug 9332 : To replace the white spaces.
    strPhoneNumbers = strPhoneNumbers.replace(/\s/g," ");
    var arrPhNos = strPhoneNumbers.split(";");
    for ( i = 0; i < arrPhNos.length ; i++)
    {
        if ( isNumber(arrPhNos[i]) )
	    {
		    // Must be precisely 10 digits if it's numeric
		    if (arrPhNos[i].length < 10)
		    {
		       
		        alert("Invalid Phone Number");
			    return false;
		    } 
		    else if (arrPhNos[i].length > 10)
		    {
		       //If the number has 11 digits & first digit is "1" then it is a domestic 
		       // number so return true other wise return false.
		        if ((arrPhNos[i].length == 11) && (arrPhNos[i].substring(0,1) == "1"))
		        {
		            return true;
		        }
		        
		        alert("Only Domestic Phone Numbers are Allowed");
			    return false;
		    }
        }  
        else 
        {
            if( validateDomesticPhone( arrPhNos[i]) == true ) {               
               return true; 
            }
            else
            {  
                alert("Phone Numbers must be entered in one of the following formats\n \t(999) 999-9999 \n or by entering the numbers only");
                return false;
            }
        }
    }
   return true; 
}

function validateDomesticPhone( locPhone )
{
	// the valid format is "(xxx) xxx-xxxx"
	//   to make things easier for the user, I'm going to edit like this
	//	read it like standard syntax format:
	//  [(]xxx[)][space]xxx[-]xxxx
	// 
	//  that means the shortest valid formatted value is: xxxxxxxxxx
	//  the longest valid formatted value is: (xxx) xxx-xxxx
         
	locPhone = locPhone.replace(/\s/g, "");
	var oldValue = locPhone   
	if (locPhone.length == 0)
	{
		return true
	}
	if ( isNumber(locPhone) )
	{
		// Must be precisely 10 digits if it's numeric
		if (locPhone.length != 10)
		{
		 //   alert("Only Domestic Numbers are allowed");
			return false
		}
		locPhone = "(" + locPhone.substring(0,3) + ") "
				 + locPhone.substring(3,6) + "-"
				 + locPhone.substring(6,10)

		return true
	}
	else
	{
		// here we go...
		var newValue = "("
		var leftParen = false
		var rightParen = false
		var digitCnt = 0

		for (var i=0; i < locPhone.length; i++)
		{
			if (locPhone.substring(i,i+1) == "(" )
			{
				if ( leftParen || (i != 0) )
				{
					return false
				}
				else
				{
					leftParen = true
				}
			}
			else if (locPhone.substring(i, i+1) == ")" )
			{
				if ( rightParen || (i != 4)  || (! leftParen) )
				{
					return false
				}
				else
				{
					rightParen = true
				}
			}
			else if ( (locPhone.substring(i, i+1) == "-")
			          || (locPhone.substring(i, i+1) == " ") )
			{
				// okay - I'll strip out the white space and dashes
			}
			else
			{
				//okay - make sure it's numeric 
				if ( ! (isNumber(locPhone.substring(i, i+1))) )
				{
					return false
				}

				digitCnt++

				if (digitCnt > 10)
				{
					return false
				}
				else if (digitCnt == 7)
				{
					newValue += "-"
				}

				newValue += locPhone.substring(i, i+1)

				if (digitCnt == 3)
				{
					newValue += ") "
				}
			}
		}
		if (digitCnt < 10)
		{
			return false
		}
		return true
	}
}