<!-- Hide script from older browsers
// JavaScript Document

function strRtrim(strToTrim)
{
  var spaceBar  = String.fromCharCode(32);  var lineFeed  = String.fromCharCode(13);  var returnKey = String.fromCharCode(10);
  var strLenght = strToTrim.length;  var iTemp;  var strTemp   = "";
  if(strLenght < 1) return false;
  iTemp = strLenght -1;

  while(iTemp > -1)
  {
    if(strToTrim.charAt(iTemp) == spaceBar || strToTrim.charAt(iTemp) == lineFeed || strToTrim.charAt(iTemp) == returnKey )
    {
		//do nothing
    }
    else
    {
      strTemp = strToTrim.substring(0,iTemp +1);
      break;
    }
    iTemp = iTemp-1;
  } //End While
  return strTemp;
}//End Function strRtrim()
//*****************************************//
function strLtrim(strToTrim)
{
  var spaceBar  = String.fromCharCode(32);  var lineFeed  = String.fromCharCode(13);  var returnKey = String.fromCharCode(10);
  var strLenght = strToTrim.length;  var iTemp;  var strTemp    = "";  
  if(strLenght < 1) return false;

  iTemp = 0;
  while(iTemp < strLenght)
  {
    if(strToTrim.charAt(iTemp) == spaceBar || strToTrim.charAt(iTemp) == lineFeed || strToTrim.charAt(iTemp) == returnKey )
    {
		//do nothing
    }
    else
	{
     strTemp = strToTrim.substring(iTemp,strLenght);
     break;
    }
    iTemp = iTemp + 1;
  } //End While
  return strTemp;
} //End Function strLtrim()
//*****************************************//
function strTrim(strToTrim)
{
  var strLenght = strToTrim.length;
  if(strLenght < 1) return false;
  else if(!strLtrim(strToTrim)) return false;
  else if(!strRtrim(strToTrim)) return false;
  else
  {	 
   strToTrim = strLtrim(strToTrim); strToTrim = strRtrim(strToTrim);
   if( strToTrim.length < 1)
     {
	   return false;
     }
     return true;
  }
} //End Function strTrim()
//*****************************************//
function emailvalidator(str) {
   var at="@";   var dot=".";   var lat=str.indexOf(at);   var lstr=str.length;  var ldot=str.indexOf(dot);
   if (str.indexOf(at)==-1){ 
   //alert("Invalid E-mail ID");   
   return false; }
   if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   //alert("Invalid E-mail ID")
		   return false; }
   if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
	   //alert("Invalid E-mail ID")
	   return false; }
   if (str.indexOf(at,(lat+1))!=-1){
	   //alert("Invalid E-mail ID")
	   return false; }
   if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
	   alert("Invalid E-mail ID");
	   return false; }
   if (str.indexOf(dot,(lat+2))==-1){
	   //alert("Invalid E-mail ID");
	   return false; }
   if (str.indexOf(" ")!=-1){
	   //alert("Invalid E-mail ID");
	   return false; }
   return true; }
