<!-- Begin
function enterONLY(){
	return true;
}
function dentistSearchGo()
{
//	  if ((document.calform.bx_Zip.value == "") && (document.calform.bx_City.value == ""))
//		  {
//			alert('Please enter Zip code or City of the dentist you which to locate.');
//			document.calform.bx_Zip.focus();
//			return false;
//		  }
//
//	  if ((document.calform.bx_Zip.value != "") && (document.calform.bx_City.value != ""))
//		  {
//			alert('Only one search type is allowed.  Select City OR Zip Code');
//			document.calform.bx_Zip.focus();
//			return false;
//		  }
				
	   if (!IsNumeric(calform.bx_Zip.value)) 
	   { 
		  alert('Please enter only numbers in the zip code field') 
		  document.calform.bx_Zip.focus(); 
		  return false; 
		  }
}

function noenter() 
{
  	return !(window.event && window.event.keyCode == 13); 
}

function IsNumeric(sText)
{
   var ValidChars = "0123456789.";
   var IsNumber=true;
   var Char;

 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
   
   }


function refresh()
	{
		window.location.reload( true );
	}

function myPopup(url,windowname,w,h,x,y){
window.open(url,windowname,"resizable=yes,toolbar=no,scrollbars=yes,menubar=no,status=no,directories=no,width="+w+",height="+h+",left="+x+",top="+y+"");
}

function emailCheckIT(calform) {
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(calform.emailBox.value)){
		return (true)
		}
		alert("Invalid email address! Please re-enter.")
		return (false)
		}

function sendContactEmail(calform)
{
		if (!validRequired(calform.namebx,"Contact Name"))
					return false;
		
		if (!emailCheckIT(calform))
					return false;

		if (!validRequired(calform.messageBox,"Message"))
					return false;

		if (!validRequired(calform.noAutoSub,"Security code"))
					return false;

		return true;

}


function validRequired(formField,fieldLabel)
{
  var result = true;

  if (formField.value == "")
  {
    alert('Please enter a value for the "' + fieldLabel +'" field.');
    formField.focus();
    result = false;
  }

  return result;
}

function openpopup(popurl){
	winpops=window.open(popurl,"","width=600,height=650,,resizable,scrollbars,")
}



//functions for randam rollover menus
function showImage(imageName)
		{
		   if (document.images)
		   {
			  document[imageName].src = eval(imageName + "On.src");
		   } 
		}

function hideImage(imageName)
		{
		   if (document.images)
		   {
			  document[imageName].src = eval(imageName + "Off.src");
		   } 
		}

if (document.images)
	{
   // individual plan buttons
		   indEligOn = new Image();
		   indEligOn.src = "/images/title_WhoIsElig_1.jpg";
		   indEligOff = new Image();
		   indEligOff.src = "/images/title_WhoIsElig_2.jpg"
		   
		   indCoverOn = new Image();
		   indCoverOn.src = "/images/title_WhatIsCovered_1.jpg";
		   indCoverOff = new Image();
		   indCoverOff.src = "/images/title_WhatIsCovered_2.jpg"
		
		   indDentistOn = new Image();
		   indDentistOn.src = "/images/title_DoesDentist_1.jpg";
		   indDentistOff = new Image();
		   indDentistOff.src = "/images/title_DoesDentist_2.jpg"
		
		   indPlanCostOn = new Image();
		   indPlanCostOn.src = "/images/title_PlanCost_1.jpg";
		   indPlanCostOff = new Image();
		   indPlanCostOff.src = "/images/title_PlanCost_2.jpg"

		   indHowEnrollOn = new Image();
		   indHowEnrollOn.src = "/images/title_HowEnroll_1.jpg";
		   indHowEnrollOff = new Image();
		   indHowEnrollOff.src = "/images/title_HowEnroll_2.jpg"


}

function openpopSmall(popurl){
	winpops=window.open(popurl,"","width=385,height=475,,resizable,scrollbars,")
}

