/* author: marvin_stewart@hotmail.com */
/* Generated by AceHTML Freeware http://freeware.acehtml.com */
/* Creation date: 2003-05-14 */


/*************************************/

function getquote(RATECODESBYSTATE,PLANSBYRATECODE,state,zipcode) {
   var ratecode = ""
   var ratequote = ""
   
   if(-1 != (ratecode=findratecode(RATECODESBYSTATE,state,zipcode))){
         
   ratequote = findratequote(PLANSBYRATECODE,ratecode)
  
   outputquoteresult(state, zipcode,
                     ratequote[2],ratequote[3], ratequote[4], 
                     ratequote[6], ratequote[7], ratequote[8], 
                     ratequote[10], ratequote[11], ratequote[12], 
                     ratequote[14], ratequote[15], ratequote[16])
   return(1)

   }
      

}


/*********************************/


function findratecode(RATECODESBYSTATE,state,zipcode) {


/* No state selected */
if("" == state) {

 alert("Please select a State") 
 return(-1)                     

}

/* No zipcode entered*/
if("" == zipcode) {

 alert("Please enter a Zip Code") 
 return(-1)                     

}


for (var i = 0; i < RATECODESBYSTATE.length; i++){
      
        
	  /*  Find the state */
	  if(state == RATECODESBYSTATE[i][0]) {
	   		 
		 
		  for(var p = 0; p < RATECODESBYSTATE[i].length; p++) {
		  
		    /* Find the zip code */
			
		    if(zipcode.substring(0,3) == RATECODESBYSTATE[i][p]){
			 /* Found zipcode */
			    return(RATECODESBYSTATE[i][p+1])
			   
			   }			
		    }
		                
               alert("Zip Code Not Found") 
               return(-1)
		 }
	
   }
   /* No matches */
   return(-1)
}

/*****************************************/

function findratequote(PLANSBYRATECODE,ratecode){

  for (var i = 0; i < PLANSBYRATECODE.length; i++){
         if(ratecode == PLANSBYRATECODE[i][0]) {
	 
		/* Found Plan */
		return(PLANSBYRATECODE[i])
	  }
   }
  /* Rate Code Not Found */
  retrun(-1)
}



/*****************************************/

