var defaultEmptyOK = false


//Check for the field contains only Digits
function onlyDigits(e) {
         var _ret = true;
      
         if (window.event.keyCode <= 47 || window.event.keyCode > 57) {
         window.event.keyCode = 0;
         _ret = false;
             alert("Only Numeric Allowed");
         }
         return (_ret);
 }
     
//To trim white spaces
function Trim(TRIM_VALUE) {
   if (TRIM_VALUE.length < 1) {
        return"";
    }
    TRIM_VALUE = RTrim(TRIM_VALUE);
    TRIM_VALUE = LTrim(TRIM_VALUE);
    if (TRIM_VALUE == "") {
        return "";
    }
    else {
        return TRIM_VALUE;
    }
}


//To trim white spaces in right side of a field
function RTrim(VALUE) {
    var w_space = String.fromCharCode(32);
    var v_length = VALUE.length;
    var strTemp = "";
    if (v_length < 0) {
        return"";
    }
    var iTemp = v_length - 1;
    while (iTemp > -1) {
      if (VALUE.charAt(iTemp) == w_space) {
        }
        else {
            strTemp = VALUE.substring(0, iTemp + 1);
              break;
        }
        iTemp = iTemp - 1;
    }
    return strTemp;

}

//To trim white spaces in left side of a field
function LTrim(VALUE) {
   var w_space = String.fromCharCode(32);
    if (v_length < 1) {
        return"";
    }
    var v_length = VALUE.length;
    var strTemp = "";

    var iTemp = 0;

    while (iTemp < v_length) {
    if (VALUE.charAt(iTemp) == w_space) {
      }
        else {
            strTemp = VALUE.substring(iTemp, v_length);
            break;
        }
        iTemp = iTemp + 1;
    }
    return strTemp;
}

//Checks whether the field is Empty or not
function isEmpty(s)
{   
	return ((s == null) || (s.length == 0))
}

//Funtion to create  an array.
function makeArray(n) {
   for (var i = 1; i <= n; i++) {
      this[i] = 0
   }
   return this
}

//Checks corresponding character is a Digit or not
function isDigit(c)
{   return ((c >= "0") && (c <= "9"))
}

//Checks the passed string is integer or not
function isInteger(s)
{
    var i;
    if (isEmpty(s))
       if (isInteger.arguments.length == 1) return defaultEmptyOK;
       else return (isInteger.arguments[1] == true);

    for (i = 0; i < s.length; i++)
    {
        var c = s.charAt(i);
        if (!isDigit(c)) return false;
    }

    return true;
}

var daysInMonth = makeArray(12);
daysInMonth[1] = 31;
daysInMonth[2] = 29;
daysInMonth[3] = 31;
daysInMonth[4] = 30;
daysInMonth[5] = 31;
daysInMonth[6] = 30;
daysInMonth[7] = 31;
daysInMonth[8] = 31;
daysInMonth[9] = 30;
daysInMonth[10] = 31;
daysInMonth[11] = 30;
daysInMonth[12] = 31;

//************UNUSED
function isIntegerInRange(s, a, b)
{   if (isEmpty(s))
       if (isIntegerInRange.arguments.length == 1) return defaultEmptyOK;
       else return (isIntegerInRange.arguments[1] == true);

    if (!isInteger(s, false)) return false;

    var num = parseInt (s);
    return ((num >= a) && (num <= b));
}

//Character Month Checking like (Jan,Feb,Mar etc...);
function isMonthChar(s) {
    var i;
    s = s.toUpperCase();
    var isCharMonth = makeArray(12);
    isCharMonth[1] = "JAN";
    isCharMonth[2] = "FEB";
    isCharMonth[3] = "MAR";
    isCharMonth[4] = "APR";
    isCharMonth[5] = "MAY";
    isCharMonth[6] = "JUN";
    isCharMonth[7] = "JUL";
    isCharMonth[8] = "AUG";
    isCharMonth[9] = "SEP";
    isCharMonth[10] = "OCT";
    isCharMonth[11] = "NOV";
    isCharMonth[12] = "DEC";

    for (i = 0; i <= 12; i++) {
        if (isCharMonth[i] == s) {
            return i;
        }
    }
    return 0;
}

