// CONGRESS PHONE AND FAX DIRECTORY
// http://www.usalone.net/instantlookup/senate_info5.js

senators = new Array(
"AL~Richard C. Shelby~202-224-5744~202-224-3416~",
"AL~Jeff Sessions~202-224-4124~202-224-3149~",
"AR~Blanche Lambert Lincoln~202-224-4843~202-228-1371~",
"AR~Mark Pryor~202-224-2353~202-228-0908~",
"AK~Ted Stevens~202-224-3004~202-224-2354~",
"AK~Lisa Murkowski~202-224-6665~202-224-5301~",
"AZ~John McCain~202-224-2235~202-228-2862~",
"AZ~Jon Kyl~202-224-4521~202-224-2207~",
"CA~Dianne Feinstein~202-224-3841~202-228-3954~",
"CA~Barbara Boxer~202-224-3553~415-956-6701~",
"CO~Wayne Allard~202-224-5941~202-224-6471~",
"CO~Ken Salazar~202-224-5852~202-228-5036~",
"CT~Christopher J. Dodd~202-224-2823~202-224-1083~",
"CT~Joseph I. Lieberman~202-224-4041~202-224-9750~",
"DE~Joseph R. Biden, Jr.~202-224-5042~202-224-0139~",
"DE~Thomas R. Carper~202-224-2441~202-228-2190~",
"FL~Bill Nelson~202-224-5274~202-228-2183~",
"FL~Mel Martinez~202-224-3041~202-228-5171~",
"GA~Saxby Chambliss~202-224-3521~202-224-0103~",
"GA~Johnny Isakson~202-224-3643~202-228-0724~",
"HI~Daniel K. Inouye~202-224-3934~202-224-6747~",
"HI~Daniel K. Akaka~202-224-6361~202-224-2126~",
"IA~Charles E. Grassley~202-224-3744~202-224-6020~",
"IA~Tom Harkin~202-224-3254~202-224-9369~",
"ID~Larry E. Craig~202-224-2752~202-228-1067~",
"ID~Mike Crapo~202-224-6142~202-228-1375~",
"IL~Richard J. Durbin~202-224-2152~202-228-0400~",
"IL~Barack Obama~202-224-2854~202-228-5417~",
"IN~Richard G. Lugar~202-224-4814~202-228-0360~",
"IN~Evan Bayh~202-224-5623~202-228-1377~",
"KS~Sam Brownback~202-224-6521~202-228-1265~",
"KS~Pat Roberts~202-224-4774~202-224-3514~",
"KY~Mitch McConnell~202-224-2541~202-224-2499~",
"KY~Jim Bunning~202-224-4343~202-228-1373~",
"LA~Mary Landrieu~202-224-5824~202-224-9735~",
"LA~David Vitter~202-224-4623~202-228-5061~",
"MA~Edward M. Kennedy~202-224-4543~202-224-2417~",
"MA~John F. Kerry~202-224-2742~202-224-8525~",
"MD~Paul S. Sarbanes~202-224-4524~202-224-1651~",
"MD~Barbara A. Mikulski~202-224-4654~202-224-8858~",
"ME~Olympia Snowe~202-224-5344~202-224-1946~",
"ME~Susan Collins~202-224-2523~202-224-2693~",
"MI~Carl Levin~202-224-6221~202-224-1388~",
"MI~Debbie A. Stabenow~202-224-4822~202-228-0325~",
"MO~Christopher S. Bond~202-224-5721~202-224-8149~",
"MO~Jim Talent~202-224-6154~202-228-1518~",
"MN~Mark Dayton~202-224-3244~202-228-2186~",
"MN~Norm Coleman~202-224-5641~202-224-1152~",
"MS~Thad Cochran~202-224-5054~202-224-9450~",
"MS~Trent Lott~202-224-6253~202-224-2262~",
"MT~Max Baucus~202-224-2651~202-224-4700~",
"MT~Conrad R. Burns~202-224-2644~202-224-8594~",
"NC~Elizabeth Dole~202-224-6342~202-224-1100~",
"NC~Richard Burr~202-224-3154~202-228-2981~",
"NE~Chuck Hagel~202-224-4224~202-224-5213~",
"NE~Ben Nelson~202-224-6551~202-228-0012~",
"ND~Kent Conrad~202-224-2043~202-224-7776~",
"ND~Byron L. Dorgan~202-224-2551~202-224-1193~",
"NH~Judd Gregg~202-224-3324~202-224-4952~",
"NH~John Sununu~202-224-2841~202-228-4131~",
"NJ~Jon S. Corzine~202-224-4744~202-228-2197~",
"NJ~Frank Lautenberg~202-224-3224~202-228-4054~",
"NM~Pete V. Domenici~202-224-6621~202-228-3261~",
"NM~Jeff Bingaman~202-224-5521~202-224-2852~",
"NV~Harry Reid~202-224-3542~202-224-7327~",
"NV~John Ensign~202-224-6244~202-228-2193~",
"NY~Charles Schumer~202-224-6542~202-228-3027~",
"NY~Hillary Rodham Clinton~202-224-4451~202-228-0282~",
"OH~Mike DeWine~202-224-2315~202-224-6519~",
"OH~George Voinovich~202-224-3353~202-228-1382~",
"OK~James M. Inhofe~202-224-4721~~",
"OK~Tom Coburn~202-224-5754~202-224-6008~",
"OR~Ron Wyden~202-224-5244~202-228-2717~",
"OR~Gordon Smith~202-224-3753~202-228-3997~",
"PA~Arlen Specter~202-224-4254~202-228-1229~",
"PA~Rick Santorum~202-224-6324~202-228-0604~",
"RI~Jack Reed~202-224-4642~202-224-4680~",
"RI~Lincoln Chafee~202-224-2921~202-228-2853~",
"SC~Lindsey D. Graham~202-224-5972~202-224-3808~",
"SC~Jim DeMint~202-224-6121~202-228-5143~",
"SD~Tim Johnson~202-224-5842~202-228-5765~",
"SD~John Thune~202-224-2321~202-224-6603~",
"TN~William H. Frist~202-224-3344~202-228-1264~",
"TN~Lamar S. Alexander~202-224-4944~202-228-3398~",
"TX~Kay Bailey Hutchison~202-224-5922~202-224-0776~",
"TX~John Cornyn~202-224-2934~202-228-2856~",
"UT~Orrin G. Hatch~202-224-5251~202-224-6331~",
"UT~Robert F. Bennett~202-224-5444~202-228-1168~",
"VA~John W. Warner~202-224-2023~202-224-6295~",
"VA~George Allen~202-224-4024~202-224-5432~",
"VT~Patrick J. Leahy~202-224-4242~202-224-3479~",
"VT~James M. Jeffords~202-224-5141~202-228-0776~",
"WA~Patty Murray~202-224-2621~202-224-0238~",
"WA~Maria Cantwell~202-224-3441~202-224-0514~",
"WI~Herb Kohl~202-224-5653~202-224-9787~",
"WI~Russell D. Feingold~202-224-5323~202-224-2725~",
"WV~Robert C. Byrd~202-224-3954~202-228-0002~",
"WV~John D. Rockefeller, IV~202-224-6472~202-224-7665~",
"WY~Craig Thomas~202-224-6441~202-224-1724~",
"WY~Michael Enzi~202-224-3424~202-228-0359~",
""
);