function goToEnrolForm()
{
	if (valButtonOne(document.form1.howHeard) == false)
		  {window.alert("Please select how you heard about the Individual Plan.");	
		  return false;}
}
function valButtonOne(btn) {
    var cnt = -1;
    for (var i=btn.length-1; i > -1; i--) {
        if (btn[i].checked) {cnt = i; i = -1;}
    }
    if (cnt > -1) return true;
    else 
		  {	 return false;}
}


function submitBrokerAuth()
{
		if (!validRequired(calform.theidOne,"Ascent Broker ID"))
					return false;
		
		if (!validRequired(calform.theidTwo,"Tax Identification Number"))
					return false;

	   if (!IsNumeric(calform.theidOne.value)) 
	   { 
		  alert('Broker ID must be numberic') 
		  document.calform.theidOne.focus(); 
		  return false; 
		  }
	 
	   if (!IsNumeric(calform.theidTwo.value)) 
	   { 
		  alert('Tax Identification Number must be numeric') 
		  document.calform.theidTwo.focus(); 
		  return false; 
		  }


return true;

}


function submitBrokerContract()
{
	if (calform.optionBX.options[calform.optionBX.selectedIndex].value == "0")	    //category
		{window.alert("Please select Broker Category.");	
		 calform.optionBX.focus();
		 return false;}

	//english text, spanish text >>last two fields
	if (!ValField(document.calform.licAddressFull,'an',3,100,'n','Business Address','Business Address')) return false;	    //address
	if (isNaN(calform.licAddressFull.value) == false){
			alert('Business Address can not be a number');
			calform.licAddressFull.focus();
			return false;}			

	if (!ValField(calform.licCityName,'an',3,50,'n','Business City','Business City')) return false;	    //city
	if (isNaN(calform.licCityName.value) == false){
			alert('Business City can not be a number');
			calform.licCityName.focus();
			return false;}			

	if (calform.licStateName.options[calform.licStateName.selectedIndex].value == "0")	  	    //state
		{window.alert("Please select State.");	
		 calform.licStateName.focus();
		 return false;}

	if (!ValField(calform.licZipCode,'n',5,5,'n','Business ZipCode','Business ZipCode')) return false;	    //zip

	if (!ValField(calform.licTelephone,'n',10,10,'n','Telephone','Telephone')) return false;	    //phone

	if (!isEmail(calform.licEmail)) return false; // email 

	if (calform.licExemptBU.options[calform.licExemptBU.selectedIndex].value == "0")	  	    //back up withholding from w9
		{window.alert("Please select a Backup Withholding Option.");	
		 calform.licExemptBU.focus();
		 return false;}

	if (document.calform.licSSN.value != ""){  	    //social security
		if (!ValField(calform.licSSN,'n',9,9,'n','SSN')) return false;
	}
	
	if (document.calform.lictaxid.value != ""){		    //tax id
		if (!ValField(calform.lictaxid,'n',9,9,'n','Tax ID')) return false;
	}
	
	if ((document.calform.licSSN.value == "") &&  (document.calform.lictaxid.value == "")){	    //either ssn or tid must be present
				alert('Either a SSN or TIN is required to continue');
				calform.licSSN.focus();
				return false;
	}	
	
	if ((document.calform.licSSN.value != "") &&  (document.calform.lictaxid.value != "")){	    //select ssn or tid not both
				alert('Only one tax identification value is required, enter SSN or TIN.');
				calform.licSSN.focus();
				return false;
	}	
	
	
	
	if (!ValField(calform.licAZInsure,'n',1,12,'n','CO License Number','CO License Number')) return false; 	    //co license
	
	//if company name missing, must have first and last name
	if ((document.calform.licBusinessName.value == "") &&  (document.calform.licNameFirst.value == "") && (document.calform.licNameFirst.value == "")){
				alert('First and Last names required if Business name is not avaiable.');
				calform.licNameFirst.focus();
				return false;}			
	
	if (document.calform.licNameFirst.value != ""){
		if (!ValField(calform.licNameFirst,'an',3,20,'n','First Name','First Name')) return false;
		if (isNaN(calform.licNameFirst.value) == false){
				alert('First Name can not be a number');
				calform.licNameFirst.focus();
				return false;}			
		}

	if (document.calform.licNameFirst.value != ""){
		if (!ValField(calform.licNameLast,'an',3,20,'n','Last Name','Last Name')) return false;
		if (isNaN(calform.licNameLast.value) == false){
				alert('Last Name can not be a number');
				calform.licNameLast.focus();
				return false;}			
	}
	
	if (document.calform.licBusinessName.value != ""){
		if (!ValField(calform.licBusinessName,'an',3,100,'n','Business Name','Business Name')) return false;
		if (isNaN(calform.licBusinessName.value) == false){
				alert('Business Name can not be a number');
				calform.licBusinessName.focus();
				return false;}			
	}

	if (calform.bxAgree.options[calform.bxAgree.selectedIndex].value == "0")	  
		{window.alert("Please select 'I Agree' from the Terms and Conditions list to continue.");	
		 calform.bxAgree.focus();
		 return false;}

	if (calform.bxSignature.options[calform.bxSignature.selectedIndex].value == "0")	  
		{window.alert("Please select 'I Agree' from the Electronic Signature list to continue.");	
		 calform.bxSignature.focus();
		 return false;}


return true;
}