//checks for passed string is a proper year or not
function isYear(s)
{
    if (isEmpty(s))
       if (isYear.arguments.length == 1) return defaultEmptyOK;
       else return (isYear.arguments[1] == true);

    if (!isNonnegativeInteger(s)) return false;
    return ((s.length == 2) || (s.length == 4));
}

//
function isSignedInteger(s)
{   if (isEmpty(s))
       if (isSignedInteger.arguments.length == 1) return defaultEmptyOK;
       else return (isSignedInteger.arguments[1] == true);

    else {
        var startPos = 0;
        var secondArg = defaultEmptyOK;

        if (isSignedInteger.arguments.length > 1)
            secondArg = isSignedInteger.arguments[1];

        if ( (s.charAt(0) == "-") || (s.charAt(0) == "+") )
           startPos = 1;
        return (isInteger(s.substring(startPos, s.length), secondArg))
    }
}

//
function isNonnegativeInteger(s)
{   var secondArg = defaultEmptyOK;

    if (isNonnegativeInteger.arguments.length > 1)
        secondArg = isNonnegativeInteger.arguments[1];

    return (isSignedInteger(s, secondArg)
         && ( (isEmpty(s) && secondArg)  || (parseInt (s) >= 0) ) );
}

//Check for passed string is month or not
function isMonth(s)
{
    if (isEmpty(s))
       if (isMonth.arguments.length == 1) return defaultEmptyOK;
       else return (isMonth.arguments[1] == true);
    return isIntegerInRange(s, 1, 12);
}

//Check for passed string is day or not
function isDay(s)
{   if (isEmpty(s))
       if (isDay.arguments.length == 1) return defaultEmptyOK;
       else return (isDay.arguments[1] == true);
    return isIntegerInRange(s, 1, 31);
}

//
function isDate(year, month, day)
{
    isDay(day,false);

    if (! (isYear(year, false) && isMonth(month, false) && isDay(day, false)))        return false;
    
    var intYear = parseInt(year);
    var intMonth = parseInt(month);
    var intDay = parseInt(day);

    if (intDay > daysInMonth[intMonth]) return false;
    if ((intMonth == 2) && (intDay > daysInFebruary(intYear))) return false;

    return true;
}

//Check the number of days in february month for year specified
function daysInFebruary(year)
{
    return (((year % 4 == 0) && (!(year % 100 == 0) || (year % 400 == 0) ) ) ? 29 : 28 );
}

//
function checkdate(dateval)
{
    if(dateval.length!=9)
        return false;
    var etaDateVal = dateval;
    var sep1 = etaDateVal.indexOf('-');
    var sep2 = etaDateVal.lastIndexOf('-');
    var temp = sep1 + 1;
    var temp2 = sep2 + 1;
    var etaDatelen = etaDateVal.length;
    var day = etaDateVal.substring(0, sep1);
    var month = etaDateVal.substring(temp, sep2);
    var year = etaDateVal.substring(temp2, etaDatelen);
    var yearlen = year.length;

    var i = isMonthChar(month);

    if (isDate(year, i, day) && (yearlen == 2)) {
        return true;
    } else
    {
        return false;
    }
}

var digits = "0123456789";

var lowercaseLetters = "abcdefghijklmnopqrstuvwxyz"

var uppercaseLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"


var whitespace = " \t\n\r";
var phoneNumberDelimiters = "()- ";
var validUSPhoneChars = digits + phoneNumberDelimiters;

var validWorldPhoneChars = digits + phoneNumberDelimiters + "+";

var SSNDelimiters = "- ";

var validSSNChars = digits + SSNDelimiters;
var digitsInSocialSecurityNumber = 9;
var digitsInUSPhoneNumber = 10;
var ZIPCodeDelimiters = "-";
var ZIPCodeDelimeter = "-"
var validZIPCodeChars = digits + ZIPCodeDelimiters
var digitsInZIPCode1 = 5
var digitsInZIPCode2 = 9
var creditCardDelimiters = " "
var mPrefix = "You did not enter a value into the "
var mSuffix = " field. This is a required field. Please enter it now."