function outputquoteresult(state, zipcode,
                           execemp, execemp1, execempfam,
                           deluxeemp, deluxeemp1, deluxefam,
                           standemp, standemp1, standfam,
                           basicemp, basicemp1, basicfam) {

  /* document.writeln("execemp: " + execemp)
   document.writeln("execemp1: " + execemp1)
   document.writeln("execempfam: " + execempfam)
   document.writeln("deluxeemp: " + deluxeemp)
   document.writeln("deluxeemp1: " + deluxeemp1)
   document.writeln("deluxefam: " + deluxefam)
   document.writeln("standemp: " + standemp)
   document.writeln("standemp1: " + standemp1)
   document.writeln("standfam: " + standfam)
   document.writeln("basicemp: " + basicemp)
   document.writeln("basicemp1: " + basicemp1)
   document.writeln("basicfam: " + basicfam)*/

/* Replace your " with  \" or your document.write statements will fail. */


   document.open()
   document.writeln("<html>")
   document.writeln("<head>")
   document.writeln("<title>DentalNOW! Affordable Dental Benefits</title>")
   document.writeln("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">")
   document.writeln("<script language=\"JavaScript\">")
   document.writeln("<!--")
   document.writeln("function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)")
   document.writeln("{")
   document.writeln("  toolbar_str = toolbar ? 'yes' : 'no';")
   document.writeln("  menubar_str = menubar ? 'yes' : 'no';")
   document.writeln("  statusbar_str = statusbar ? 'yes' : 'no';")
   document.writeln("  scrollbar_str = scrollbar ? 'yes' : 'no';")
   document.writeln("  resizable_str = resizable ? 'yes' : 'no';")
   document.writeln("window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);")
   document.writeln("}")
   document.writeln("function na_preload_img()")
   document.writeln("{")
   document.writeln("var img_list = na_preload_img.arguments;")
   document.writeln("if (document.preloadlist == null) ")
   document.writeln("    document.preloadlist = new Array();")
   document.writeln("  var top = document.preloadlist.length;")
   document.writeln("  for (var i=0; i < img_list.length; i++) {")
   document.writeln("    document.preloadlist[top+i] = new Image;")
   document.writeln("    document.preloadlist[top+i].src = img_list[i+1];")
   document.writeln("  } ")
   document.writeln("}")
   document.writeln("function na_change_img_src(name, nsdoc, rpath, preload)")
   document.writeln("{ ")
   document.writeln("  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);")
   document.writeln("  if (name == '')")
   document.writeln("    return;")
   document.writeln("  if (img) {")
   document.writeln("    img.altsrc = img.src;")
   document.writeln("    img.src    = rpath;")
   document.writeln("  } ")
   document.writeln("}")
   document.writeln("function na_restore_img_src(name, nsdoc)")
   document.writeln("{")
   document.writeln("  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);")
   document.writeln("  if (name == '')")
   document.writeln("    return;")
   document.writeln("  if (img && img.altsrc) {")
   document.writeln("    img.src    = img.altsrc;")
   document.writeln("    img.altsrc = null;")
   document.writeln("  } ")
   document.writeln("}")
   document.writeln("// -->")
   document.writeln("</script>")
   document.writeln("</head>")
   document.writeln("<body bgcolor=\"#FFFFFF\" OnLoad=\"na_preload_img(false, 'IMAGES/broker_but_on.gif', 'IMAGES/employer_but_on.gif', 'IMAGES/employee_but_on.gif', 'IMAGES/broker_nav_pon.gif', 'IMAGES/broker_nav_mon.gif','images/general_nav_fon.gif','IMAGES/broker_nav_con.gif');\">")
   document.writeln("<table width=\"770\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#000000\">")
   document.writeln("  <tr>")
   document.writeln("    <td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">")
   document.writeln("        <tr> ")
   document.writeln("          <td width=\"23%\" rowspan=\"2\"><a href=\"../../index.htm\"><img src=\"images/logo.gif\" width=\"259\" height=\"83\" border=\"0\"></a></td>")
   document.writeln("          <td width=\"56%\" rowspan=\"2\" align=\"right\"><img src=\"images/top01.gif\" width=\"202\" height=\"83\"></td>")
   document.writeln("          <td width=\"21%\"><img src=\"IMAGES/Slogan.gif\" width=\"216\" height=\"54\" border=\"0\"></td>")
   document.writeln("        </tr>")
   document.writeln("        <tr> ")
   document.writeln("          <td align=\"center\" valign=\"right\" class=\"text\">")
   document.writeln("                        <p align=\"right\"><font color=\"#5F9B97\"><SCRIPT LANGUAGE=\"JavaScript1.2\">")
   document.writeln("<!-- Begin")
   document.writeln("var months=new Array(13);")
   document.writeln("months[1]=\"January\";")
   document.writeln("months[2]=\"February\";")
   document.writeln("months[3]=\"March\";")
   document.writeln("months[4]=\"April\";")
   document.writeln("months[5]=\"May\";")
   document.writeln("months[6]=\"June\";")
   document.writeln("months[7]=\"July\";")
   document.writeln("months[8]=\"August\";")
   document.writeln("months[9]=\"September\";")
   document.writeln("months[10]=\"October\";")
   document.writeln("months[11]=\"November\";")
   document.writeln("months[12]=\"December\";")
   document.writeln("var time=new Date();")
   document.writeln("var lmonth=months[time.getMonth() + 1];") 
   document.writeln("var date=time.getDate();")
   document.writeln("var year=time.getYear();")
   document.writeln("if (year < 2000)    // Y2K Fix, Isaac Powell")
   document.writeln("year = year + 1900; // http://onyx.idbsu.edu/~ipowell")
   document.writeln("document.write(\"<center>\" + lmonth + \" \");")
   document.writeln("document.write(date + \", \" + year + \"</center>\");")
   document.writeln("// End -->")
   document.writeln("</SCRIPT></font>")
   document.writeln("</CENTER></td>")
   document.writeln("        </tr>")
   document.writeln("      </table></td>")
   document.writeln("  </tr>")
   document.writeln("  <tr>")
   document.writeln(" <td bgcolor=\"#FFFFFF\" height=\"21\" background=\"IMAGES/but03.gif\">")
   document.writeln("            <p align=\"right\"><a href=\"../../index.htm\" OnMouseOut=\"na_restore_img_src('image5', 'document')\" OnMouseOver=\"na_change_img_src('image5', 'document', 'images/home_but_on.gif', true);\"><img src=\"IMAGES/home_but.gif\" width=\"65\" height=\"22\" border=\"0\" name=\"image5\"></a><a href=\"producers_secure.htm\" OnMouseOut=\"na_restore_img_src('image1', 'document')\" OnMouseOver=\"na_change_img_src('image1', 'document', 'IMAGES/broker_but_on.gif', true);\"><img src=\"IMAGES/broker_but_on.gif\" width=\"119\" height=\"22\" border=\"0\" name=\"image1\"></a><a href=\"../../employers/employers.htm\" OnMouseOut=\"na_restore_img_src('image2', 'document')\" OnMouseOver=\"na_change_img_src('image2', 'document', 'IMAGES/employer_but_on.gif', true);\"><img src=\"IMAGES/employer_but.gif\" width=\"119\" height=\"22\" border=\"0\" name=\"image2\"></a><a href=\"../../employees/employees.htm\" OnMouseOut=\"na_restore_img_src('employee', 'document')\" OnMouseOver=\"na_change_img_src('employee', 'document', 'IMAGES/employee_but_on.gif', true);\"><img src=\"IMAGES/employee_but.gif\" width=\"119\" height=\"22\" border=\"0\" name=\"employee\"></a></td>")
   document.writeln("  </tr>")
   document.writeln("  <tr>")
   document.writeln("    <td bgcolor=\"#FCB702\" height=\"94\" background=\"IMAGES/quote_bg.jpg\">")
   document.writeln("            <p class=\"text\">&nbsp;</p>")
   document.writeln("</td>")
   document.writeln("  </tr>")
   document.writeln("  <tr>")
   document.writeln("    <td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">")
   document.writeln("        <tr>")
   document.writeln("          <td width=\"17%\" valign=\"top\" bgcolor=\"#FFF4E2\" background=\"IMAGES/nav_bkgrnd.gif\">")
   document.writeln("                        <p class=\"text\"><a href=\"plans_overview.htm\" OnMouseOut=\"na_restore_img_src('products', 'document')\" OnMouseOver=\"na_change_img_src('products', 'document', 'IMAGES/broker_nav_pon.gif', true);\"><img src=\"IMAGES/broker_nav_poff.gif\" width=\"128\" height=\"60\" border=\"0\" name=\"products\"></a><br><img src=\"IMAGES/broker_nav_qon.gif\" width=\"128\" height=\"55\" border=\"0\"><br><a href=\"materials_producer.htm\" OnMouseOut=\"na_restore_img_src('image3', 'document')\" OnMouseOver=\"na_change_img_src('image3', 'document', 'IMAGES/broker_nav_mon.gif', true);\"><img src=\"IMAGES/broker_nav_moff.gif\" width=\"128\" height=\"52\" border=\"0\" name=\"image3\"></a><br><a href=\"faq_producer.htm\" OnMouseOut=\"na_restore_img_src('image1', 'document')\" OnMouseOver=\"na_change_img_src('image1', 'document', 'images/general_nav_fon.gif', true)\"><img src=\"images/general_nav_foff.gif\" width=\"128\" height=\"55\" border=\"0\" name=\"image1\"></a><br><a href=\"contact_producer.htm\" OnMouseOut=\"na_restore_img_src('image4', 'document')\" OnMouseOver=\"na_change_img_src('image4', 'document', 'IMAGES/broker_nav_con.gif', true);\"><img src=\"IMAGES/broker_nav_coff.gif\" width=\"128\" height=\"49\" border=\"0\" name=\"image4\"></a></p>")


   document.writeln("</td>")
   document.writeln("          <td width=\"83%\" align=\"center\" valign=\"middle\" style=\"text-indent:5px;\">") 
   document.writeln("                        <p class=\"text\" align=\"left\"><b><u><font face=\"Verdana\"><font size=\"2\">Your ")
   document.writeln("                        Quote:</font></u></b></p>")
   document.writeln("                        <p class=\"text\" align=\"left\"><font face=\"Verdana\"><font size=\"2\" color=\"#5F9B97\"><b>In ")
   document.writeln("                        the State of&nbsp;" + state + ", for the " + zipcode + " Zip Code, Your ")
   document.writeln("                        quote is:</b></font></p>")
   document.writeln("                        <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"549\">")
   document.writeln("                            <tr>")
   document.writeln("                                <td width=\"84\">")
   document.writeln("                                    <p align=\"right\"><font face=\"Verdana\" size=\"2\"><img src=\"IMAGES/left_end_cap.gif\" width=\"10\" height=\"19\" border=\"0\"></font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"81\" bgcolor=\"#FBB600\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" color=\"white\" size=\"2\">Employee</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"90\" bgcolor=\"#FBB600\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" color=\"white\" size=\"2\">Employee ")
   document.writeln("                                    +1</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"74\" bgcolor=\"#FBB600\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" color=\"white\" size=\"2\">Family</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"45\">")
   document.writeln("                                    <p><font size=\"2\"><img src=\"IMAGES/right_end_cap.gif\" width=\"11\" height=\"19\" border=\"0\"></font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"175\" bgcolor=\"white\" style=\"border-color:teal; border-style:none;\">")
   document.writeln("                                    <p><font face=\"Verdana\" size=\"2\" color=\"#FBB600\">&nbsp;</font></p>")
   document.writeln("                                </td>")
   document.writeln("                            </tr>")
   document.writeln("                            <tr>") 
   document.writeln("                                <td width=\"84\" style=\"border-bottom-color:black; border-bottom-style:none;\">")
   document.writeln("                                    <p><a href=\"javascript:na_open_window('executive', 'executive_pop.htm', 0, 0, 250, 175, 0, 0, 0, 0, 0)\" target=\"_self\"><font face=\"Verdana\" color=\"#FBB600\" size=\"2\">Executive</font></a></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"81\" style=\"border-bottom-width:1; border-bottom-color:rgb(102,102,102); border-bottom-style:dotted;\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + execemp + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"90\" style=\"border-bottom-width:1; border-bottom-color:rgb(102,102,102); border-bottom-style:dotted;\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + execemp1 + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"74\" style=\"border-bottom-width:1; border-bottom-color:rgb(102,102,102); border-bottom-style:dotted;\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + execempfam + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"45\" style=\"border-bottom-color:black; border-bottom-style:none;\">")
   document.writeln("                                    <p><font size=\"2\">&nbsp;</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"225\" style=\"border-color:teal; border-style:dashed;\" rowspan=\"4\" bgcolor=\"#E6EFEC\">")
   document.writeln("                                    <p><font face=\"Verdana\" size=\"2\" color=\"#FBB600\"><b>Important-</b><br></font><span style='font-family:Helvetica-Condensed; color:rgb(35,31,32); ")
   document.writeln("mso-fareast-font-family:\"Times New Roman\";mso-bidi-font-family:\"Times New Roman\";mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:")
   document.writeln("AR-SA'><font face=\"Verdana\" size=\"1\">The maximum number of plans an employer can offer its employees is two: a choice of any of the four plans OR the Basic Plan along with one of the other three plans. See the Producer's Guide for more details about the plans.<br></font></span>")

   document.writeln("                                </td>")
   document.writeln("                            </tr>") 
   document.writeln("                            <tr>")
   document.writeln("                                <td width=\"84\" style=\"border-bottom-color:black; border-bottom-style:none;\">")
   document.writeln("                                    <p><a href=\"javascript:na_open_window('Deluxe', 'deluxe_pop.htm', 0, 0, 250, 175, 0, 0, 0, 0, 0)\" target=\"_parent\"><font face=\"Verdana\" color=\"#FBB600\" size=\"2\">Deluxe</font></a></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"81\" style=\"border-bottom-width:1; border-bottom-color:rgb(102,102,102); border-bottom-style:dotted;\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + deluxeemp + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"90\" style=\"border-bottom-width:1; border-bottom-color:rgb(102,102,102); border-bottom-style:dotted;\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + deluxeemp1 + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"74\" style=\"border-bottom-width:1; border-bottom-color:rgb(102,102,102); border-bottom-style:dotted;\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + deluxefam + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"45\" style=\"border-bottom-color:black; border-bottom-style:none;\">")
   document.writeln("                                    <p><font size=\"2\">&nbsp;</font></p>")
   document.writeln("                                </td>")
   document.writeln("                            </tr>")
   document.writeln("                            <tr>")
   document.writeln("                                <td width=\"84\" style=\"border-bottom-color:black; border-bottom-style:none;\">")
   document.writeln("                                    <p><a href=\"javascript:na_open_window('standard', 'standard_pop.htm', 0, 0, 250, 175, 0, 0, 0, 0, 0)\" target=\"_self\"><font face=\"Verdana\" color=\"#FBB600\" size=\"2\">Secure</font></a></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"81\" style=\"border-bottom-width:1; border-bottom-color:rgb(102,102,102); border-bottom-style:dotted;\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + standemp + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"90\" style=\"border-bottom-width:1; border-bottom-color:rgb(102,102,102); border-bottom-style:dotted;\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + standemp1 + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"74\" style=\"border-bottom-width:1; border-bottom-color:rgb(102,102,102); border-bottom-style:dotted;\">") 
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + standfam + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"45\" style=\"border-bottom-color:black; border-bottom-style:none;\">")
   document.writeln("                                    <p><font size=\"2\">&nbsp;</font></p>")
   document.writeln("                                </td>")
   document.writeln("                            </tr>")
   document.writeln("                            <tr>")
   document.writeln("                                <td width=\"84\" style=\"border-bottom-color:black; border-bottom-style:none;\">")
   document.writeln("                                    <p><a href=\"javascript:na_open_window('basic', 'basic_pop.htm', 0, 0, 250, 175, 0, 0, 0, 0, 0)\" target=\"_self\"><font face=\"Verdana\" color=\"#FBB600\" size=\"2\">Basic</font></a></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"81\" style=\"border-bottom-color:black; border-bottom-style:none;\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + basicemp + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"90\" style=\"border-bottom-color:black; border-bottom-style:none;\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + basicemp1 + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"74\" style=\"border-bottom-color:black; border-bottom-style:none;\">")
   document.writeln("                                    <p align=\"center\"><font face=\"Verdana\" size=\"2\">$" + basicfam + "</font></p>")
   document.writeln("                                </td>")
   document.writeln("                                <td width=\"45\" style=\"border-bottom-color:black; border-bottom-style:none;\">")
   document.writeln("                                    <p>&nbsp;</p>")
   document.writeln("                                </td>")
   document.writeln("                            </tr>")
   document.writeln("                        </table>")
   document.writeln("                        <p><font face=\"Verdana\" size=\"1\">The rates quoted above are good only for groups of 10 or more eligible employees. For groups with less than 10 eligible employees, see the Monthly Premiums for DentalNOW! table in your sales kit. All rates are valid for groups with effective dates on or before June 1, 2004.<br><br>DentalNOW! Group Dental Insurance underwritten by BCS Insurance Company, Chicago, Illnois.</font></p>")
   document.writeln("</td>")
   document.writeln("        </tr>")
   document.writeln("      </table></td>")
   document.writeln("  </tr>")
   document.writeln("  <tr>")
   document.writeln("    <td align=\"center\" bgcolor=\"#5F9B97\"><table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"8\">")
   document.writeln("        <tr> ")
   document.writeln("          <td align=\"center\"><font color=\"#FFFFFF\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">© 2003 EXL, LLC. All rights reserved.")
   document.writeln("            <a href=\"javascript:na_open_window('win', '../../Terms.htm', 0, 0, 300, 200, 0, 0, 0, 1, 0)\" target=\"_self\"><u><font color=\"#FFFFFF\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Terms of Use and Disclaimer</font></u></a> </font></td>")
   document.writeln("        </tr>")
   document.writeln("      </table></td>")
   document.writeln("  </tr>")
   document.writeln("</table>")
   document.writeln("</body>")
   document.writeln("</html>")
   document.close()


}
