﻿/*
This file is Copyright (c) 2010 Bankrate, Inc.

No part of this file may be modified in any way without expressed written permission from an authorized representative from Bankrate Inc.
*/
document.writeln("");
document.writeln("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
document.writeln("<head>");
document.writeln("    <title></title>");
document.writeln("        <script type=\"text/javascript\" language=\"javascript\">");
document.writeln("            //****** Below section is commonly used in all the tabs for updating items in State and City drop-down controls ********");
document.writeln("            var cities = new Array();");
document.writeln("            var states = new Array();");
document.writeln("");
document.writeln("            statesVal = new Array('Alabama:AL', 'Alaska:AK', 'Arkansas:AR', 'Arizona:AZ', 'California:CA', 'Colorado:CO', 'Connecticut:CT', 'Delaware:DE', 'District of Columbia:DC', 'Florida:FL', 'Georgia:GA', 'Hawaii:HI', 'Iowa:IA', 'Idaho:ID', 'Illinois:IL', 'Indiana:IN', 'Kansas:KS', 'Kentucky:KY', 'Louisiana:LA', 'Massachusetts:MA', 'Maryland:MD', 'Maine:ME', 'Michigan:MI', 'Minnesota:MN', 'Missouri:MO', 'Mississippi:MS', 'Montana:MT', 'North Carolina:NC', 'North Dakota:ND', 'Nebraska:NE', 'New Hampshire:NH', 'New Jersey:NJ', 'New Mexico:NM', 'Nevada:NV', 'New York:NY', 'Ohio:OH', 'Oklahoma:OK', 'Oregon:OR', 'Pennsylvania:PA', 'Rhode Island:RI', 'South Carolina:SC', 'South Dakota:SD', 'Tennessee:TN', 'Texas:TX', 'Utah:UT', 'Virginia:VA', 'Vermont:VT', 'Washington:WA', 'Wisconsin:WI', 'West Virginia:WV', 'Wyoming:WY');");
document.writeln("");
document.writeln("            cities['Alaska'] = new Array('Aleutians:1412', 'Anchorage:234', 'Barrow:1410', 'Fairbanks:1247', 'Juneau:1306', 'Sitka:498');");
document.writeln("            cities['Alabama'] = new Array('Anninston:1360', 'Auburn-Phenix City:1233', 'Birmingham:108', 'Dothan:1289', 'Eufaula:1129', 'Fairhope:499', 'Florence:406', 'Huntsville:255', 'Mobile:156', 'Montgomery-Selma:1249', 'Tuscaloosa:1312', 'Vernon:1359');");
document.writeln("            cities['Arkansas'] = new Array('El Dorado:1371', 'Fayetteville:1131', 'Harrison-Mountain Home:1413', 'Hot Springs:500', 'Jonesboro:1300', 'Little Rock:146', 'McGehee-Chicot Junction:1284', 'W. Memphis-Greenville:1372');");
document.writeln("            cities['Arizona'] = new Array('Flagstaff:501', 'Ft Defiance-Ganado-Chinle:1361', 'Phoenix-Mesa:40', 'Prescott:502', 'Scottsdale:503', 'Tucson:120', 'Wickenburg:504', 'Yuma:1241');");
document.writeln("            cities['California'] = new Array('Arcadia:505', 'Bakersfield:142', 'Berkeley:506', 'Chico-Redding:1265', 'Downey:967', 'El Centro:1267', 'Escondido:507', 'Eureka:1268', 'Fremont:969', 'Fresno:114', 'Healdsburg:513', 'Huntington Beach:971', 'Irvine:973', 'La Jolla:508', 'Lake Tahoe:1376', 'Los Angeles:4', 'Modesto:196', 'Oakland:269', 'Palm Desert:509', 'Palm Springs:1266', 'Palo Alto:510', 'Pasadena:975', 'Rancho Santa Margarita:977', 'Riverside-San Bernardino:307', 'Sacramento:54', 'Salinas:979', 'San Clemente:208', 'San Diego:30', 'San Francisco:8', 'San Gabriel Valley:241', 'San Jose:273', 'San Luis Obispo:511', 'San Rafael-Novato:271', 'Santa Barbara:295', 'Santa Clara:981', 'Santa Cruz:512', 'Santa Rosa:281', 'Stockton-Lodi:154', 'Sunnyvale:983', 'Thousand Oaks:985', 'Ventura:283', 'Yreka:1375');");
document.writeln("            cities['Colorado'] = new Array('Arvada:514', 'Boulder:321', 'Colorado Springs:184', 'Cortez:1439', 'Denver:44', 'Durango:515', 'Fort Collins-Loveland:516', 'Grand Junction-Montrose:1243', 'Greeley:323', 'Lakewood:517', 'Westminster:987');");
document.writeln("            cities['Connecticut'] = new Array('Bridgeport:404', 'Danbury:989', 'Hartford:72', 'New Haven:210', 'Stamford:991', 'Torrington:475');");
document.writeln("            cities['Delaware'] = new Array('Dover:993', 'Lewes:995', 'Ocean View:1378', 'Wilmington:214');");
document.writeln("            cities['District of Columbia'] = new Array('DC Metro:20', 'Reston-Manassas:265', 'Rockville-Wheaton:261');");
document.writeln("            cities['Florida'] = new Array('Aventura:518', 'Boca Raton:519', 'Bradenton:617', 'Cape Coral:997', 'Coconut Creek:520', 'Coral Gables:521', 'Crystal River:1133', 'Daytona Beach:178', 'Deerfield Beach:522', 'DeLand:523', 'Delray Beach:524', 'Dunedin:525', 'Ft Lauderdale:269', 'Ft Myers:291', 'Ft Walton Beach:454', 'Gainesville:403', 'Hallandale:526', 'Hobe Sound-Port St. Lucie:311', 'Inverness:528', 'Jacksonville:94', 'Key West:529', 'Lakeland:176', 'Largo:530', 'Margate:531', 'Melbourne-Titusville-Palm Bay:182', 'Miami:22', 'Mount Dora:532', 'N. Ft. Myers:618', 'N. Miami Beach:619', 'Naples:289', 'Ocala:402', 'Ojus:533', 'Orlando:66', 'Ormond Beach:534', 'Panama City:1288', 'Pensacola:456', 'Pompano Beach:535', 'Port Charlotte:536', 'Punta Gorda:999', 'Sarasota:150', 'Siesta Key:537', 'St. Augustine: 538', 'St. Petersburg:341', 'Sunny Isles:539', 'Tallahassee:249', 'Tamarac:540', 'Tampa:42', 'Venice:541', 'Vero Beach:542', 'West Palm Beach:98', 'Winter Haven:569', 'Winter Park:543');");
document.writeln("            cities['Georgia'] = new Array('Albany:1346', 'Athens:544', 'Atlanta:24', 'Augusta:172', 'Columbus:1231', 'Gainesville:545', 'Golden Isles:1135', 'Lawrenceville:317', 'Macon:1246', 'Marietta:313', 'Morganton-Dalton:1379', 'Roswell:315', 'Savannah:327', 'St. Marys:1380', 'Thomasville:1381');");
document.writeln("            cities['Hawaii'] = new Array('Hilo:546', 'Honolulu:110');");
document.writeln("            cities['Iowa'] = new Array('Cedar Rapids:1001', 'Davenport:293', 'Des Moines:190', 'Estherville:1382', 'Harlan-Atlantic-Shenandoah:1385', 'Inwood-Allendorf:1383', 'Iowa City:547', 'Keokuk:1317', 'Mason City:1384', 'Ottumwa:1316', 'Sioux City:1238');");
document.writeln("            cities['Idaho'] = new Array('Boise:216', 'Coeur D Alene:551', 'Idaho Falls-Pocatello:1245', 'Moscow:1137', 'Twin Falls:1239');");
document.writeln("            cities['Illinois'] = new Array('Aurora:1107', 'Bloomington:1109', 'Champaign-Urbana:1111', 'Chicago:6', 'East St Louis:253', 'Elgin:277', 'Harrisburg-Mt. Vernon:1315', 'Highland Park:553', 'Kankakee:1115', 'Mt. Carmel-Fairfield-Carmi:1352', 'Naperville:1003', 'Peoria:1005', 'Quincy:1314', 'Rock Island-Moline:1358', 'Rockford:299', 'Waukegan:275', 'Yale-Robinson-Ste. Marie:1388');");
document.writeln("            cities['Indiana'] = new Array('Bloomington:554', 'Brookville-Aurora:1391', 'Elkhart-Goshen:1007', 'Evansville:301', 'Fort Wayne:158', 'Gary:212', 'Indianapolis:58', 'Lafayette:1009', 'Richmond:1345', 'South Bend:1184', 'Tell City-Bedford-Scottsburg:1390', 'Terre Haute:1011');");
document.writeln("            cities['Kansas'] = new Array('Doniphan:1278', 'Glade-Agenda:1394', 'Hays:1139', 'Independence:1393', 'Kansas City:238', 'Lawrence:309', 'Manhattan:1141', 'Overland Park:1013', 'Pittsburg:1318', 'Topeka:1015', 'Wichita:152');");
document.writeln("            cities['Kentucky'] = new Array('Ashland-Williamson:1397', 'Bowling Green-Owensboro:1320', 'Covington:434', 'Hopkinsville:1113', 'Lexington:174', 'Louisville:90', 'Paducah:1319', 'Pikeville-Hazard:1396');");
document.writeln("            cities['Louisiana'] = new Array('Alexandria:1364', 'Baton Rouge:144', 'Lafayette:1301', 'Lake Charles:1274', 'Monroe:1302', 'New Orleans:64', 'Shreveport - Bossier City:194');");
document.writeln("            cities['Massachusetts'] = new Array('Amherst:555', 'Barnstable-Yarmouth:451', 'Boston:14', 'Cambridge:1017', 'Chelmsford:331', 'Chestnut Hill:556', 'Lowell:1019', 'Methuen:329', 'New Bedford:1398', 'Norfolk-Norwood:333', 'Northampton:1021', 'Pittsfield-Lenox:1370', 'Plymouth:335', 'Springfield:138', 'Taunton-Attleboro:449', 'Williamstown:1143', 'Worcester:339');");
document.writeln("            cities['Maryland'] = new Array('Annapolos:558', 'Baltimore:36', 'Cumberland:1399', 'Newark:1119', 'Rockville-Wheaton:263', 'Salisbury:1291');");
document.writeln("            cities['Maine'] = new Array('Bangor:1023', 'Brunswick:559', 'Camden:560', 'Lewiston-Auburn:445', 'Portland:218', 'Presque Isle:1321');");
document.writeln("            cities['Michigan'] = new Array('Adrian-Tecumseh:1401', 'Alpena:1283', 'Ann Arbor:285', 'Benton Harbor-Niles:1400', 'Detroit:12', 'Grand Rapids:92', 'Ishpeming:1341', 'Kalamazoo-Battle Creek:166', 'Lansing-East Lansing:164', 'Livonia:561', 'Marquette:1324', 'Petoskey:1145', 'Saginaw-Bay City-Midland:180', 'Sterling Heights:563', 'Traverse City-Cadillac:1322', 'Warren:1025');");
document.writeln("            cities['Minnesota'] = new Array('Duluth:564', 'Mankato:1323', 'Minneapolis:32', 'Moorhead:1027', 'Rochester:1029', 'St. Cloud:1031', 'St. Paul:1182', 'White Bear Lake:1033', 'Woodbury:1035', 'Worthington-Hadley:1403');");
document.writeln("            cities['Missouri'] = new Array('Branson:565', 'Cape Girardeau:1325', 'Columbia:566', 'Hannibal:1326', 'Independence:1037', 'Joplin:1299', 'Kansas City:50', 'Kirksville:1276', 'Mercer:1339', 'Rolla:567', 'Springfield:303', 'St. Joseph:1273', 'St. Louis:34', 'Westboro-Fairfax:1404');");
document.writeln("            cities['Mississippi'] = new Array('Biloxi-Gulfport:1304', 'Centreville-Woodville:1357', 'Clarksdale-Batesville-Holly Springs:1407', 'Columbus-Tupelo-West Point:1281', 'Greenwood-Greenville:1285', 'Hattiesburg-Laurel:1277', 'Jackson:186', 'Meridian:1313', 'Oxford:1147', 'Pascagoula:1406', 'Southaven:957');");
document.writeln("            cities['Montana'] = new Array('Baker-Capitol:1409', 'Billings:220', 'Bozeman:1149', 'Glendive:1327', 'Great Falls:1244', 'Helena:1328', 'Libby:1408', 'Missoula:1151');");
document.writeln("            cities['North Carolina'] = new Array('Asheville:552', 'Brevard:570', 'Cary:1039', 'Chapel Hill:1178', 'Charlotte:70', 'Durham:1180', 'Edenton:571', 'Elizabeth City-Murfreesboro:1437', 'Greensboro-Winston Salem-High Pt:80', 'Greenville:572', 'Hayesville-Murphy:1438', 'Hendersonville:573', 'Hickory-Morganton:1041', 'Jacksonville:1043', 'Pinehurst:574', 'Raleigh:102', 'Wilmington:1434');");
document.writeln("            cities['North Dakota'] = new Array('Bismarck:1153', 'Fargo:224');");
document.writeln("            cities['Nebraska'] = new Array('Chadron:1330', 'Homer-Wynot:1292', 'Lincoln:1045', 'North Platte:1329', 'Omaha:122', 'Scottsbluff:1435', 'Valentine-Elsmere:1436');");
document.writeln("            cities['New Hampshire'] = new Array('Berlin-Laconia:1433', 'Claremont-Plymouth:1363', 'Concord:1049', 'Hanover:575', 'Keene:1047', 'Manchester:222', 'Nashua:1051', 'Portsmouth:576');");
document.writeln("            cities['New Jersey'] = new Array('Atlantic City-Vineland:202', 'Cherry Hill:245', 'Elizabeth:236', 'Neptune-Lakewood:204', 'Newark:1055', 'Paterson-Paramus:1053', 'Trenton-Princeton:247', 'Washington-Montgomery:206');");
document.writeln("            cities['New Mexico'] = new Array('Albuquerque:134', 'Carlsbad:1287', 'Las Cruces:577', 'Raton-Mosquero:1242', 'Santa Fe:578', 'Silver City:579');");
document.writeln("            cities['Nevada'] = new Array('Carson City:557', 'Ely-West Wendover:1414', 'Henderson:1057', 'Las Vegas:104', 'Reno:257');");
document.writeln("            cities['New York'] = new Array('Albany:100', 'Binghamton:1303', 'Bronxville:580', 'Buffalo:68', 'Elmira:1248', 'Glens Falls:1059', 'Irondequoit:581', 'Ithaca:582', 'Long Island:251', 'New York Metro:2', 'Oneonta:1155', 'Plattsburgh:1415', 'Poughkeepsie:279', 'Rochester:78', 'Syracuse:116', 'Utica:1331', 'Watertown:1290', 'Yonkers:1061');");
document.writeln("            cities['Ohio'] = new Array('Akron:242', 'Athens-Wellston-Portsmouth:1417', 'Beaver Creek:583', 'Canton-Massillon:188', 'Cincinnati:46', 'Cleveland:26', 'Cleveland Heights:584', 'Columbus:60', 'Dayton:88', 'Lakewood:585', 'Lima:1063', 'Lorain-Elyria:1065', 'Marietta:1332', 'Steubenville:1117', 'Toledo:126', 'Youngstown-Warren:1280', 'Zanesville:128');");
document.writeln("            cities['Oklahoma'] = new Array('Ada:1309', 'Enid:1067', 'Guymon-Knowles:1286', 'Lawton:1308', 'Miami:1307', 'Oklahoma City:86', 'Smithville-Idabel:1416', 'Tulsa-Muskogee:118');");
document.writeln("            cities['Oregon'] = new Array('Ashland:586', 'Baker City-Mount Vernon-Nyssa:1367', 'Bend:587', 'Enterprise-Flora:1418', 'Eugene:588', 'Grants Pass:589', 'Hermiston-Pendleton:1240', 'Medford:590', 'Portland:52', 'Salem:1069');");
document.writeln("            cities['Pennsylvania'] = new Array('Allentown-Bethlehem:130', 'Bradford:1369', 'Chambersburg-Waynesboro:1419', 'Drexel Hill:591', 'Erie:1071', 'Harrisburg - Lebanon:136', 'Johnstown-Altoona:1293', 'King of Prussia:592', 'Lancaster:170', 'Philadelphia:10', 'Pittsburgh:38', 'Reading:325', 'Scranton-Wilkes Barre:124', 'Sharon:1420', 'State College:593', 'Stroudsburg-Port Jervis:1421', 'Wellsboro:1354', 'York:297');");
document.writeln("            cities['Rhode Island'] = new Array('Providence:74');");
document.writeln("            cities['South Carolina'] = new Array('Aiken-N. Augusta:1365', 'Charleston-North Charleston:148', 'Columbia:160', 'Conway:594', 'Edisto:1157', 'Greenville - Spartanburg:112', 'Hilton Head:595', 'Myrtle Beach:596', 'Seabrook Island:597', 'Walterboro-Beaufort:1423');");
document.writeln("            cities['South Dakota'] = new Array('Brookings:598', 'Rapid City:1333', 'Redig-Camp Crook:1424', 'Sioux Falls:226');");
document.writeln("            cities['Tennessee'] = new Array('Bristol-Kingsport:162', 'Chattanooga:168', 'Clarksville:1125', 'Franklin:599', 'Jackson:1334', 'Knoxville:140', 'Maryville:1073', 'Memphis:82', 'Nashville:84', 'Paris:600', 'Tri-Cities:1298', 'Union City:1282');");
document.writeln("            cities['Texas'] = new Array('Abilene-Sweetwater:1258', 'Amarillo:1255', 'Austin - San Marcos:106', 'Beaumont-Port Arthur:1270', 'Carrollton:1075', 'College Station:601', 'Conroe:604', 'Corpus Christi:1261', 'Dallas:18', 'El Paso:132', 'Fort Worth:287', 'Galveston:602', 'Houston:16', 'Kerrville:603', 'Laredo:1260', 'Longview:1425', 'Lubbock:1259', 'Marble Falls:1159', 'McAllen-Edinburg-Mission:192', 'Odessa-Midland:1263', 'Plano:1077', 'Rockport:1161', 'San Angelo:1254', 'San Antonio:62', 'Sherman:1262', 'Texas City:1079', 'Tyler-Lufkin-Nacogdoches:1257', 'Victoria:1264', 'Waco-Temple-Bryan:1256', 'Wichita Falls:1271', 'Wimberley:1163');");
document.writeln("            cities['Utah'] = new Array('Bountiful:605', 'Ogden:1081', 'Orem:1083', 'Provo:606', 'Salt Lake City:76', 'St. George:607');");
document.writeln("");
document.writeln("            cities['Virginia'] = new Array('Alexandria:562', 'Arlington:1085', 'Bluefield:1275', 'Charlottesville:608', 'Chesapeake:1087', 'Danville-Martinsville:1337', 'Hampton Roads:56', 'Harrisonburg:1252', 'Lynchburg:1089', 'Reston-Manassas:267', 'Richmond:96', 'Roanoke:305', 'South Hill:1426', 'Sugarland Run:1090', 'Tri-Cities:1250');");
document.writeln("            cities['Vermont'] = new Array('Bennington-Shaftsbury-Dorset:1344', 'Brattleboro-Bellows Falls:1368', 'Burlington:228', 'Middlebury:609');");
document.writeln("            cities['Washington'] = new Array('Bellevue:1092', 'Bellingham:610', 'Bremerton:1094', 'Olympia:611', 'Port Townsend:612', 'San Juan Islands:613', 'Seattle:28', 'Spokane:200', 'Vancouver-Longview:614', 'Whidbey Island:615', 'Yakima-Pasco-Richland-Kennewick:1253');");
document.writeln("            cities['Wisconsin'] = new Array('Appleton-Oshkosh-Neenah:1096', 'Eagle River:1167', 'Green Bay:1098', 'Kenosha:1100', 'La Crosse-Eau Claire:1121', 'Madison:198', 'Menomonie:1169', 'Milwaukee:48', 'Racine:319', 'Sheboygan:616', 'Sturgeon Bay:1165', 'Superior:1356', 'Waukesha:1102', 'Wausau-Rhinelander:1232');");
document.writeln("            cities['West Virginia'] = new Array('Bluefield-Beckley-Oak Hill:1297', 'Charleston:230', 'Clarksburg-Weston:1294', 'Fort Seybert:1251', 'Huntington:1104', 'Martinsburg:1430', 'Morgantown-Fairmont:1429', 'Parkersburg:1296', 'Wheeling:1295');");
document.writeln("            cities['Wyoming'] = new Array('Casper:1173', 'Cheyenne:232', 'Cody:1366', 'Jackson:1335', 'Laramie:1171', 'Newcastle:1347', 'Rock Springs-Green River:1432');");
document.writeln("");
document.writeln("            function acrSetStateControls(stateid1) {");
document.writeln("                var stateSel = document.getElementById(stateid1);");
document.writeln("                stateSel.options[0] = new Option(\"Select State\", \"\");");
document.writeln("                var i;");
document.writeln("                for (i = 0; i < statesVal.length; i++) {");
document.writeln("                    var str = statesVal[i].split(':');");
document.writeln("                    stateSel.options[i + 1] = new Option(str[0], str[1]);");
document.writeln("                }");
document.writeln("            }");
document.writeln("");
document.writeln("            function acrSetCities(stateid, cityid) {");
document.writeln("                var marketId = document.getElementById(stateid).selectedIndex;");
document.writeln("                var selectedMarket = document.getElementById(stateid).options[marketId].value;");
document.writeln("                if (selectedMarket == \"\") {");
document.writeln("                    acrCleanCity(cityid);");
document.writeln("                }");
document.writeln("                else {");
document.writeln("                    var stateSel = document.getElementById(stateid).options[marketId].text;");
document.writeln("                    cityList = cities[stateSel];");
document.writeln("                    acrChangeSelect(cityid, cityList);");
document.writeln("                }");
document.writeln("            }");
document.writeln("            function acrChangeSelect(fieldID, newOptions) {");
document.writeln("                selectField = document.getElementById(fieldID);");
document.writeln("                selectField.options.length = 0;");
document.writeln("                selectField.options[selectField.length] = new Option(\"Select City\", \"\");");
document.writeln("                var i;");
document.writeln("                for (i = 0; i < newOptions.length; i++) {");
document.writeln("                    var str = newOptions[i].split(':');");
document.writeln("                    selectField.options[selectField.length] = new Option(str[0], str[1]);");
document.writeln("                }");
document.writeln("            }");
document.writeln("");
document.writeln("            function acrCleanCity(cityid) {");
document.writeln("                var cityControlLen = document.getElementById(cityid).options.length;");
document.writeln("                for (var s = cityControlLen - 1; s >= 1; s--) {");
document.writeln("                    document.getElementById(cityid).remove(s);");
document.writeln("                }");
document.writeln("            }");
document.writeln("            function acrCleanVariable(string) {");
document.writeln("                string = string.split(\" \").join(\"\");");
document.writeln("                string = string.split(\",\").join(\"\");");
document.writeln("                string = string.split(\"%\").join(\"\");");
document.writeln("                string = string.split(\"$\").join(\"\");");
document.writeln("                return string;");
document.writeln("            }");
document.writeln("            function acrValidateStateLoanAmount(state, city, loanAmt, spanErr) {");
document.writeln("                if (acrCleanVariable(document.getElementById(loanAmt).value) == \"\" || isNaN(acrCleanVariable(document.getElementById(loanAmt).value))) {");
document.writeln("                    document.getElementById(spanErr).innerHTML = \"\";");
document.writeln("                    document.getElementById(spanErr).innerHTML = \"*Please enter a valid loan amount.\";");
document.writeln("                    return false;");
document.writeln("                }");
document.writeln("                if (document.getElementById(state).selectedIndex == \"0\") {");
document.writeln("                    document.getElementById(spanErr).innerHTML = \"\";");
document.writeln("                    document.getElementById(spanErr).innerHTML = \"*Please select a state.\";");
document.writeln("                    return false;");
document.writeln("                }");
document.writeln("                if (document.getElementById(city).selectedIndex == \"0\") {");
document.writeln("                    document.getElementById(spanErr).innerHTML = \"\";");
document.writeln("                    document.getElementById(spanErr).innerHTML = \"*Please select a city.\";");
document.writeln("                    return false;");
document.writeln("                }");
document.writeln("                else {");
document.writeln("                    document.getElementById(spanErr).innerHTML = \"\";");
document.writeln("                    return true;");
document.writeln("                }");
document.writeln("            }");
document.writeln("");
document.writeln("            function allCompareRatesResultPage(divID) {");
document.writeln("                var url = \"\";");
document.writeln("                //CD Tab.......");
document.writeln("                if (divID == \"acrcdBtn\") {");
document.writeln("                    var productIndex = document.getElementById(\"acrcdProductddl\").selectedIndex;");
document.writeln("                    var productValue = document.getElementById(\"acrcdProductddl\").options[productIndex].value;");
document.writeln("                    if (document.getElementById(\"accrcdNational\").checked) {");
document.writeln("                        url = 'local=';");
document.writeln("                        url += 'false';");
document.writeln("                        url += '&tab=CD';");
document.writeln("                        if (productValue == \"14\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_6monthCD';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/cd-investment-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (productValue == \"15\" && productIndex == \"1\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_1yearCD';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/cd-investment-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (productValue == \"18\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_3yearCD';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/cd-investment-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (productValue == \"19\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_5yearCD';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/cd-investment-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (productValue == \"24\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_1yearJumboCD';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/cd-investment-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (productValue == \"15\" && productIndex == \"5\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_SeeallCDproducts';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/cd-investment-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                    }");
document.writeln("                    if (document.getElementById(\"accrcdLocal\").checked) {");
document.writeln("                        url = 'local=';");
document.writeln("                        url += 'true';");
document.writeln("                        if (productValue == \"14\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_6monthCD';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/?\" + url);");
document.writeln("                        }");
document.writeln("                        if (productValue == \"15\" && productIndex == \"1\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_1yearCD';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/?\" + url);");
document.writeln("                        }");
document.writeln("                        if (productValue == \"18\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_3yearCD';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/?\" + url);");
document.writeln("                        }");
document.writeln("                        if (productValue == \"19\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_5yearCD';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/?\" + url);");
document.writeln("                        }");
document.writeln("                        if (productValue == \"24\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_1yearJumboCD';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/cd-investment-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (productValue == \"15\" && productIndex == \"5\") {");
document.writeln("                            url += '&prods=' + productValue;");
document.writeln("                            url += '&ic_id=CR_searchCDRates_individual_retirement_accounts_SeeallCDproducts';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/cd-investments/cd-investment-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                    }");
document.writeln("                }");
document.writeln("                if (divID == \"acrMrtgBtn\") {");
document.writeln("                    var mrtgproductIndex = document.getElementById(\"acrMrtgProductddl\").selectedIndex;");
document.writeln("                    var mrtgproductValue = document.getElementById(\"acrMrtgProductddl\").options[mrtgproductIndex].value;");
document.writeln("");
document.writeln("                    if (acrValidateStateLoanAmount('acrMrtgStateddl', 'acrMrtgCityddl', 'acrMrtgLoanAmount', 'acrerrmrtgLoanAmount')) {");
document.writeln("                        var mrtgcityIndex = document.getElementById(\"acrMrtgCityddl\").selectedIndex;");
document.writeln("                        var mrtgcityValue = document.getElementById(\"acrMrtgCityddl\").options[mrtgcityIndex].value;");
document.writeln("                        url = 'prods=' + mrtgproductValue;");
document.writeln("                        url += '&points=';");
document.writeln("                        url += '&loan=' + acrCleanVariable(document.getElementById(\"acrMrtgLoanAmount\").value);");
document.writeln("                        url += '&market=' + mrtgcityValue;");
document.writeln("                        url += '&perc=20';");
document.writeln("                        if (mrtgproductValue == \"2\") {");
document.writeln("                            url += '&ic_id=CR_searchMtgStateCity_mortgage_15yearfixed';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/mortgages/mortgage-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (mrtgproductValue == \"1\" && mrtgproductIndex == \"1\") {");
document.writeln("                            url += '&ic_id=CR_searchMtgStateCity_mortgage_30yearfixed';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/mortgages/mortgage-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (mrtgproductValue == \"6\") {");
document.writeln("                            url += '&ic_id=CR_searchMtgStateCity_mortgage_5/1ARM';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/mortgages/mortgage-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (mrtgproductValue == \"9\") {");
document.writeln("                            url += '&ic_id=CR_searchMtgStateCity_mortgage_7/1ARM';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/mortgages/mortgage-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (mrtgproductValue == \"1\" && mrtgproductIndex == \"4\") {");
document.writeln("                            url += '&ic_id=CR_searchMtgStateCity_mortgage_SeeallMortgageproducts';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/mortgages/mortgage-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                    }");
document.writeln("                }");
document.writeln("                if (divID == \"acrRefinanceBtn\") {");
document.writeln("                    var refinanceproductIndex = document.getElementById(\"acrRefinanceProductddl\").selectedIndex;");
document.writeln("                    var refinanceroductValue = document.getElementById(\"acrRefinanceProductddl\").options[refinanceproductIndex].value;");
document.writeln("                    if (acrValidateStateLoanAmount('acrRefinanceStateddl', 'acrRefinanceCityddl', 'acrRefinanceLaonAmount', 'acrerrrefinanceLaonAmount')) {");
document.writeln("                        var refinancecityIndex = document.getElementById(\"acrRefinanceCityddl\").selectedIndex;");
document.writeln("                        var refinancecityValue = document.getElementById(\"acrRefinanceCityddl\").options[refinancecityIndex].value;");
document.writeln("                        url = 'prods=' + refinanceroductValue;");
document.writeln("                        url += '&points=';");
document.writeln("                        url += '&loan=' + acrCleanVariable(document.getElementById(\"acrRefinanceLaonAmount\").value);");
document.writeln("                        url += '&market=' + refinancecityValue;");
document.writeln("                        url += '&perc=20';");
document.writeln("                        if (refinanceroductValue == \"215\") {");
document.writeln("                            url += '&ic_id=CR_searchMtgRefiStateCity_refinance_15yearfixed';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/mortgages/mortgage-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (refinanceroductValue == \"216\" && refinanceproductIndex == \"1\") {");
document.writeln("                            url += '&ic_id=CR_searchMtgRefiStateCity_refinance_30yearfixed';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/mortgages/mortgage-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (refinanceroductValue == \"219\") {");
document.writeln("                            url += '&ic_id=CR_searchMtgRefiStateCity_refinance_5/1ARM';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/mortgages/mortgage-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (refinanceroductValue == \"220\") {");
document.writeln("                            url += '&ic_id=CR_searchMtgRefiStateCity_refinance_7/1ARM';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/mortgages/mortgage-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                        if (refinanceroductValue == \"216\" && refinanceproductIndex == \"4\") {");
document.writeln("                            url += '&ic_id=CR_searchMtgRefiStateCity_refinance_SeeallMortgageproducts';");
document.writeln("                            window.open(\"http://www.bankrate.com/funnel/mortgages/mortgage-results.aspx?\" + url);");
document.writeln("                        }");
document.writeln("                    }");
document.writeln("                }");
document.writeln("");
document.writeln("                if (divID == \"acrCardsBtn\") {");
document.writeln("                    var ddlProductVal2 = \"acrselCardType\";");
document.writeln("                    var classDesc = \"Card%20Type\";");
document.writeln("                    var classType = \"1\";");
document.writeln("                    var typeIndex = document.getElementById(\"acrCardsddl\").selectedIndex;");
document.writeln("                    var typeValue = document.getElementById(\"acrCardsddl\").options[typeIndex].value;");
document.writeln("                    var typeID = document.getElementById(\"acrCardsddl\").options[typeIndex].id;");
document.writeln("");
document.writeln("                    var productIndex = document.getElementById(\"acrCardsddl\").selectedIndex;");
document.writeln("                    var ddlProductVal1 = document.getElementById(\"acrCardsddl\").options[productIndex].value;");
document.writeln("                    var ddlProductText = document.getElementById(\"acrCardsddl\").options[productIndex].text;");
document.writeln("                    if (document.getElementById(\"acrselCardType\").checked) {");
document.writeln("                        ddlProductVal2 = acrChangeddlProduct(\"acrselCardType\", ddlProductVal1);");
document.writeln("                        classType = \"1\";");
document.writeln("                        classDesc = \"Card%20Type\";");
document.writeln("                    }");
document.writeln("                    if (document.getElementById(\"acrselCreditScore\").checked) {");
document.writeln("                        ddlProductVal2 = acrChangeddlProduct(\"acrselCreditScore\", ddlProductVal1);");
document.writeln("                        classType = \"2\";");
document.writeln("                        classDesc = \"Credit%20Type\";");
document.writeln("                    }");
document.writeln("                    if (document.getElementById(\"acrSelIssuer\").checked) {");
document.writeln("                        ddlProductVal2 = acrChangeddlProduct(\"acrSelIssuer\", ddlProductVal1);");
document.writeln("                        classType = \"3\";");
document.writeln("                        classDesc = \"Card%20Issuers\";");
document.writeln("                    }");
document.writeln("                    var url = \"\";");
document.writeln("                    url += \"http://www.bankrate.com/funnel/credit-cards/credit-card-results.aspx?\";");
document.writeln("                    url += \"classificationuid=\" + ddlProductVal1;");
document.writeln("                    url += \"&childcategoryid=\" + ddlProductVal2;");
document.writeln("                    url += \"&childcategory=\" + ddlProductText.replace(/ /g, \"+\"); ;");
document.writeln("                    url += \"&classtypeuid=\" + classType;");
document.writeln("                    url += \"&classtypedesc=\" + classDesc;");
document.writeln("                    url += \"&ec_id=&af=&ac=&ic_id=CR_searchCreditCards_credit_cards_\";");
document.writeln("                    url += ddlProductText.replace(/ /g, \"\");");
document.writeln("                    window.open(url);");
document.writeln("");
document.writeln("                }");
document.writeln("            }");
document.writeln("");
document.writeln("            //Credit Cards.....");
document.writeln("");
document.writeln("            var products = new Array();");
document.writeln("            products['0'] = new Array('Featured Cards:1;0', 'Low Interest Cards:2;109', 'Balance Transfer Cards:3;110', 'Student Cards:4;111', 'Cash Back Cards:5;114', 'Frequent Flyer Cards:6;115', 'Gas Rewards Cards:7;116', 'Rewards Cards:8;117', 'Business Cards:9;118', 'Cards for Bad Credit:10;120', 'PrePaid Cards:30;121', 'Charge Cards:12;162', 'Secured Cards:13;837', 'Retail Credit Cards:14;161');");
document.writeln("            products['1'] = new Array('Excellent Credit:15;999', 'Good Credit:16;999', 'Average Credit:17;999', 'Bad Credit:18;999');");
document.writeln("            products['2'] = new Array('Chase Credit Cards:19;12', 'DiscoverÂ® Credit Cards:20;11', 'CitiÂ® Credit Cards:21;27', 'Capital OneÂ® Credit Cards:22;63', 'PartnersFirst:31;1633', 'American Express Credit Cards:24;21', 'First PREMIERÂ® Bank Credit Cards:25;17', 'VisaÂ® Credit Cards:28;123', 'MasterCardÂ® Credit Cards:29;124');");
document.writeln("            function acrChangeddlProduct(ddlID, prodVal) {");
document.writeln("                typeSel = document.getElementById(ddlID);");
document.writeln("                productList = products[typeSel.value];");
document.writeln("                var val = acrChangeSelectProduct('acrCardsddl', productList, prodVal);");
document.writeln("                return val;");
document.writeln("            }");
document.writeln("");
document.writeln("            function acrChangeSelectProduct(fieldID, newOptions, newValues) {");
document.writeln("                selectField = document.getElementById(fieldID);");
document.writeln("                selectField.options.length = 0;");
document.writeln("                var i;");
document.writeln("                var abc = 0;");
document.writeln("                for (i = 0; i < newOptions.length; i++) {");
document.writeln("                    var str = newOptions[i].split(':');");
document.writeln("                    var str3 = str[1];");
document.writeln("                    var str2 = str3.split(';');");
document.writeln("                    selectField.options[selectField.length] = new Option(str[0], str2[0]);");
document.writeln("                    if (newValues == str2[0]) {");
document.writeln("                        abc = str2[1];");
document.writeln("                    }");
document.writeln("                }");
document.writeln("                if (abc == null)");
document.writeln("                    return 0;");
document.writeln("                else");
document.writeln("                    return abc;");
document.writeln("            }");
document.writeln("");
document.writeln("            function acrGetColor(imgID) {");
document.writeln("                var i;");
document.writeln("                if (imgID == \"1\") {");
document.writeln("                    document.getElementById(\"acrcdbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-blue\" + \" BankrateFCC_cr-blue-border\";");
document.writeln("                    document.getElementById(\"acrMrtgbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-blue\" + \" BankrateFCC_cr-blue-border\";");
document.writeln("                    document.getElementById(\"acrcardsbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-blue\" + \" BankrateFCC_cr-blue-border\";");
document.writeln("                    document.getElementById(\"acrRefinancebodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-blue\" + \" BankrateFCC_cr-blue-border\";");
document.writeln("                    document.getElementById(\"acrulDiv\").className = \"BankrateFCC_cr-tabstyle1\";");
document.writeln("                    document.getElementById(\"acrtabDiv\").className = \"BankrateFCC_cr-tabs-container-small\" + \" BankrateFCC_cr-blue-border\";");
document.writeln("                    for (i = 0; i < tablen.length; i++) {");
document.writeln("                        document.getElementById(\"acrfooterDiv\" + tablen[i]).className = \"BankrateFCC_cr-footer-container BankrateFCC_cr-small\" + \" BankrateFCC_cr-dkblue\";");
document.writeln("                        document.getElementById(\"acrheaderDiv\" + tablen[i]).className = \"BankrateFCC_cr-boxhead-container-small\" + \" BankrateFCC_cr-blue-border\";");
document.writeln("                    }");
document.writeln("                }");
document.writeln("                if (imgID == \"2\") {");
document.writeln("                    document.getElementById(\"acrcdbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-orange\" + \" BankrateFCC_cr-orange-border\";");
document.writeln("                    document.getElementById(\"acrMrtgbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-orange\" + \" BankrateFCC_cr-orange-border\";");
document.writeln("                    document.getElementById(\"acrcardsbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-orange\" + \" BankrateFCC_cr-orange-border\";");
document.writeln("                    document.getElementById(\"acrRefinancebodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-orange\" + \" BankrateFCC_cr-orange-border\";");
document.writeln("                    document.getElementById(\"acrulDiv\").className = \"BankrateFCC_cr-orange-tabstyle1\";");
document.writeln("                    document.getElementById(\"acrtabDiv\").className = \"BankrateFCC_cr-tabs-container-small\" + \" BankrateFCC_cr-orange-border\";");
document.writeln("                    for (i = 0; i < tablen.length; i++) {");
document.writeln("                        document.getElementById(\"acrfooterDiv\" + tablen[i]).className = \"BankrateFCC_cr-footer-container BankrateFCC_cr-small\" + \" BankrateFCC_cr-dkorange\";");
document.writeln("                        document.getElementById(\"acrheaderDiv\" + tablen[i]).className = \"BankrateFCC_cr-boxhead-container-small\" + \" BankrateFCC_cr-orange-border\";");
document.writeln("                    }");
document.writeln("                }");
document.writeln("                if (imgID == \"3\") {");
document.writeln("                    document.getElementById(\"acrcdbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-gray\" + \" BankrateFCC_cr-gray-border\";");
document.writeln("                    document.getElementById(\"acrMrtgbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-gray\" + \" BankrateFCC_cr-gray-border\";");
document.writeln("                    document.getElementById(\"acrcardsbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-gray\" + \" BankrateFCC_cr-gray-border\";");
document.writeln("                    document.getElementById(\"acrRefinancebodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-gray\" + \" BankrateFCC_cr-gray-border\";");
document.writeln("                    document.getElementById(\"acrulDiv\").className = \"BankrateFCC_cr-gray-tabstyle1\";");
document.writeln("                    document.getElementById(\"acrtabDiv\").className = \"BankrateFCC_cr-tabs-container-small\" + \" BankrateFCC_cr-gray-border\";");
document.writeln("                    for (i = 0; i < tablen.length; i++) {");
document.writeln("                        document.getElementById(\"acrfooterDiv\" + tablen[i]).className = \"BankrateFCC_cr-footer-container BankrateFCC_cr-small\" + \" BankrateFCC_cr-dkgray\";");
document.writeln("                        document.getElementById(\"acrheaderDiv\" + tablen[i]).className = \"BankrateFCC_cr-boxhead-container-small\" + \" BankrateFCC_cr-gray-border\";");
document.writeln("                    }                 }");
document.writeln("                if (imgID == \"4\") {");
document.writeln("                    document.getElementById(\"acrcdbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-green\" + \" BankrateFCC_cr-green-border\";");
document.writeln("                    document.getElementById(\"acrMrtgbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-green\" + \" BankrateFCC_cr-green-border\";");
document.writeln("                    document.getElementById(\"acrcardsbodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-green\" + \" BankrateFCC_cr-green-border\";");
document.writeln("                    document.getElementById(\"acrRefinancebodyDiv\").className = \"BankrateFCC_cr-container-small\" + \" BankrateFCC_cr-green\" + \" BankrateFCC_cr-green-border\";");
document.writeln("                    document.getElementById(\"acrulDiv\").className = \"BankrateFCC_cr-green-tabstyle1\";");
document.writeln("                    document.getElementById(\"acrtabDiv\").className = \"BankrateFCC_cr-tabs-container-small\" + \" BankrateFCC_cr-green-border\";");
document.writeln("                    //document.getElementById(\"acrfooterDiv\").className  = \"BankrateFCC_cr-footer-container BankrateFCC_cr-small\" + \" BankrateFCC_cr-dkgreen\";");
document.writeln("                    for (i = 0; i < tablen.length; i++) {");
document.writeln("                        document.getElementById(\"acrfooterDiv\" + +tablen[i]).className = \"BankrateFCC_cr-footer-container cr-small\" + \" BankrateFCC_cr-dkgreen\";");
document.writeln("                        document.getElementById(\"acrheaderDiv\" + tablen[i]).className = \"BankrateFCC_cr-boxhead-container-small\" + \" BankrateFCC_cr-green-border\";");
document.writeln("                    }");
document.writeln("                }");
document.writeln("            }");
document.writeln("            function acrSetFontFamily() {");
document.writeln("                var ddlFontValue = allcrFontValue;");
document.writeln("                document.getElementById(\"acrcdbodyDiv\").style.fontFamily = ddlFontValue;");
document.writeln("                document.getElementById(\"acrMrtgbodyDiv\").style.fontFamily = ddlFontValue;");
document.writeln("                document.getElementById(\"acrcardsbodyDiv\").style.fontFamily = ddlFontValue;");
document.writeln("                document.getElementById(\"acrRefinancebodyDiv\").style.fontFamily = ddlFontValue;");
document.writeln("                for (var i = 0; i < tablen.length; i++) {");
document.writeln("                    document.getElementById(\"acrtitle\" + tablen[i]).style.fontFamily = ddlFontValue;");
document.writeln("                    document.getElementById(\"acrsubHead\" + tablen[i]).style.fontFamily = ddlFontValue;");
document.writeln("                }");
document.writeln("            }");
document.writeln("");
document.writeln("            function acrWidgetSize() {");
document.writeln("                var sizeOfWidget = allcrWidgetSize;");
document.writeln("                document.getElementById(\"acrtabDiv\").style.width = parseInt(sizeOfWidget) + \"px\";");
document.writeln("                var moz = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined');");
document.writeln("                var ie = (typeof window.ActiveXObject != 'undefined');");
document.writeln("                if (moz) {");
document.writeln("                    document.getElementById(\"acrcdbodyDiv\").style.width = parseInt(sizeOfWidget) - parseInt(20) + \"px\";");
document.writeln("                    document.getElementById(\"acrMrtgbodyDiv\").style.width = parseInt(sizeOfWidget) - parseInt(20) + \"px\";");
document.writeln("                    document.getElementById(\"acrcardsbodyDiv\").style.width = parseInt(sizeOfWidget) - parseInt(20) + \"px\";");
document.writeln("                    document.getElementById(\"acrRefinancebodyDiv\").style.width = parseInt(sizeOfWidget) - parseInt(20) + \"px\";");
document.writeln("                        for (var i = 0; i < tablen.length; i++) {");
document.writeln("                            document.getElementById(\"acrfooterDiv\" + tablen[i]).style.width = parseInt(sizeOfWidget) + parseInt(2) + \"px\";");
document.writeln("                            document.getElementById(\"acrheaderDiv\" + tablen[i]).style.width = sizeOfWidget + \"px\";");
document.writeln("                        }");
document.writeln("                  } else if (ie) {");
document.writeln("                  if(Checkfun())");
document.writeln("                  {");
document.writeln("                      document.getElementById(\"acrcdbodyDiv\").style.width = parseInt(sizeOfWidget) - parseInt(20) + \"px\";");
document.writeln("                      document.getElementById(\"acrMrtgbodyDiv\").style.width = parseInt(sizeOfWidget) - parseInt(20) + \"px\";");
document.writeln("                      document.getElementById(\"acrcardsbodyDiv\").style.width = parseInt(sizeOfWidget) - parseInt(20)  + \"px\";");
document.writeln("                      document.getElementById(\"acrRefinancebodyDiv\").style.width = parseInt(sizeOfWidget) - parseInt(20) + \"px\";");
document.writeln("                      for (var i = 0; i < tablen.length; i++) {");
document.writeln("                          document.getElementById(\"acrfooterDiv\" + tablen[i]).style.width = parseInt(sizeOfWidget) + parseInt(2) + \"px\";");
document.writeln("                          document.getElementById(\"acrheaderDiv\" + tablen[i]).style.width = parseInt(sizeOfWidget)  + \"px\";");
document.writeln("                      }");
document.writeln("                  }");
document.writeln("                  else");
document.writeln("                  {");
document.writeln("                      document.getElementById(\"acrcdbodyDiv\").style.width = parseInt(sizeOfWidget) + \"px\";");
document.writeln("                      document.getElementById(\"acrMrtgbodyDiv\").style.width = parseInt(sizeOfWidget) + \"px\";");
document.writeln("                      document.getElementById(\"acrcardsbodyDiv\").style.width = parseInt(sizeOfWidget)  + \"px\";");
document.writeln("                      document.getElementById(\"acrRefinancebodyDiv\").style.width = parseInt(sizeOfWidget)  + \"px\";");
document.writeln("                      for (var i = 0; i < tablen.length; i++) {");
document.writeln("                          document.getElementById(\"acrfooterDiv\" + tablen[i]).style.width = parseInt(sizeOfWidget) + \"px\";");
document.writeln("                          document.getElementById(\"acrheaderDiv\" + tablen[i]).style.width = parseInt(sizeOfWidget)  + \"px\";");
document.writeln("                      }");
document.writeln("                  }");
document.writeln("              }");
document.writeln("          }");
document.writeln("            function acrRefreshTableData() {");
document.writeln("                document.getElementById(\"acrMrtgbodyDiv\").style.display = \"none\";");
document.writeln("                document.getElementById(\"acrcdbodyDiv\").style.display = \"none\";");
document.writeln("                document.getElementById(\"acrcardsbodyDiv\").style.display = \"none\";");
document.writeln("                document.getElementById(\"acrRefinancebodyDiv\").style.display = \"none\";");
document.writeln("");
document.writeln("                document.getElementById(\"acrTab1\").className = \"BankrateFCC_tab\";");
document.writeln("                document.getElementById(\"acrTab2\").className = \"BankrateFCC_tab\";");
document.writeln("                document.getElementById(\"acrTab3\").className = \"BankrateFCC_tab\";");
document.writeln("                document.getElementById(\"acrTab4\").className = \"BankrateFCC_tab\";");
document.writeln("");
document.writeln("                for (var i = 0; i < tablen.length; i++) {");
document.writeln("                    document.getElementById(\"acrfooterDiv\" + tablen[i]).style.display = \"none\";");
document.writeln("                    document.getElementById(\"acrheaderDiv\" + tablen[i]).style.display = \"none\";");
document.writeln("                }");
document.writeln("            }");
document.writeln("");
document.writeln("            var selectedTab = \"\";");
document.writeln("            function showSelectedACRTab(showme) {");
document.writeln("                selectedTab = showme;");
document.writeln("                if (showme == \"1\") {");
document.writeln("                    acrRefreshTableData();");
document.writeln("                    document.getElementById(\"acrfooterDiv1\").style.display = \"block\";");
document.writeln("                    document.getElementById(\"acrheaderDiv1\").style.display = \"block\";");
document.writeln("                    document.getElementById(\"acrTab1\").className = \"BankrateFCC_tab BankrateFCC_selected\";");
document.writeln("                    document.getElementById(\"acrcdbodyDiv\").style.display = \"block\";");
document.writeln("                }");
document.writeln("                if (showme == \"2\") {");
document.writeln("                    acrRefreshTableData();");
document.writeln("                    document.getElementById(\"acrfooterDiv2\").style.display = \"block\";");
document.writeln("                    document.getElementById(\"acrheaderDiv2\").style.display = \"block\";");
document.writeln("                    document.getElementById(\"acrTab2\").className = \"BankrateFCC_tab BankrateFCC_selected\";");
document.writeln("                    document.getElementById(\"acrMrtgbodyDiv\").style.display = \"block\";");
document.writeln("                }");
document.writeln("                if (showme == \"3\") {");
document.writeln("                    acrRefreshTableData();");
document.writeln("                    document.getElementById(\"acrheaderDiv3\").style.display = \"block\";");
document.writeln("                    document.getElementById(\"acrfooterDiv3\").style.display = \"block\";");
document.writeln("                    document.getElementById(\"acrcardsbodyDiv\").style.display = \"block\";");
document.writeln("                    document.getElementById(\"acrTab3\").className = \"BankrateFCC_tab BankrateFCC_selected\";");
document.writeln("                }");
document.writeln("                if (showme == \"4\") {");
document.writeln("                    acrRefreshTableData();");
document.writeln("                    document.getElementById(\"acrheaderDiv4\").style.display = \"block\";");
document.writeln("                    document.getElementById(\"acrfooterDiv4\").style.display = \"block\";");
document.writeln("                    document.getElementById(\"acrRefinancebodyDiv\").style.display = \"block\";");
document.writeln("                    document.getElementById(\"acrTab4\").className = \"BankrateFCC_tab BankrateFCC_selected\";");
document.writeln("                }");
document.writeln("            }");
document.writeln("");
document.writeln("            var allcrSelectedColor = \"\";");
document.writeln("            var allcrFontValue = \"\";");
document.writeln("            var allcrWidgetSize = \"\";");
document.writeln("            var allcrValues = \"\";");
document.writeln("            var allcrdisplayTab = \"\"");
document.writeln("            var allcrSelectedTabs = \"\";");
document.writeln("            var tablen = \"\";");
document.writeln("            allcrValues = document.getElementById('allcr').value;");
document.writeln("            function initACR() {");
document.writeln("                allcrValues = allcrValues.split(',');");
document.writeln("                allcrSelectedColor = allcrValues[0];");
document.writeln("                allcrFontValue = allcrValues[1];");
document.writeln("                allcrWidgetSize = allcrValues[2];");
document.writeln("                allcrSelectedTabs = allcrValues[3];");
document.writeln("                allcrdisplayTab = allcrValues[4];");
document.writeln("                tablen = allcrSelectedTabs.split(':');");
document.writeln("                if (allcrSelectedTabs.match(\"3\") && allcrFontValue == \"Verdana\") {");
document.writeln("                allcrWidgetSize = \"350\";");
document.writeln("                }");
document.writeln("                acrGetColor(allcrSelectedColor);");
document.writeln("                acrSetFontFamily();");
document.writeln("                acrWidgetSize();");
document.writeln("                showSelectedACRTab(allcrdisplayTab);");
document.writeln("                acrShowTabs(allcrSelectedTabs);");
document.writeln("                acrSetStateControls(\"acrMrtgStateddl\");");
document.writeln("                acrSetStateControls(\"acrRefinanceStateddl\");");
document.writeln("                acrChangeddlProduct('acrselCardType', 'xyz');");
document.writeln("            }");
document.writeln("            function acrShowTabs(tabValues) {");
document.writeln("                tablen = tabValues.split(':');");
document.writeln("                var i = 0;");
document.writeln("                if (tablen.length > 1) {");
document.writeln("                    document.getElementById(\"acrtabDiv\").style.display = \"block\";");
document.writeln("                    for (i = 0; i < tablen.length; i++) {");
document.writeln("                        acrTabVisible(\"acrTab\" + tablen[i]);");
document.writeln("                    }");
document.writeln("                }");
document.writeln("                else if (tablen.length == 1) {");
document.writeln("                    document.getElementById(\"acrtabDiv\").style.display = \"none\";");
document.writeln("                    acrClearTabs(\"acrTab\" + tablen[0]);");
document.writeln("                }");
document.writeln("            }");
document.writeln("            function acrTabVisible(tabid) {");
document.writeln("                document.getElementById(tabid).style.display = \"block\";");
document.writeln("            }");
document.writeln("            function acrClearTabs(tabID) {");
document.writeln("                document.getElementById(tabID).style.display = \"none\";");
document.writeln("            }");
document.writeln("");
document.writeln("      function Checkfun(){");
document.writeln("        var i=0;");
document.writeln("        var strToFind =\/DOCTYPE\/;");
document.writeln("        var docCount = 0;");
document.writeln("        var docChekStatus = false;");
document.writeln("        var flagt_comment = false;");
document.writeln("        var loopexec = true;");
document.writeln("        for(i=0; i< document.all.length; i++)");
document.writeln("        {");
document.writeln("          if(loopexec){");
document.writeln("            if(document.all[i].text != null)");
document.writeln("            {");
document.writeln("                var nVal = document.all[i].text;");
document.writeln("                var substr = nVal.substring('1', '4');");
document.writeln("                  if(substr != \"\" && substr == '!--')");
document.writeln("                    flagt_comment =true;");
document.writeln("");
document.writeln("                if(findPos != -1)");
document.writeln("                {");
document.writeln("                  var substr1 = nVal.substring('1', '4');");
document.writeln("                  if(substr1 != \"\" && substr1 != '!--'){");
document.writeln("                    var findPos = nVal.search(strToFind);");
document.writeln("                    var posd = nVal.substring(parseInt(findPos - 1), findPos);");
document.writeln("                    if(posd == '!')");
document.writeln("                    {");
document.writeln("                      docCount = parseInt(docCount) + 1;");
document.writeln("                      loopexec = false;");
document.writeln("                    }");
document.writeln("                  }");
document.writeln("                }");
document.writeln("            }");
document.writeln("          }");
document.writeln("        }");
document.writeln("        if(docCount >= 1 && !flagt_comment)");
document.writeln("           docChekStatus = true;");
document.writeln("        return docChekStatus;");
document.writeln("      }");
document.writeln("</script>");
document.writeln("");
document.writeln("</head>");
document.writeln("");
document.writeln("<body>");
document.writeln("            <div id=\"acrtabDiv\" class=\"BankrateFCC_oa-tabboxhead-container-small\" style=\"display:none\">");
document.writeln("              <ul id=\"acrulDiv\"  class=\"BankrateFCC_cr-tabstyle1\">");
document.writeln("");
document.writeln("                <li style=\"DISPLAY: none\" id=\"acrTab1\" class=\"BankrateFCC_tab BankrateFCC_selected\" >");
document.writeln("                  <a href=\"javascript: onclick=showSelectedACRTab('1')\">CD </a>");
document.writeln("                </li>");
document.writeln("");
document.writeln("                <li style=\"DISPLAY: none\" id=\"acrTab2\" class=\"BankrateFCC_tab\">");
document.writeln("                  <a href=\"javascript: onclick=showSelectedACRTab('2')\">Mortgages</a>");
document.writeln("                </li>");
document.writeln("");
document.writeln("                <li style=\"DISPLAY: none\" id=\"acrTab3\" class=\"BankrateFCC_tab\">");
document.writeln("                  <a href=\"javascript: onclick=showSelectedACRTab('3')\">Credit Cards</a>");
document.writeln("                </li>");
document.writeln("");
document.writeln("                <li style=\"DISPLAY: none\" id=\"acrTab4\" class=\"BankrateFCC_tab\">");
document.writeln("                  <a href=\"javascript: onclick=showSelectedACRTab('4')\">Refinance</a>");
document.writeln("                </li>");
document.writeln("              </ul>");
document.writeln("            </div>");
document.writeln("");
document.writeln("		              <div id=\"acrcdbodyDiv\"  style=\"display:none;\"  class=\"BankrateFCC_cr-container-small\">");
document.writeln("		                <div class=\"BankrateFCC_cr-colFull\">");
document.writeln("		                  <strong>1.</strong>&nbsp;&nbsp;");
document.writeln("		                  <input type=\"radio\" name=\"acrCDLocationType\" id=\"accrcdNational\" value=\"0\" checked=\"checked\" /> National&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
document.writeln("		                  <input type=\"radio\" name=\"acrCDLocationType\" id=\"accrcdLocal\" value=\"1\" /> Local");
document.writeln("		                </div>");
document.writeln("		                <div class=\"BankrateFCC_cr-height10\"></div>");
document.writeln("		                <div class=\"BankrateFCC_cr-colFull height15\">");
document.writeln("		                  <strong>2.</strong>&nbsp;&nbsp; Select a product:&nbsp;&nbsp;");
document.writeln("		                  <select id=\"acrcdProductddl\" class=\"BankrateFCC_cr-sel-options\">");
document.writeln("		                    <option value=\"14\">6 month CD</option>");
document.writeln("		                    <option value=\"15\" selected=\"selected\">1 year CD</option>");
document.writeln("		                    <option value=\"18\">3 year CD</option>");
document.writeln("		                    <option value=\"19\">5 year CD</option>");
document.writeln("		                    <option value=\"24\">1 year Jumbo CD</option>");
document.writeln("		                    <option value=\"15\">See all CD products</option>");
document.writeln("		                  </select>");
document.writeln("		                </div>");
document.writeln("		                <div class=\"BankrateFCC_cr-height10\"></div>");
document.writeln("		                <div class=\"BankrateFCC_cr-button-small\">");
document.writeln("		                  <div>");
document.writeln("		                    <a id=\"acrcdBtn\" href=\"javascript:onclick=allCompareRatesResultPage('acrcdBtn')\">Search</a>");
document.writeln("		                  </div>");
document.writeln("		                </div>");
document.writeln("					  </div>");
document.writeln("");
document.writeln("                  <div id=\"acrcardsbodyDiv\"  style=\"display:none;\" class=\"BankrateFCC_cr-container-small\">");
document.writeln("              <div  class=\"BankrateFCC_cr-colFull\">");
document.writeln("                <strong>1.</strong>&nbsp;&nbsp;Select a credit card product by:");
document.writeln("              </div>");
document.writeln("              <div  class=\"BankrateFCC_cr-colFull\">");
document.writeln("                &nbsp;&nbsp;&nbsp;");
document.writeln("                <input id=\"acrselCardType\" name=\"acrselCreditCard\" value=\"0\" checked=\"checked\" type=\"radio\"  onclick=\"acrChangeddlProduct('acrselCardType','xyz')\"/> Card type&nbsp;&nbsp;");
document.writeln("                <input id=\"acrselCreditScore\" name=\"acrselCreditCard\" value=\"1\" type=\"radio\" onclick=\"acrChangeddlProduct('acrselCreditScore','xyz')\" /> Credit score&nbsp;&nbsp;");
document.writeln("                <input id=\"acrSelIssuer\" value=\"2\" name=\"acrselCreditCard\" type=\"radio\" onclick=\"acrChangeddlProduct('acrSelIssuer','xyz')\" /> Issuer");
document.writeln("              </div>");
document.writeln("              <div class=\"BankrateFCC_cr-height15\"></div>");
document.writeln("              <div class=\"BankrateFCC_cr-colFull\">");
document.writeln("                <strong>2.</strong>&nbsp;&nbsp; Select an offer:&nbsp;&nbsp;");
document.writeln("                <select id=\"acrCardsddl\" class=\"BankrateFCC_cr-sel-options-lg\">");
document.writeln("                  <!--<option>Balance transfer cards</option>-->");
document.writeln("                </select>");
document.writeln("              </div>");
document.writeln("              <div class=\"BankrateFCC_cr-height10\"></div>");
document.writeln("              <div class=\"BankrateFCC_cr-button-small\">");
document.writeln("                <div>");
document.writeln("                  <a id=\"acrCardsBtn\" href=\"javascript:onclick=allCompareRatesResultPage('acrCardsBtn')\">Search</a>");
document.writeln("                </div>");
document.writeln("              </div>");
document.writeln("            </div>");
document.writeln("");
document.writeln("                  <div id=\"acrMrtgbodyDiv\"  style=\"display:none;\" class=\"BankrateFCC_cr-container-small\">");
document.writeln("                    <div class=\"BankrateFCC_cr-col1\">");
document.writeln("                      <strong>1.</strong>&nbsp;&nbsp;");
document.writeln("                      <select id=\"acrMrtgStateddl\" onchange=\"acrSetCities('acrMrtgStateddl', 'acrMrtgCityddl')\" class=\"BankrateFCC_cr-sel-options\">");
document.writeln("                        <option>Select State</option>");
document.writeln("                      </select>");
document.writeln("                    </div>");
document.writeln("                    <div  class=\"BankrateFCC_cr-col2\">");
document.writeln("                      <select id=\"acrMrtgCityddl\"  class=\"BankrateFCC_cr-sel-options\">");
document.writeln("                        <option>Select City</option>");
document.writeln("                      </select>");
document.writeln("                    </div>");
document.writeln("                    <div class=\"BankrateFCC_cr-height10\"></div>");
document.writeln("                    <div  class=\"BankrateFCC_cr-col1\">");
document.writeln("                      <strong>2.</strong>&nbsp;&nbsp; Loan amount ($):");
document.writeln("                    </div>");
document.writeln("                    <div class=\"BankrateFCC_cr-col2\">");
document.writeln("                      <input type=\"text\" class=\"BankrateFCC_cr-input\" id=\"acrMrtgLoanAmount\" />");
document.writeln("                    </div>");
document.writeln("                    <div class=\"BankrateFCC_cr-height10\"></div>");
document.writeln("                    <div class=\"BankrateFCC_cr-col1\">");
document.writeln("                      <strong>3.</strong>&nbsp;&nbsp; Select a product:");
document.writeln("                    </div>");
document.writeln("                    <div class=\"BankrateFCC_cr-col2\">");
document.writeln("                      <select id=\"acrMrtgProductddl\" class=\"BankrateFCC_cr-sel-options\">");
document.writeln("                        <option value=\"2\">15 year fixed</option>");
document.writeln("                        <option value=\"1\" selected=\"selected\">30 year fixed</option>");
document.writeln("                        <option value=\"6\">5/1 ARM</option>");
document.writeln("                        <option value=\"9\">7/1 ARM</option>");
document.writeln("                        <option value=\"1\">See all Mortgage products</option>");
document.writeln("                      </select>");
document.writeln("                    </div>");
document.writeln("                    <div class=\"BankrateFCC_cr-height10\"></div>");
document.writeln("                    <div>");
document.writeln("                      <span id=\"acrerrmrtgLoanAmount\" class=\"BankrateFCC_cr-form-error BankrateFCC_error-position\"></span>");
document.writeln("                    </div>");
document.writeln("                    <div class=\"BankrateFCC_cr-button-small\">");
document.writeln("                      <div>");
document.writeln("                        <a id=\"acrMrtgBtn\" href=\"javascript:onclick=allCompareRatesResultPage('acrMrtgBtn')\">Search</a>");
document.writeln("                      </div>");
document.writeln("                    </div>");
document.writeln("                  </div>");
document.writeln("");
document.writeln("                  <div id=\"acrRefinancebodyDiv\"  style=\"display:none;\" class=\"BankrateFCC_cr-container-small\">");
document.writeln("              <div id=\"ip9\" class=\"BankrateFCC_cr-col1\">");
document.writeln("                <strong>1.</strong>&nbsp;&nbsp;");
document.writeln("                <select id=\"acrRefinanceStateddl\" onchange=\"acrSetCities('acrRefinanceStateddl', 'acrRefinanceCityddl')\"  class=\"BankrateFCC_cr-sel-options\">");
document.writeln("                  <option>Select State</option>");
document.writeln("                </select>");
document.writeln("              </div>");
document.writeln("              <div class=\"BankrateFCC_cr-col2\">");
document.writeln("                <select id=\"acrRefinanceCityddl\" class=\"BankrateFCC_cr-sel-options\">");
document.writeln("                  <option>Select City</option>");
document.writeln("                </select>");
document.writeln("              </div>");
document.writeln("              <div class=\"BankrateFCC_cr-height10\"></div>");
document.writeln("");
document.writeln("              <div id=\"ip10\" class=\"BankrateFCC_cr-col1\">");
document.writeln("                <strong>2.</strong>&nbsp;&nbsp; Loan amount ($):");
document.writeln("              </div>");
document.writeln("              <div class=\"BankrateFCC_cr-col2\">");
document.writeln("                <input type=\"text\" class=\"BankrateFCC_cr-input\" id=\"acrRefinanceLaonAmount\" />");
document.writeln("              </div>");
document.writeln("              <div class=\"BankrateFCC_cr-height10\"></div>");
document.writeln("");
document.writeln("              <div id=\"ip11\" class=\"BankrateFCC_cr-col1\">");
document.writeln("                <strong>3.</strong>&nbsp;&nbsp; Select a product:");
document.writeln("              </div>");
document.writeln("              <div class=\"BankrateFCC_cr-col2\">");
document.writeln("                <select id=\"acrRefinanceProductddl\" class=\"BankrateFCC_cr-sel-options\">");
document.writeln("                  <option value=\"215\">15 year fixed</option>");
document.writeln("                  <option value=\"216\" selected=\"selected\">30 year fixed</option>");
document.writeln("                  <option value=\"219\">5/1 ARM</option>");
document.writeln("                  <option value=\"220\">7/1 ARM</option>");
document.writeln("                  <option value=\"216\">See all Mortgage products</option>");
document.writeln("                </select>");
document.writeln("              </div>");
document.writeln("              <div class=\"BankrateFCC_cr-height10\"></div>");
document.writeln("              <div>");
document.writeln("                <span id=\"acrerrrefinanceLaonAmount\" class=\"BankrateFCC_cr-form-error BankrateFCC_error-position\"></span>");
document.writeln("              </div>");
document.writeln("              <div class=\"BankrateFCC_cr-button-small\">");
document.writeln("                <div>");
document.writeln("                  <a id=\"acrRefinanceBtn\" href=\"javascript:onclick=allCompareRatesResultPage('acrRefinanceBtn')\">Search</a>");
document.writeln("                </div>");
document.writeln("              </div>");
document.writeln("            </div>");
document.writeln("");
document.writeln("</body>");
document.writeln("</html>");