//*****************************************//
function comparePassword(passphrase,passphrase2)
{
 if (passphrase == "") 
 {
  return false
 }
 if (passphrase != passphrase2) 
  {
   return false
  }
   return true
}
//*****************************************//
function isNum(passedVal) 
{
 if (passedVal == "") 
 {
  return false
 }
// var passedVal = passedVal.split("/");
 var passedVal = passedVal.replace("-",'');
 for (i=0; i<passedVal.length; i++) 
 {
  if (passedVal.charAt(i) < "0") 
  {
   return false
  }
  if (passedVal.charAt(i) > "9") 
  {
   return false
  }
 }
 return true
}
//*****************************************//
function validZip(inZip) 
{
  if (inZip == "") 
  {
  return false
  }
  if (isNum(inZip)) 
  {
  return true
  }
  return false
}
//*****************************************//
function cc0CharCheck(strCCType,char0)
{
     if(strCCType == "Visa")
			{
				//check to see if its between 13 and 16 digits in length and  make sure that the first digit is a 4
				if (char0.charAt(0) != 4)
				{
					alert("Invalid "+ strCCType +" Credit Card Number! "); return false;
				}
			}
		if(strCCType == "Amex")
			{
				var strFirstTwoDigits = char0.substring(0,2);
				if(strFirstTwoDigits == 34 || strFirstTwoDigits == 37){ var donothing; }
				else { alert("Invalid "+ strCCType +" Credit Card Number! ");return false; }
			}
		if(strCCType == "MasterCard")
			{
			 var strFirstTwoDigits = char0.substring(0,2);
			 if(strFirstTwoDigits == 51 || strFirstTwoDigits == 52 || strFirstTwoDigits == 53 || strFirstTwoDigits == 54 || strFirstTwoDigits == 55)
			 { var donothing; }
			 else { alert("Invalid "+ strCCType +" Credit Card Number! "); return false; }

			}
		if(strCCType == "Discover")
			{
				var strFirstFourDigits = char0.substring(0,4);
				if(strFirstFourDigits == 6011){ var donothing; }
				else { alert("Invalid "+ strCCType +" Credit Card Number! ");return false; }
			}
	return true;
}
//******************************************//
function dNow()
{
	var d = new Date(); var DayDay,DayMon,DayYearMon;
	var curr_date = d.getDate(); if(curr_date <= 9){ DayDay = '0'+ String(curr_date); }else{ DayDay = curr_date;  }
	var curr_month = d.getMonth(); if(curr_month <= 9){ DayMon = '0'+ String(curr_date); }else{ DayMon = curr_month; }
	var curr_year = d.getFullYear(); DayYearMon = String(curr_year) + String(DayMon);
	return DayYearMon;
}

