  function PopUp(url,wsize,hsize,resize)
  {
    window.open(url, 'childwin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width='+wsize+',height='+hsize+',resizable='+resize);
  }

  function WinOpen(url,wsize,hsize,resize)
  {
     window.open(url, 'childwin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width='+wsize+',height='+hsize+',resizable='+resize)
  }

  function openWinView(url)
  {
    winview=window.open(url, 'winview', 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,resizable=yes,width=600,height=500,scrollbars=yes');
    winview.focus();
  }

  function changeButton(myImage)
  {

    re=/On\.gif/;

    found=re.exec(myImage.src);

    if  (found == 'On.gif')
    {
      re = /On\.gif/;
      newSrc=myImage.src.replace(re,'Off.gif');
      myImage.src=newSrc;
    }else{
      re = /Off\.gif/;
      newSrc=myImage.src.replace(re,'On.gif');
      myImage.src=newSrc;
    }

  }
  function RUSure()
  {
    if(confirm("Are you sure you want to\nclear the entire form?"))
    {
      document.registration.reset();
    }
    else
    {
      return;
    }
  }

/*
  function google_ad_request_done(google_ads)
  {
    if (google_ads.length < 1 )
      return;

    document.write("<table align=\"left\" style=\"font-family: verdana, arial, sans-serif; border: solid #70A8D8 1px;\" bgcolor=\"#EDEDED\">");

	  if (google_ads[0].type == 'text')
    {
    	document.write("<tr>");
      for(i = 0; i < google_ads.length; ++i)
      {
        document.write("<td nowrap>" +
          "<a href=\"" +  google_ads[i].url + "\"><font style=\"font-size: 11px; color: #000080; font: verdana, arial, sans-serif; font-weight: bold;\">" + google_ads[i].line1 + "</font></a><br>" +
	    		"<a href=\"" +  google_ads[i].url + "\"><font style=\"font-size: 10px; font: verdana, arial, sans-serif; color: #000000; text-decoration: none;\">" + google_ads[i].line2 + "<br>" + google_ads[i].line3 + "</a></font><br>" +
          "</td>");
        document.write("<td width=\"10\"></td>");
    	}
    	document.write("</tr>");
    	document.write("<tr><td colspan=\"6\">&nbsp;</td></tr>");
    }

		document.write("<tr align=\"right\"><td colspan=\"6\">");
    if (google_info.feedback_url)
    {
      document.write("<a href=\"" + google_info.feedback_url + "\"><font style=\"font-size: 9px; font: verdana, arial, sans-serif; color: #000000;\">Ads by Google</font></a>");
    }
    else
    {
      document.write("<font style=\"font-size: 9px; font: verdana, arial, sans-serif; color: #000000;\">Ads By Google</font>");
    }
    document.write("</td></tr>");
    document.write ("</table>");
  }
*/

function google_ad_request_done(google_ads)
{
  if (google_ads.length < 1 )
    return;

  document.write("<table>");

  if (google_ads[0].type == 'text')
  {
  	document.write("<tr>");
    for(i = 0; i < google_ads.length; ++i)
    {
      document.write("<td nowrap>" +
        "<a class=\"searchResultLink\" href=\"" +  google_ads[i].url + "\"><u>" + google_ads[i].line1 + "</u></a>&nbsp;" +
    		"<a class=\"searchResultLink\" href=\"" +  google_ads[i].url + "\"><span class=\"text\">" + google_ads[i].line2 + "&nbsp;" + google_ads[i].line3 + "</span></a><br>" +
        "</td>");
      document.write("</tr><tr>");
  	}
  	document.write("</tr>");
  	document.write("<tr><td></td></tr>");
  }

	document.write("<tr align=\"right\"><td>");
  if (google_info.feedback_url)
  {
    document.write("<a href=\"" + google_info.feedback_url + "\"><font style=\"font-size: 9px; font: verdana; color: #999999; text-decoration: none;\">Ads by Google</font></a>");
  }
  else
  {
    document.write("<font style=\"font-size: 9px; font: verdana; color: #999999;\">Ads By Google</font>");
  }
  document.write("</td></tr>");
  document.write ("</table>");
}