var sUSLastName = "Last Name"
var sUSFirstName = "First Name"
var sWorldLastName = "Family Name"
var sWorldFirstName = "Given Name"
var sTitle = "Title"
var sCompanyName = "Company Name"
var sUSAddress = "Street Address"
var sWorldAddress = "Address"
var sCity = "City"
var sStateCode = "State Code"
var sWorldState = "State, Province, or Prefecture"
var sCountry = "Country"
var sZIPCode = "ZIP Code"
var sWorldPostalCode = "Postal Code"
var sPhone = "Phone Number"
var sFax = "Fax Number"
var sDateOfBirth = "Date of Birth"
var sExpirationDate = "Expiration Date"
var sEmail = "Email"
var sSSN = "Social Security Number"
var sCreditCardNumber = "Credit Card Number"
var sOtherInfo = "Other Information"

var iStateCode = "This field must be a valid two character U.S. state abbreviation (like CA for California). Please reenter it now."
var iZIPCode = "This field must be a 5 or 9 digit U.S. ZIP Code (like 94043). Please reenter it now."
var iUSPhone = "This field must be a 10 digit U.S. phone number (like 415 555 1212). Please reenter it now."
var iWorldPhone = "This field must be a valid international phone number. Please reenter it now."
var iSSN = "This field must be a 9 digit U.S. social security number (like 123 45 6789). Please reenter it now."
var iEmail = "This field must be a valid email address (like foo@bar.com). Please reenter it now."
var iCreditCard = "This field must be a valid credit card number. Please reenter it now."
var iCreditCardPrefix = "This is not a valid "
var iCreditCardSuffix = " credit card number. (Click the link on this form to see a list of sample numbers.) Please reenter it now."
var iDay = "This field must be a day number between 1 and 31.  Please reenter it now."
var iMonth = "This field must be a month number between 1 and 12.  Please reenter it now."
var iYear = "This field must be a 2 or 4 digit year number.  Please reenter it now."
var iDatePrefix = "The Day, Month, and Year for "
var iDateSuffix = " do not form a valid date.  Please reenter them now."
var iDate = "This field must be a valid date. Please reenter it now."

var iInteger = "This field must be a whole number value. Please reenter it now."
var iPositiveInteger = "This field must be a positive whole number value. Please reenter it now."
var iAlphabetic = "This field must contain only letters. Please reenter it now."
var iNumber = "This field must contain only numeric values. Please reenter it now."
var iCustom = "Invalid value.  Please reenter."

var pEntryPrompt = "Please enter a "
var pStateCode = "2 character code (like CA)."
var pZIPCode = "5 or 9 digit U.S. ZIP Code (like 94043)."
var pUSPhone = "10 digit U.S. phone number (like 415 555 1212)."
var pWorldPhone = "international phone number."
var pSSN = "9 digit U.S. social security number (like 123 45 6789)."
var pEmail = "valid email address (like foo@bar.com)."
var pCreditCard = "valid credit card number."
var pDay = "day number between 1 and 31."
var pMonth = "month number between 1 and 12."
var pYear = "2 or 4 digit year number."

var defaultEmptyOK = false

var isCharMonth = makeArray(12);
isCharMonth[1] = "JAN";
isCharMonth[2] = "FEB";
isCharMonth[3] = "MAR";
isCharMonth[4] = "APR";
isCharMonth[5] = "MAY";
isCharMonth[6] = "JUN";
isCharMonth[7] = "JUL";
isCharMonth[8] = "AUG";
isCharMonth[9] = "SEP";
isCharMonth[10] = "OCT";
isCharMonth[11] = "NOV";
isCharMonth[12] = "DEC";







var daysInMonth = makeArray(12);
daysInMonth[1] = 31;
daysInMonth[2] = 29;   // must programmatically check this
daysInMonth[3] = 31;
daysInMonth[4] = 30;
daysInMonth[5] = 31;
daysInMonth[6] = 30;
daysInMonth[7] = 31;
daysInMonth[8] = 31;
daysInMonth[9] = 30;
daysInMonth[10] = 31;
daysInMonth[11] = 30;
daysInMonth[12] = 31;

var USStateCodeDelimiter = "|";
var USStateCodes = "AL|AK|AS|AZ|AR|CA|CO|CT|DE|DC|FM|FL|GA|GU|HI|ID|IL|IN|IA|KS|KY|LA|ME|MH|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|MP|OH|OK|OR|PW|PA|PR|RI|SC|SD|TN|TX|UT|VT|VI|VA|WA|WV|WI|WY|AE|AA|AE|AE|AP"