//*****************************************//
function ccCheck(strFORM)
{
	   var strCCType,intCC1,intCC2,intCC3,intCC4,intCC5,intCC6,intCC7,intEXPM,intEXPY;
		 strCCType = strFORM.CardType; 
		 intEXPM = strFORM.expMonth; intEXPY = strFORM.expYear; strEXP = String(intEXPM.value) + String(intEXPY.value); 
		 intCC1 = strFORM.cc1; intCC2 = strFORM.cc2; intCC3 = strFORM.cc3; intCC4 = strFORM.cc4; 
		 intCC5 = strFORM.cc5; intCC6 = strFORM.cc6; intCC7 = strFORM.cc7;
		 
		if(strCCType.value == "Visa")
		{
				//check to see if its between 13 and 16 digits in length and  make sure that the first digit is a 4
				if (intCC1.value.charAt(0) != 4) { alert("Invalid "+ strCCType.value +" Credit Card Number! "); return false; }
		}else{ /*  nothing */ }
		
		if(strCCType.value == "Amex")
		{
				var strFirstTwoDigits = intCC5.value.substring(0,2);
				if(strFirstTwoDigits == 34 || strFirstTwoDigits == 37){ var donothing; }
				else { alert("Invalid "+ strCCType.value +" Credit Card Number! ");return false; }
		}else{ /*  nothing */ }
		
		if(strCCType.value == "MasterCard")
		{
			 var strFirstTwoDigits = intCC1.value.substring(0,2);
			 if(strFirstTwoDigits == 51 || strFirstTwoDigits == 52 || strFirstTwoDigits == 53 || strFirstTwoDigits == 54 || strFirstTwoDigits == 55)
			 { var donothing; }
			 else { alert("Invalid "+ strCCType.value +" Credit Card Number! "); return false; }
		}else{ /*  nothing */ }
		
		if(strCCType.value == "Discover")
		{
				var strFirstFourDigits = intCC1.value.substring(0,4);
				if(strFirstFourDigits == 6011){ var donothing; }
				else { alert("Invalid "+ strCCType.value +" Credit Card Number! ");return false; }
		}else{ /*  nothing */ }
		
		if(strCCType.value == "Amex")
		{
			if (!validZip(intCC5.value)) { alert("You must enter an valid credit card number "); intCC5.focus(); return false; }
			if (!validZip(intCC6.value)) { alert("You must enter an valid credit card number "); intCC6.focus(); return false; }
			if (!validZip(intCC7.value)) { alert("You must enter an valid credit card number "); intCC7.focus(); return false; }
			if (!validZip(intEXPM.value)) { alert("You must enter an valid expiration date "); intEXPM.focus(); return false; }
			if (!validZip(intEXPY.value)) { alert("You must enter an valid expiration date "); intEXPY.focus(); return false; }
		}
		else
		{
			if (!validZip(intCC1.value)) { alert("You must enter an valid credit card number "); intCC1.focus(); return false; }
			if (!validZip(intCC2.value)) { alert("You must enter an valid credit card number "); intCC2.focus(); return false; }
			if (!validZip(intCC3.value)) { alert("You must enter an valid credit card number "); intCC3.focus(); return false; }
			if (!validZip(intCC4.value)) { alert("You must enter an valid credit card number "); intCC4.focus(); return false; }
			if (!validZip(intEXPM.value)) { alert("You must enter an valid expiration date "); intEXPM.focus(); return false; }
			if (!validZip(intEXPY.value)) { alert("You must enter an valid expiration date "); intEXPY.focus(); return false; }
		}
		
	return true;
}
//*****************************************//
function bfValidate(passForm) 
{
	re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
	//if (passForm.Email.value == "") { alert("You must enter a Email Address ");
	//  passForm.Email.focus(); return false; }
    //if(!emailvalidator(passForm.Email.value)) {	alert("You must enter a valid Email Address ");
	//	passForm.Email.focus();	return false; }
	//if (passForm.passphrase.value == "") {  alert("You must enter a Password ");
	//  passForm.passphrase.focus(); return false; }
	//if (!comparePassword(passForm.passphrase.value,passForm.retypepassphrase.value)) { alert("Password mismatch ");
	 // passForm.retypepassphrase.focus(); return false; }
	if (passForm.FirstName.value == "") { alert("You must your First Name ");
	  passForm.FirstName.focus();  return false; }
	if (passForm.LastName.value == "") { alert("You must your Last Name ");
	  passForm.LastName.focus(); return false; }
	if (passForm.Address.value == ""){ alert("You must enter an Address ");
	  passForm.Address.focus(); return false; }
	if (passForm.City.value == "") { alert("You must enter an City ");
	  passForm.City.focus(); return false; }
	if(passForm.Country.value == "") { alert("You must enter an Country ");
	     passForm.Country.focus(); return false; }
		 
   if(passForm.Country.value == "US" || passForm.Country.value == "CA")
   {
		if (passForm.Zipcode.value == "") { alert("You must enter an Zipcode ");
		  passForm.Zipcode.focus();	  return false; }
		if(passForm.Country.value == "US")
		{
		  if (!validZip(passForm.Zipcode.value)) { alert("You must enter an valid Zipcode ");
		       passForm.Zipcode.focus(); return false; }
		}
		if(passForm.State.value == "") {  alert("You must select an State ");
			 passForm.State.focus(); return false; }
   }

	if (passForm.DayPhone.value == "") { alert("You must enter an Phone Number ");
	  passForm.DayPhone.focus(); return false; }
    if(passForm.shFirstName.value == "") { alert("You must enter an shipping contact First Name ");
	     passForm.shFirstName.focus(); return false; }
	if(passForm.shLastName.value == "") { alert("You must enter an  shipping contact Last Name ");
	     passForm.shLastName.focus(); return false; }
	if(passForm.shAddress.value == "") { alert("You must enter an shipping address ");
	     passForm.shAddress.focus(); return false; }
	if(passForm.shCity.value == "") { alert("You must enter an shipping City ");
			 passForm.shCity.focus(); return false; }
	if(passForm.shCountry.value == "") { alert("You must enter an shipping Country ");
	     passForm.shCountry.focus(); return false; }
		 
	if(passForm.shCountry.value == "US" || passForm.shCountry.value == "CA")
	{
		if(passForm.shState.value == "") {  alert("You must select an shipping State ");
			 passForm.shState.focus(); return false; }
		if(passForm.shZipcode.value == "") { alert("You must enter an shipping Zipcode ");
			 passForm.shZipcode.focus(); return false; }
		if(passForm.Country.value == "US")
		{
		   if (!validZip(passForm.shZipcode.value)) { alert("You must enter an valid shipping Zipcode ");
			    passForm.shZipcode.focus(); return false; }
		}
    }
	
	if(passForm.NameOnCard.value == "") { alert("You must enter name as is on card ");
	     passForm.NameOnCard.focus(); return false; }

	if(passForm.CardType.value == "" || passForm.CardType.value == 0) { alert("You must select a card type ");
	     passForm.CardType.focus(); return false; }
	
	
	if (!validZip(passForm.expMonth.value)) { alert("You must select a expiration month ");
	     passForm.expMonth.focus(); return false; }
	if (!validZip(passForm.expYear.value)) { alert("You must select a expiration Year ");
	     passForm.expYear.focus(); return false; }

  if(!ccCheck(passForm)){ return false;	}
		 
	if (!validZip(passForm.CVV.value)) { alert("You must enter an valid CVV code ");
	     passForm.CVV.focus(); return false; }
	if (!passForm.AcceptAgreement.checked)
	{
		alert("You did not Agree ");
		passForm.AcceptAgreement.focus();
		return false; 	
	}
  alert('Please wait while we process your order!\nMultiple submission may result in duplicate creditcard charges.');
  return true;
}
//*****************************************//
function validateform2(passForm1)
{
 	if (passForm1.Email.value == "") { alert("You must enter a Email Address ");
	  passForm1.Email.focus(); return false; }
    if(!emailvalidator(passForm1.Email.value)) {	alert("You must enter a valid Email Address ");
		passForm1.Email.focus();	return false; }
	if (passForm1.passphrase.value == "") {  alert("You must enter a Password ");
	  passForm1.passphrase.focus(); return false; }
    if (passForm1.passphrase.value.length < 8) {  alert("Your Password must be at least 8 characters long ");
	  passForm1.passphrase.focus(); return false; }
	if (!comparePassword(passForm1.passphrase.value,passForm1.retypepassphrase.value)) { alert("Password mismatch ");
	  passForm1.retypepassphrase.focus(); return false; }	
}
//*****************************************//
function validateform3(passForm1)
{
 	if (passForm1.Email2.value == "") { alert("You must enter a Email Address ");
	  passForm1.Email2.focus(); return false; }
    if(!emailvalidator(passForm1.Email2.value)) {	alert("You must enter a valid Email Address ");
		passForm1.Email2.focus();	return false; }
	if (passForm1.passphrase2.value == "") {  alert("You must enter a Password ");
	  passForm1.passphrase2.focus(); return false; }
    if (passForm1.passphrase2.value.length < 8) {  alert("Your Password must be at least 8 characters long ");
	  passForm1.passphrase2.focus(); return false; }
}
//*****************************************//
function autofillshipping(vCheck)
{
   //var passform2 = document.frmNewCustomer;
   var passform2 = vCheck;
   if(passform2.samebilling.checked)
   {
	passform2.shCompany.value   = passform2.Company.value;
    passform2.shFirstName.value = passform2.FirstName.value;
    passform2.shLastName.value  = passform2.LastName.value;
    passform2.shAddress.value   = passform2.Address.value;
    passform2.shAddress2.value  = passform2.Address2.value;
    passform2.shCity.value      = passform2.City.value;
    passform2.shZipcode.value   = passform2.Zipcode.value;
    passform2.shState.value     = passform2.State.value;
    passform2.shTitle.value     = passform2.Title.value;
	passform2.shPhone.value     = passform2.DayPhone.value;
	passform2.shEmail.value     = passform2.Email.value;
   }
   else
   {
   passform2.shCompany.value   = '';
   passform2.shFirstName.value = '';
   passform2.shLastName.value  = '';
   passform2.shAddress.value   = '';
   passform2.shAddress2.value  = '';
   passform2.shCity.value      = '';
   passform2.shZipcode.value   = '';
   passform2.shState.value     = '';  
   passform2.shTitle.value     = '';
   passform2.shPhone.value     = '';
   passform2.shEmail.value     = '';
   }
}
//*****************************************//
function selectShipping(vSelect)
{ 
var passform3 = vSelect;
  if(passform3.State.value == '') { alert("Please select your State!");  passform3.State.focus();  return false; }
  if(passform3.Shipping.value == '') { alert("Please select your shipping method!"); passform3.Shipping.focus(); 
  return false; }
  return true; 
 }
