//    <form method="get" action=http://yp.yahoo.com/py/yploc.py>
//      <input name=stx size=20>
//      <input type="hidden" name="csz_in" value="Pasadena, CA">
//      <input type="hidden" name="Pyt" size=2 value="Typ">
//      <input type="hidden" name="mode" size=2 value="city">
//      <input type="hidden" name="clr" size=2 value="ypResults">
//      <input type="hidden" name="stp" size=2 value="a">
//      <input type="hidden" name="tab" size=2 value="B2C">
//      <input type=hidden name="submit" value="1">
//      <input type="submit" value="!" name="Submit22222">
//    </form>

  function submitToYP() {
    top.theTarget.location = "http://yp.yahoo.com/py/yploc.py?stx=" + 
      document.forms["theVisible"].elements["input1"].value + 
      "&csz_in=Pasadena,+CA&Pyt=Typ&mode=city&clr=ypResults&stp=a&tab=B2C";
      
  }

//  var ypButton = document.createElement("Input");
//  ypButton.type = "button";
//  ypButton.onclick = submitToYP;
//  ypButton.value = "YP";
//  document.getElementById("theForm").appendChild(ypButton);

  document.write('<INPUT TYPE="button" onClick=submitToYP() VALUE="YP">');