//
function isWhitespace(s){   
	var i;

    if (isEmpty(s)) return true;

    for (i = 0; i < s.length; i++)
    {
        var c = s.charAt(i);

        if (whitespace.indexOf(c) == -1) return false;
    }

    return true;
}

//
function stripCharsInBag(s, bag)

{   var i;
    var returnString = "";

    for (i = 0; i < s.length; i++)
    {
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }

    return returnString;
}

//Allows blanks as well as letters
function isLetter(c)
{  
	return ( ((c >= "a") && (c <= "z")) || ((c >= "A") && (c <= "Z")) || (c==" "))
}

//
function reformat (s) {   
    var arg;
    var sPos = 0;
    var resultString = "";

    for (var i = 1; i < reformat.arguments.length; i++) {
       arg = reformat.arguments[i];
       if (i % 2 == 1) resultString += arg;
       else {
           resultString += s.substring(sPos, sPos + arg);
           sPos += arg;
       }
    }
    return resultString;
}

//
function isvalidEmailChar(s)
{   var i;

    for (i = 0; i < s.length; i++)
    {
        var c = s.charAt(i);

        if (! (isLetter(c) || isDigit(c) || (c=='@') || (c=='.') || (c=='_') || (c=='-')) ) {
       	return false;
		}
    }

    return true;
}

//
function warnInvalid(theField, s)
{   theField.focus()
    theField.select()
    alert(s)
    return false
}

function reformatUSPhone(USPhone)
{   
	return (reformat (USPhone, "(", 3, ") ", 3, "-", 4))
}

// Date of format month/day/year
function checkUSDate(theField, emptyOK) {   
    if (checkUSDate.arguments.length == 1) emptyOK = defaultEmptyOK;
    if ((emptyOK == true) && (isEmpty(theField.value))) return true;
    
    if (theField.value==null) return defaultEmptyOK;
     
    sArray = theField.value.split("/")
    
    if ( (sArray.length < 3) || (sArray.length > 3))
        sArray = theField.value.split("-")
    
    if ( (sArray.length < 3) || (sArray.length > 3))
        return warnInvalid (theField, iDate);        
    
    month = sArray[0];
    day = sArray[1];
    year = sArray[2];

    if (isDate(year, month, day))
        return true;
    else
       return warnInvalid (theField, iDate);        
}


// For backward-compatibility
function checkDate(theField, emptyOK) {
    return checkUSDate(theField, emptyOK)
}


//
function isEmail(s)
{   if (isEmpty(s))
       if (isEmail.arguments.length == 1) return defaultEmptyOK;
       else return (isEmail.arguments[1] == true);

    if (isWhitespace(s)) return false;
    if (!isvalidEmailChar(s)) return false;

    atOffset = s.lastIndexOf('@');

    dotOffset = s.indexOf('.');	  //Added
     
   
         
    if ( atOffset < 1 || dotOffset == 0)  //Modified
        return false;
    else {
                           
           atOffsetN = s.indexOf('@');
           dotOffsetN = s.lastIndexOf('.');	//Added
           
           if((atOffset == atOffsetN)) {
               	dotOffset = s.indexOf('.', atOffset);
        	
		if ( dotOffset < atOffset + 2 || 
		     dotOffset > s.length - 2 ||
		     ((dotOffsetN+1) == s.length)) {
                   return false;
	         }
	     }else{
	     return false;
	     }
      }
   return true;
}