function selectCountry(vCountry)
{ 
var passform3 = vCountry;
  if(passform3.Country.value == '') { alert("Please enter a country!");  passform3.Country.focus();  return false; }
  if(passform3.Country.value.toLowerCase() == 'usa' || passform3.Country.value.toLowerCase() == 'us' || passform3.Country.value.toLowerCase() == 'united states') { alert("Please use US checkout!"); passform3.Country.focus(); 
  return false; }
  if(passform3.Country.value.toLowerCase() == 'ca' || passform3.Country.value.toLowerCase() == 'canada' || passform3.Country.value.toLowerCase() == 'can') { alert("Please use CA checkout!"); passform3.Country.focus(); 
  return false; }
  return true; 
 }
function selectShipping2(vSelect1){ var passform3 = vSelect1;
  if(passform3.Shipping.value == '') { alert("Please select your shipping method!"); passform3.Shipping.focus(); return false; }
  return true; }
//*****************************************//
function showE(thisE,i,j)
{
	 var thisE,thisE2,i,j;
	 if( document.getElementById(thisE) )
	 { 
	   if(i){ document.getElementById(thisE).style.display  = ''; }
	   else { document.getElementById(thisE).style.display  = 'none'; }
	   thisE2 = (thisE * 10 ) + 1;
	   if(document.getElementById(thisE2)) 
	   { 
	    if(j){ document.getElementById(thisE2).style.display  = ''; }
	    else { document.getElementById(thisE2).style.display  = 'none'; }
	   }
	 }
}
//*****************************************//
function PayMentType(thisElement)
{
  //alert(thisElement.value);
  if(thisElement.value == "Amex")
  { showE('1001',0,0); showE('1002',1,1); }
  else
  { showE('1001',1,1); showE('1002',0,0); }
}
//*****************************************//
function autoTab0(vBox1,vBox2)
{
	if(vBox1.value.length == 4){ vBox2.focus(); }
}
//*****************************************//
function autoTab1(vBox1,vBox2,vLength)
{
	if(vBox1.value.length == vLength)	{ vBox2.focus(); } 
}
//*****************************************//
//===== Validate Credit Card Function ===========================
// this function performs credit card validation on the following conditions:
//	1) Validate Expiration Date (>= today)
//	2) Validate CC Number w/CC Type
//	3) Validate CC using MOD-10 check
//	4) Validate CardHolder Name Field (not empty)
//	5) Validate Financial Institution Field (not empty, if needed)
//	6) Validate Security Code Field (not empty, if needed)