function submitReorder()
{
	    if ((document.calform.txtName.value.length < 3) || (document.calform.txtName.value.length > 100))
		  {
			alert('First and Last Name must have a minimum length of 3 and maximum of 100.');
			document.calform.txtName.focus();
			 return false; }

		if (isNaN(document.calform.txtName.value) == false){
				alert('First and Last Name can not be a number');
				document.calform.txtName.focus();
				return false;}		
		

	    if ((document.calform.txtClinicName.value.length < 3) || (document.calform.txtClinicName.value.length > 100))
		  {
			alert('Clinic Name must have a minimum length of 3 and maximum of 100');
			document.calform.txtClinicName.focus();
			 return false; }

		if (isNaN(document.calform.txtClinicName.value) == false){
				alert('Clinic Name can not be a number');
				document.calform.txtClinicName.focus();
				return false;}		

	    if ((document.calform.txtAddress.value.length < 3) || (document.calform.txtAddress.value.length > 100))
		  {
			alert('Address must have a minimum length of 3 and maximum of 100');
			document.calform.txtAddress.focus();
			 return false; }

		if (isNaN(document.calform.txtAddress.value) == false){
				alert('Address can not be a number');
				document.calform.txtAddress.focus();
				return false;}					


	    if ((document.calform.txtCity.value.length < 3) || (document.calform.txtCity.value.length > 25))
		  {
			alert('City Namemust have a minimum length of 3 and maximum of 25');
			document.calform.txtCity.focus();
			 return false; }

		if (isNaN(document.calform.txtCity.value) == false){
				alert('City Name can not be a number');
				document.calform.txtCity.focus();
				return false;}					


		if ((document.calform.txtState.value.length < 2) || (document.calform.txtState.value.length > 2))
		  {
			alert('State Name must have a length of 2');
			document.calform.txtState.focus();
			 return false; }

		if (isNaN(document.calform.txtState.value) == false){
				alert('State abbreviation can not be a number');
				document.calform.txtState.focus();
				return false;}					

		if ((document.calform.txtZipCode.value.length < 5) || (document.calform.txtZipCode.value.length > 5))
		  {
			alert('Zip code should have a length of 5');
			document.calform.txtZipCode.focus();
			 return false; }
		if (!isNaN(document.calform.txtZipCode.value) == false){
				alert('Zip code must be a number');
				document.calform.txtZipCode.focus();
				return false;}					

		if ((document.calform.txtPhone.value.length < 10) || (document.calform.txtPhone.value.length > 10))
		  {
			alert('Phone number should have a length of 10');
			document.calform.txtPhone.focus();
			 return false; }
		if (!isNaN(document.calform.txtPhone.value) == false){
				alert('Phone must be a number');
				document.calform.txtPhone.focus();
				return false;}					
		
		return true;

}


//  End -->