//
function dateDiff(from,to)
{ 
	var sep1 = from.indexOf('-');
	var sep2 = from.lastIndexOf('-');
	var temp = sep1 + 1;
	var temp2 = sep2 + 1;
	var len = from.length;
	var day = from.substring(0,sep1);
	var month = from.substring(temp,sep2);
	var year = from.substring(temp2,len);
        if(year <= 50 )
		year = "20"+year;
	 else
		year = "19"+year;
	month = isMonthChar(month);	
	var sep11 = to.indexOf('-');
	var sep12 = to.lastIndexOf('-');
	var temp11 = sep11 + 1;
	var temp12 = sep12 + 1;
	var toLen = to.length;
	var dayTo = to.substring(0,sep11);
	var monthTo = to.substring(temp11,sep12);
	var yearTo = to.substring(temp12,toLen);
	if(yearTo <= 50 )
		yearTo = "20"+yearTo;
	else
		yearTo = "19"+yearTo;	
	monthTo = isMonthChar(monthTo);	
	var changedFrom = new Date(year,month-1,day);
	var changedTo = new Date(yearTo,monthTo-1,dayTo);
	var difference = changedTo.getTime() - changedFrom.getTime();
	var daysDiff = Math.floor(difference/1000/60/60/24);
        return daysDiff;
}
 
//
function checkTime(theTime)
{
	v_theMinutes = theTime.substring(2,4);
	v_theHours = theTime.substring(0,2);	
	i_theMinutes = parseInt(v_theMinutes);
	i_theHours = parseInt(v_theHours);

	if(theTime.length != 4){
		return false;
	}else{
		if((i_theMinutes > 59) || (i_theHours > 23)){
			return false;
		}else{
			return true;
		}
	}
}

//
function isMinutes(s) {
  if(isInteger(s) &&  parseInt(s) <= 60  ) {
	return true;
  }
   return false;   
}

//
function isHours(s) {
  if(isInteger(s) &&  parseInt(s) <= 24  ) {
	return true;
  }
   return false;   
}



//
function isDateFormat(data) {   
     //alert("ETA Date is:"+data);
	// var data = "10-Jan-00 10:30";
      day = data.substr(0,2);
      if(day <= 9) day = day.substr(1,1);
      month = data.substr(3,3);
      year = data.substr(7,2);
      month = isMonthChar(month);
  	alert("Day :"+day+", Month :"+month+", Year :"+year+", Hour :"+hou+", Min :"+min);
  	if(isDate(year,month,day))  {
		return true;  	     
  	}else{
  	       return false;
  	}

 }


   function pastDate_Old(etaDate){
    if(etaDate.length!=9)
        return false;
        //ETA Date Split Variables
        eday = etaDate.substr(0,2);
        emonth = etaDate.substr(3,3);

        //01-JAN-0000 10:10 
        if(etaDate.length == 17) {
        
        eyear = etaDate.substr(7,4);
        ehou = etaDate.substr(12,2)
        emin = etaDate.substr(15,2)
        yearis = eyear + " ";
        }
        //01-JAN-0000
        if(etaDate.length == 11) {
        
        eyear = etaDate.substr(7,4);
        yearis = eyear + " ";
        ehou = "";
        emin = "";
        }
        //01-JAN-00
        if(etaDate.length == 9) {
        
        eyear = etaDate.substr(7,2);
        if(eyear < 50 )
	   yearis = "20"+eyear+" ";
	 
	 if(eyear > 50 )
	    yearis = "19"+eyear+" ";
 
        ehou = "";
        emin = "";
        }

  
    emonth = isMonthChar(emonth);
    
	    
  var today = new Date(); // today
 if(ehou.length == 0)
   ehou = "00";
 if(emin.length == 0)
   emin = "00";
  
  var hhmmss = ehou+":"+emin+":00";
   
 

 
  armonth = new Array("January ","February ","March ","April ","May ","June ","July ","August ","September ", "October ","November ","December ");
  var date = new Date(armonth[emonth-1]+eday+", "+yearis+hhmmss); // your ETA Date
  
  var diff = date.getTime() - today.getTime();
  var days = Math.floor(diff / (1000 * 60 * 60 * 24));
 
  if(days >= 0) {   //past date info
     return false;
  }
  return true;
   }  