function fnValidateCreditCard(strCCType, strCCCardholderFirstName, strCCCardholderLastName, strCCExpMonth, strCCExpYear, strCCNumber, strCCSecurityCode, strCCIssuingBank)
	{
		//===== check to make sure a credit card type is chosen ========
		if (strCCType == "null")
			{ alert('Please select a credit card type.'); bolIsSubmitTurnedOff = false; return false;}

		//===== check to make sure there is a creditCardNumber =======
		if (!strCCNumber){alert('Please enter a credit card number.'); bolIsSubmitTurnedOff = false; return false;}

		//===== validate the credit card type/numbers ===============
		if(strCCType == "Visa")
			{
				//check to see if its between 13 and 16 digits in length and  make sure that the first digit is a 4
				if (strCCNumber.length < 13 || strCCNumber > 16 && strCCNumber.charAt(0) != 4)
					{alert(strErrCreditCardNotValid); bolIsSubmitTurnedOff = false; fnCountAttempts(); return false;}
			}
		if(strCCType == "Amex")
			{
				//check to see if has 15 digits
				if (strCCNumber.length != 15) {alert(strErrCreditCardNotValid); bolIsSubmitTurnedOff = false; fnCountAttempts(); return false;}
				//check that the first two digits are 34 or 37
				var strFirstTwoDigits = strCCNumber.substring(0,2)
				switch (strFirstTwoDigits)
					{
					case '34':
					case '37':
						break;
					default:
						alert(strErrCreditCardNotValid); bolIsSubmitTurnedOff = false; fnCountAttempts(); return false; break;
					}
			}
		if(strCCType == "MasterCard" || strCCType == "ERC")
			{
				//check to see if has 16 digits
				if (strCCNumber.length != 16) {alert(strErrCreditCardNotValid); bolIsSubmitTurnedOff = false;fnCountAttempts(); return false;}
				//check that the first two digits are between 51 and 55
				var strFirstTwoDigits = strCCNumber.substring(0,2)
				switch (strFirstTwoDigits)
					{
					case '51':
					case '52':
					case '53':
					case '54':
					case '55':
						break;
					default:
						alert(strErrCreditCardNotValid); bolIsSubmitTurnedOff = false; fnCountAttempts(); return false; break;
					}
			}

		if(strCCType == "Discover")
			{
				//check to see if has 16 digits
				if (strCCNumber.length != 16) {alert(strErrCreditCardNotValid); bolIsSubmitTurnedOff = false;fnCountAttempts(); return false;}
				//check that the first four digits are 6011
				var strFirstFourDigits = strCCNumber.substring(0,4)
				switch (strFirstFourDigits)
					{
					case '6011':
						break;
					default:
						alert(strErrCreditCardNotValid); bolIsSubmitTurnedOff = false; fnCountAttempts(); return false; break;
					}
			}
		//================================================

		//===== validate the security code ========================
		if(bolIsSecurityCodeShown)
			{
				if(!strCCSecurityCode){alert(''); bolIsSubmitTurnedOff = false; return false;}
			}

		//===== check MOD-10 value ============================
		if(!fnMod10Check(strCCNumber))
			{return false;}

		//===== check to see if user has selected an expiration month =====
		if(strCCExpMonth == "null")
			{alert(strErrCCMonthRequired); bolIsSubmitTurnedOff = false; return false;}

		//===== check to see if user has selected an expiration year =======
		if(strCCExpYear == "null")
			{alert(strErrCCYearRequired); bolIsSubmitTurnedOff = false; return false;}

		//===== check expiration date ============================
		var today = new Date();
		var currMonth = today.getMonth() +1;
		var currYear = today.getYear();
		if(strCCExpYear < currYear)
			{alert(strErrCreditCardExpired); bolIsSubmitTurnedOff = false; return false;}
		else if(strCCExpYear == currYear && strCCExpMonth < currMonth)
			{alert(strErrCreditCardExpired); bolIsSubmitTurnedOff = false; return false;}

		//===== check CardholderFirstName ===========================
		if (!strCCCardholderFirstName)
			{alert(strErrCCCardHolderFirstNameRequired); bolIsSubmitTurnedOff = false; return false;}

		//===== check CardholderLastName ===========================
		if (!strCCCardholderLastName)
			{alert(strErrCCCardHolderLastNameRequired); bolIsSubmitTurnedOff = false; return false;}

		//===== check issuing bank ==============================
		if (document.forms.main.strCCIssuingBank)
			{
				if (!strCCIssuingBank)
					{alert(strErrCCIssuingBankRequired); bolIsSubmitTurnedOff = false; return false;}
			}

		return true;
	}