issues = "Call or fax your congress- person and senators in Washington, D.C. " +
"This instant phone and fax directory is fast, easy and convenient.<br><br>" +

"Try it yourself. " +
"Just submit your street address and 5-digit zip code above to get the phone and fax numbers of the members of Congress representing your district.<br><br>" +

"<center><a href=\"http://www.blog.cibusa.com/fm/\" title=\"Making your day. Everyday. Life is good.&reg;\">Free Musings</a></center>";

cphs = new Image();

function getReps() {
  if (document.findreps.address.value == "") {
    alert("Street address usually required.");
    return;
    }
  if ((document.findreps.zip5.value == "") ||
     (!document.findreps.zip5.value.match(/\d\d\d\d\d/))) {
    alert("Five-digit zip code required.");
    return;
    }
  writeDiv("Processing request<br><br><br><br><br><br><br><br>");
  cphs.src = "http://www.usalone.net/cgi-bin/findreps2.cgi?address=" + 
              escape(document.findreps.address.value) + "&zip5=" + 
              escape(document.findreps.zip5.value);
  setTimeout('readImage();',500);
  }

function readImage() {
  if (cphs.complete) {
    w = cphs.width;
    h = cphs.height;
    idx = (((+w) - 1) * 20) + (+h) - 1;
    if (idx < 0) {
      writeDiv("Not found<br><br><br><br><br><br><br><br>");
      return;
      }
    writeReps(idx);
    }
  else {
    setTimeout('readImage();',500);
    }   
  }

function writeReps(idx) {
  thisrep = housereps[idx];   
  pparts = thisrep.split("~");
  thisstate = pparts[0];
  pstr = "<b>";
  for (si = 0; si < 100; si++) {
    thissen = senators[si];
    if (thissen.substr(0,2) == thisstate) {
      sparts = thissen.split("~");
      pstr += "Sen. " + sparts[1] + "<br>" + sparts[2] + " [voice]<br>" + sparts[3] + " [fax]<br><br>";
      }
    }

  hon = "Rep. ";

  if (pstr == "<b>") {
    pstr += "No Senators found<br><br><br><br><br><br><br><br>";
    hon = "Del. ";
    }

  if (idx < 440) {
    pstr += hon + pparts[1] + "<br>" + pparts[2] + " [voice]<br>" + pparts[3] + " [fax]<br><br>"; 
    }
  else {
    pstr = "House member not found.<br>Please check your street<br>address for errors. Or send<br>an automatic <a href=\"mailto:fm@blog.cibusa.com?subject=Congress%20Directory%20Error&body=address%3d" + escape(document.findreps.address.value)
+ "%2c%20zip5%3d" + escape(document.findreps.zip5.value) + "\">error report</a>.<br>";
    }
  pstr += "</b>";
  writeDiv(pstr);
  }

function writeDiv (txt) {
 if (document.layers) {
   document.layers.cphones.document.open();
   document.layers.cphones.document.write(txt);
   document.layers.cphones.document.close();   
   }
 else if (document.all) {
   cphones.innerHTML = txt;
   }
 else if (document.getElementById) {
   document.getElementById("cphones").innerHTML = txt;
   }
 }

function istart() {
  setTimeout('writeDiv(issues);',500);
  }

window.onload = istart;