// Function to Check To Date greater than From Date Pnr 07-jul-01
function ToDateChk(frmDate,toDate){
    if(frmDate.length!=9||toDate.length!=9)
        return false;
  //To Date Split Variables
  
  tday = toDate.substr(0,2);
  
  fday = frmDate.substr(0,2);
  
  tmonth = toDate.substr(3,3);
  
  fmonth = frmDate.substr(3,3);
  
  if(frmDate.length == 9) {
  
    fyear = frmDate.substr(7,2);
    fyearis = fyear + " ";
  }
  if(toDate.length == 9) {
  
    tyear = toDate.substr(7,2);   
    tyearis = tyear + " ";
  }
 if(frmDate.length == 9) {
  
    fyear = frmDate.substr(7,4);
    fyearis = fyear + " ";
  }
if(toDate.length == 9) {
       
    tyear = toDate.substr(7,4);
    tyearis = tyear + " ";
  }
  if(frmDate.length == 9) {
    fyear = frmDate.substr(7,2);
    if(fyear < 50 )
	   fyearis = "20"+fyear+" ";
	 
	if(fyear > 50 )
	  fyearis = "19"+fyear+" ";
  }
  if(toDate.length == 9) {
    tyear = toDate.substr(7,2);
    if(tyear < 50 )
	   tyearis = "20"+tyear+" ";
	 
	if(tyear > 50 )
	  tyearis = "19"+tyear+" ";
  }
  
  tmonth = isMonthChar(tmonth);
  fmonth = isMonthChar(fmonth);
  	      
  armonth = new Array("January ","February ","March ","April ","May ","June ","July ","August ","September ", "October ","November ","December ");

 var date = new Date(armonth[tmonth-1]+tday+", "+tyearis); // your To Date
  var date1 = new Date(armonth[fmonth-1]+fday+", "+fyearis); // your Frm Date
 
  var diff = date.getTime() - date1.getTime();

  var days = Math.floor(diff / (1000 * 60 * 60 * 24));

  
  if(days >= 0) {   //past date info
     return true;
  }
  else
  {
    return false;
  }
}  


   

function loadAgents(objName) 
{
	var objElement=  document.getElementById(objName);
	for(i=0;i<agentNames.length;i++) 
	{
	  objElement.options[objElement.length] = new Option(agentNames[i],agentCodes[i]);
	}
}


function checkLeap(year){
    if((year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0)) ){
        return 29;
    }else{
        return 28;
    }
}
	
function validateDay(month,day,aremonthsequal,currentdate,year){		
    var noofdays = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
    if(month == 1){
        noofdays[1] = checkLeap(year);						
    }
    if((day > 0) && (day <= noofdays[month])){
        if(aremonthsequal == 1){
            if(day >= currentdate) return true;
            else{
                alert("Date should be greater or equal to todays date!");
                return false;
            }
        }
        else return true;     		
    }
    else{
        if(day > noofdays[month]){
            alert("Date should be less than or equal to "+noofdays[month]);
        }
        if(day < 0){
            alert("Date should be greater than 0");				
        }
         return false;
    }
}
	
function validateTheDate(date){
    var monthsarray = new Array("JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC");		
    var currentdate= new Date();
    var currentyear = currentdate.getFullYear();
    var whichmonth,aremonthsequal;
    aremonthsequal = 0;
    day = date.substring(0,2);
    month = date.substring(3,6);
    year = date.substring(7,9);
    if(date.length == 9){
        if(date.indexOf("-") == -1){
            alert("Enter Date in Valid Format (DD-MON-YY)");
            return false;
        }
        if(currentyear <= ("20" + year)){
            whichmonth = -1;
            for(var i =0;i < 12;i++){
                if(month == monthsarray[i]) whichmonth = i;
            }
            if(whichmonth == -1){
                alert("Not a valid Month");
                return false;
            }
            currentmonth = currentdate.getMonth();
            if(("20" + year) == currentyear){
                if((whichmonth >= 0) && (whichmonth >= currentmonth)){				
                    if(whichmonth == currentmonth)  aremonthsequal = 1;
                    
                    if(("20" + year) > currentyear) aremonthsequal = 0;
                    
                    if(validateDay(whichmonth,day,aremonthsequal,currentdate.getDate(),year)) return true;
                }
                else{						
                    alert("The Month should be equal or greater to current month!");
                    month=false;
                }
            }
            else{
                if(validateDay(whichmonth,day,0,currentdate.getDate(),year)) return true;                					
            }	
        }
        else{
            alert("The year should be equal or greater!");
            return false;
        }
    }
    else{
        if(date.length == 0){
            alert("Validity Date is must");
            return false;
        }
        else{
            alert("Enter Date in Valid Format (DD-MON-YY)");
            return false;
        }
    }
}