//===== MOD-10 check =====================================
// this function performs a MOD-10 check on a credit card number
function fnMod10Check(ccNumber)
	{
		var intCount = 0;
		var intProdVal = 0;

			strCardType="";
			strModmask = "2121212121212121";

		//for different cards, adjust the length
		if (ccNumber.length == 13)
			{ccNumber = "000" + ccNumber;}
		else if (ccNumber.length == 14)
			{ccNumber = "00" + ccNumber;}
		else if (ccNumber.length == 15)
			{ccNumber = "0" + ccNumber;}
		else if (ccNumber.length == 16)
			{ccNumber = ccNumber;}
		else 
			{
				bolIsSubmitTurnedOff = false;
				alert(strErrCreditCardNotValid);
				fnCountAttempts();
				return false;
			}

		intErrorCheckSum = 0;

		//go through each digit and multiply by the mod mask (2121212121212121)
		for (intCount = 1; intCount<= 16; intCount++)
			{
				intProdVal = ccNumber.charAt(intCount-1) * strModmask.charAt(intCount-1);

				if (intProdVal > 9)
					{
						intProdVal = intProdVal - 9;
					}
				intErrorCheckSum = intErrorCheckSum + intProdVal;
			}

		var finalintErrorCheckSum = 0
		finalintErrorCheckSum = intErrorCheckSum % 10;

		if (finalintErrorCheckSum != 0)
			{
				bolIsSubmitTurnedOff = false;
				alert(strErrCreditCardNotValid);
				fnCountAttempts();
				return false;
			}
		else
			{
				return true;
			}
 	}
//=====================================================
--> 