  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 cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\" border=\"0\" width=\"100%\">");


	document.write("<tr><td valign=\"bottom\" colspan=\"2\" align=\"left\" style=\"padding: 0 0 12 0;\">");
	if (google_info.feedback_url)
	{
		document.write("<a class=\"profilestext\" href=\"" + google_info.feedback_url + "\">Ads by Google</a>&nbsp;");
	}
	else
	{
		document.write("<span>Ads By Google</span>");
	}
	document.write("</td></tr>");

	document.write("<tr><td valign=\"top\" colspan=\"2\" bgcolor=\"#FFFFFF\">");
  adstyle = 'profilestext';
 adstyle_link = 'profileshighlightlink';
  if (google_ads.length == 1 )
  {
    adstyle = 'profilestext_big';
    adstyle_link = 'profileshighlightlink_big';
  }
	if (google_ads[0].type == 'text')
	{
		for(i = 0; i < google_ads.length; ++i)
		{
			document.write("<p class='" + adstyle + "'><a class='" + adstyle_link + "' href=\"" +  google_ads[i].url + "\" onmouseover=\"window.status='" + google_ads[i].visible_url + "'; return true;\" onmouseout=\"window.status=''; return true;\">" + google_ads[i].line1 + "</a> <br/>" + google_ads[i].line2 + "&nbsp;" + google_ads[i].line3 + "</p>");
		}
		document.write("</td></tr>");
	}
	document.write("</table>");
}
